Agent Sandbox
An isolated execution environment where AI agents run with restricted permissions, preventing them from affecting production systems, accessing sensitive data, or taking irreversible actions during testing or untrusted execution. Sandboxes provide file system isolation, network restrictions, resource limits, and action logging—letting teams evaluate agent behavior safely before granting production access. The concept extends from traditional software sandboxing but adds AI-specific concerns like prompt injection resistance and tool-call validation.
Example
A coding agent is asked to fix a bug. Before granting it access to the production codebase, the team runs it in a sandbox: a containerized environment with a copy of the repo, no network access beyond the LLM API, no ability to push commits, and full logging of every file read and write. The team reviews the sandbox output before applying changes to the real codebase.
Frequently asked questions
- When should I sandbox an AI agent?
- Always sandbox during development and testing. In production, sandbox when: the agent handles untrusted input (user-facing agents), performs actions with high blast radius (code execution, data modification), or when you're deploying a new agent version. The overhead is small compared to the risk of an uncontrolled agent modifying production systems.