External Sandbox
A security model for coding agents in which the agent runs on the host machine, while only the code it intends to execute is sent into a separate sandbox process, communicating via API. The sandbox isolates the file system, network and processes, preventing prompt injection from causing damage to the host machine.
Timeline (last 90 days)
Simon Willison, in collaboration with the AI research lab Prime Radiant, proposed a pattern called "external sandbox" and released three open-source implementations.
In the external sandbox pattern, the coding agent itself runs on the host machine, and only the code it wants to execute is sent to run in an independent sandbox process, with the agent communicating with the sandbox via API.
The external sandbox pattern confines genuinely risky code execution to disposable containers or virtual machines; even if manipulated by prompt injection, the scope of damage is limited to inside the sandbox.
Each external sandbox includes an optional HTTP/HTTPS allowlist proxy, letting developers precisely specify the hosts that the agent code is allowed to communicate with.
The external sandbox's credential substitution mechanism has the sandbox proxy inject real credentials when a request is sent, avoiding exposing sensitive keys to the agent itself.
The external sandbox provides a UI that allows dynamic reconfiguration of the proxy policy while the sandbox is running, including allowed destinations, policy JSON editing, and recent proxy activity logs.
Developers can configure Pi, Claude Code, or Codex to send calls to the sandbox API when code execution is needed; the agent still handles code generation and decision-making, while execution shifts to an isolated environment.
All Facts (7)
Each external sandbox includes an optional HTTP/HTTPS allowlist proxy, letting developers precisely specify the hosts that the agent code is allowed to communicate with.
50%UnverifiedIn the external sandbox pattern, the coding agent itself runs on the host machine, and only the code it wants to execute is sent to run in an independent sandbox process, with the agent communicating with the sandbox via API.
50%UnverifiedThe external sandbox pattern confines genuinely risky code execution to disposable containers or virtual machines; even if manipulated by prompt injection, the scope of damage is limited to inside the sandbox.
50%UnverifiedDevelopers can configure Pi, Claude Code, or Codex to send calls to the sandbox API when code execution is needed; the agent still handles code generation and decision-making, while execution shifts to an isolated environment.
50%UnverifiedThe external sandbox's credential substitution mechanism has the sandbox proxy inject real credentials when a request is sent, avoiding exposing sensitive keys to the agent itself.
50%UnverifiedThe external sandbox provides a UI that allows dynamic reconfiguration of the proxy policy while the sandbox is running, including allowed destinations, policy JSON editing, and recent proxy activity logs.
50%UnverifiedSimon Willison, in collaboration with the AI research lab Prime Radiant, proposed a pattern called "external sandbox" and released three open-source implementations.
50%