# External Sandbox

> An external sandbox is an isolation pattern for coding agents in which the agent runs outside the sandbox and sends the commands it wants to execute to a separate sandboxed environment, so that only command execution crosses the isolation boundary.

- Identifier: PTL-0275
- Category: Security & Adversarial Prompting
- Canonical URL: https://protologue.com/t/external-sandbox/
- Also known as: external sandboxes, external sandbox pattern
- Introduced: 2026

## Description

The name comes from a November 2026 post by Simon Willison on the Prime Radiant blog, which explains that the sandbox is external to the agent rather than to the computer, so both can run on the same machine. The post contrasts it with running the agent inside the sandbox, as in Fly's Sprites, and argues that keeping the agent outside avoids the agent modifying itself or its direct environment and keeps the boundary well defined and easier to audit. It also argues that a sandbox is a protection that does not depend on any model's judgment, unlike model-based checks such as Claude Code's auto mode or Codex's auto-review. The post describes three implementations with a shared local protocol, based on v86 in WebAssembly, Apple Containers and a QEMU virtual machine. In them network access is off by default; an optional proxy reaches only allow-listed hosts and methods and adds API keys to requests so that secrets stay outside the sandbox. The authors call the implementations experimental and unaudited, and note that an allowed host could echo a credential back, that a read-write mount still lets the agent damage that folder, and that in Claude Code only Bash commands are routed to the sandbox while its file tools run on the host.

## Related terms

- [Coding Agent](https://protologue.com/t/coding-agent/)
- [Code Execution Tool](https://protologue.com/t/code-execution-tool/)
- [Auto Mode](https://protologue.com/t/auto-mode/)
- [Lethal Trifecta](https://protologue.com/t/lethal-trifecta/)
- [Excessive Agency](https://protologue.com/t/excessive-agency/)
- [Harness Engineering](https://protologue.com/t/harness-engineering/)
- [Prompt Injection](https://protologue.com/t/prompt-injection/)
- [Guardrails](https://protologue.com/t/guardrails/)

## Sources

- Simon Willison (Prime Radiant) (2026). External sandboxes for coding agents. https://blog.primeradiant.com/external-sandboxes-for-coding-agents/

## Cite this entry

Protologue. (2026). External Sandbox. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0275). https://protologue.com/t/external-sandbox/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
