---
title: "Agents"
url: https://www.daytona.com/compute-glossary/agents
---

# Agents

Part of the [Compute Glossary](https://www.daytona.com/compute-glossary.md).

An AI agent is a program in which a language model decides the next step. It works in a loop, calling a tool and reading the result, until the goal is met. Each turn of the loop adds the result to what the model knows, so later steps build on earlier ones. No person has to approve each step, which is what lets an agent work through long tasks alone.

One of the tools an agent calls most often is a computer, on which it writes and runs code. That code has not been reviewed by a person before it runs. A computer lets the agent check its own work, by running tests and reading the errors. The code may be wrong by mistake, or written to serve someone who planted instructions in what the agent read.

Running that code in a sandbox keeps a mistake or a malicious instruction inside an environment that can be thrown away. The agent keeps its access to a real computer while reducing the risk to the host. A sandbox for an agent is usually a full machine, so the code can install packages and run services as it would anywhere. It can be created for one task and deleted after, or kept for a session that lasts days.

## Terms

- [AI agent](https://www.daytona.com/compute-glossary/agents/agent.md): An AI agent is a program in which a language model chooses and carries out each next step.
- [Tool call](https://www.daytona.com/compute-glossary/agents/tool-call.md): A tool call is a structured request from a language model to run a named function.
- [Untrusted code](https://www.daytona.com/compute-glossary/agents/untrusted-code.md): Untrusted code is code that runs without anyone having reviewed what it will do.
