Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 19 · November 18, 2026 · Wed
Today's stories
19 stories · 4 companies
Home / November 18, 2026 / External Sandboxes for Coding Agents
← Back
Guide Agents / Safety Score62

External Sandboxes for Coding Agents

Simon Willison RSS · simonwillison.net
Nov 18 · 06:52 Read the original ↗
01Summary

Coding agents like Claude Code and Codex run commands on the machine they live on, so a mistake or a prompt injection can damage real files or leak secrets. Simon Willison, working with the AI lab Prime Radiant, wanted a way to try local models without that risk.

02Background

Coding agents like Claude Code and Codex run commands on the machine they live on, so a mistake or a prompt injection can damage real files or leak secrets. Simon Willison, working with the AI lab Prime Radiant, wanted a way to try local models without that risk.

03Solution

The author describes an "external sandbox" pattern: the agent stays outside, and every piece of code it wants to run is sent to a separate sandbox server. Three open-source implementations share one localhost API, so Pi, Claude Code, or Codex can be pointed at any of them. One runs Alpine Linux inside WebAssembly via v86, one runs it in an Apple Containers instance, and one uses Microsoft's Quicksand library, which bundles QEMU and Alpine Linux in a single Python package. Each sandbox also offers an optional HTTP/HTTPS allow-list proxy, so you decide which hosts the agent's code may reach, plus a credential replacement mechanism that lets code make authenticated API calls without the agent ever seeing the secret. A UI lets you change the network policy while the sandbox is running. The post is a short pointer to the fuller write-up on the Prime Radiant blog, so it gives the shape of the pattern and the three implementations but not configuration steps or measured tradeoffs between them.

04Takeaway

If you run coding agents on your own machine, the author's pattern is worth adopting: keep the agent outside and give it a sandbox with a network allow-list and secret substitution. The three servers make that easy to try, though you will need the original post for setup details.