In November 2026, Simon Willison published External sandboxes for coding agents on simonwillison.net. The setup: the agent itself runs outside the sandbox, but any code it executes — testing a function, running a build script, calling an API — gets dispatched to a local sandbox server instead of running directly on the host machine. If the code does something it should not, the damage stops at the sandbox boundary. Willison built three interchangeable implementations: Alpine Linux running inside WebAssembly via v86, Apple Containers, and Microsoft’s Quicksand QEMU library. The sandbox also includes an HTTP proxy allow-list that controls what external hosts the agent’s code can reach, and a credential replacement mechanism that lets agent code call authenticated APIs without ever holding the secret itself.
It is good work. Technically, this is exactly the right instinct.
flowchart TD
A[Coding agent installed] --> B{Code execution<br/>contained?}
B -->|No: runs on host| C[Prompt injection or<br/>accident damages host]
B -->|Yes: external sandbox| D[Alpine Linux<br/>WebAssembly or container]
D --> E{Network policy<br/>defined?}
E -->|No allow-list set| F[Sandbox with<br/>no rules]
E -->|Allow-list defined| G{Policy owner<br/>assigned?}
G -->|No| H[Allow-list drifts<br/>or breaks]
G -->|Yes| I[Governed sandbox]
class C bad
class F warn
class H warn
class I good
classDef good fill:#163a26,stroke:#44cc77,color:#d7ffe6;
classDef bad fill:#3a1620,stroke:#ff5555,color:#ffd9d9;
classDef warn fill:#3a2e16,stroke:#ffaa33,color:#ffe9c7;
classDef accent fill:#15233b,stroke:#4488ff,color:#dce9ff;
The rundown: what Willison built and why it matters
The external sandbox pattern separates the agent from the code it runs. Standard coding agent setups — Claude Code, Copilot, Codex — execute code on the developer’s machine, with access to whatever the developer’s machine has access to. A bad prompt, an injected instruction, or an unexpected side effect reaches the host filesystem, the developer’s credentials, the corporate network. Willison’s pattern routes that execution to a sandboxed environment with explicit boundaries. The agent sends a request; the sandbox runs it; the result comes back.
The credential replacement mechanism is worth particular attention. Agent code can call an authenticated API and get a valid response without the agent — or any code the agent produces — ever receiving the actual credential. This matters because one of the more serious risks in agentic coding workflows is an agent that surfaces or logs a credential in its own context window or in generated code. Willison’s mechanism eliminates that class of exposure for API calls that go through the sandbox.
For the working software engineer
The practical question is not whether to sandbox but which implementation makes sense for your environment. The three options reflect different infrastructure tradeoffs: v86 is portable (runs anywhere with a Node.js environment) but computationally heavier; Apple Containers is fast on macOS but platform-specific; Quicksand/QEMU is cross-platform and Microsoft-endorsed, which matters in a corporate Windows environment.
The network proxy allow-list is what gives the sandbox teeth. Without it, the sandbox contains code execution but does not limit what that code can reach on the network. If your coding agent is calling internal APIs, hitting databases, or reading from data stores, the allow-list is where you define the actual boundary. That boundary is not a one-time configuration. It is a living policy that reflects what the agent is authorized to do, and it needs to be maintained as the agent’s capabilities and the team’s workflows change.
For business owners and operators
The reason your engineering team may resist establishing a formal AI coding policy is that the technical details feel operational — below the level of business decisions. What Willison’s post makes clear is that some of those technical details are actually business decisions in technical form.
Who should your coding agents be able to reach on your internal network? What APIs should they be allowed to call in production contexts? What credentials should they be able to use? Those are not questions your senior developer should answer alone. They require a conversation that includes at minimum your engineering leadership and whoever owns security and data policy. The sandbox is the mechanism that enforces the answers to those questions. It is useless without the answers.
My take
At LERETA — the second-largest property tax processor in the United States, handling roughly $18 billion in annual transaction volume — every architectural decision about data access was a governance decision before it was a technical one. The wall-sized architecture diagrams I built for the board were not about explaining the SQL queries. They were about making visible which systems had access to customer payment data, so the people accountable for that data could make informed decisions about the perimeter. Those decisions were not engineering decisions. They were risk decisions, compliance decisions, and ultimately board-level accountability decisions that happened to have engineering implications.
Willison’s external sandbox is a technical mechanism for drawing exactly that kind of boundary. The network allow-list says: this is what the agent code can reach. The credential replacement says: this is what the agent code is authorized to call. Those lines exist in the code. But someone has to decide where to draw them, and that someone is not — or should not be — only the developer configuring the sandbox.
What I see in most mid-market engineering organizations is not a failure to build sandboxes. It is a failure to have the conversation about what the sandbox should enforce. The technical piece, Willison has essentially solved. The organizational piece — who decides, who reviews, who updates the policy when capabilities change — that is where the work actually is.