Glossary
Agent sandbox
An agent sandbox is an isolated runtime in which an AI agent executes, with strict limits on the files, network and credentials it can reach. If the agent misbehaves or is manipulated, the damage stays inside the boundary.
Updated
What is an agent sandbox?
A sandbox is an environment that separates running code from the rest of a system. An agent sandbox applies that idea to AI agents, which often run code, read files and call tools that they generated or chose themselves.
The goal is containment. The agent is assumed to be capable of mistakes and of being manipulated, so the surrounding environment is built to limit the consequences. A sandbox does not decide whether an action is wise. It decides how far any action can reach.
What a sandbox controls
A well-designed sandbox restricts several dimensions at once. Isolation of the compute layer is the foundation, but it is not the whole story.
- Process and kernel isolation, so the agent cannot affect the host or neighbouring workloads.
- Filesystem access, limited to the directories the task needs.
- Network access, limited to approved destinations.
- Credentials, kept outside the sandbox or issued only for a short time.
- Resources, such as CPU, memory and runtime, so one agent cannot starve others.
Example scenario
An agent is asked to analyse a dataset and write a script to process it. The script it writes contains a mistake that deletes files in the working directory. In a sandbox, only the sandbox's own files are lost, and the environment can be discarded and recreated. Without one, the same mistake could remove files from a developer's machine or a shared server.