Simon Willison open-sources three external sandboxes for safer coding agents

Simon Willison · rss · 2026-11-18

Simon Willison, working with Prime Radiant, introduces the external sandbox pattern: the agent lives outside the sandbox while its executed code runs inside, making it safer to try local models without risking damage from mistakes or prompt injection.

Three released implementations share the same localhost API:

Pi, Claude Code, or Codex can be configured to route code execution through the sandbox. Includes an optional HTTP/HTTPS allow-list proxy to control exactly which hosts agent code may reach, plus a credential replacement mechanism for authenticated API calls without exposing secrets to the agent.

Original post →

More from coding & agent

coding & agent channel →