External sandboxes for coding agents

In one sentence

Simon Willison and Prime Radiant introduced the external sandbox pattern and released three implementations to safely isolate code executed by AI coding agents.

Key points

  • The external sandbox pattern runs agent-executed code in a dedicated sandbox while keeping the agent itself outside.
  • The team released three sandbox server implementations using v86, Apple Containers, and Microsoft's Quicksand.
  • All three implementations share a localhost API that can be configured for Pi, Claude Code, or Codex.
  • The sandboxes include an optional HTTP/HTTPS allow-list proxy and credential replacement to avoid sharing secrets with agents.

In depth

An AI-written overview of the original article, not the article itself.

Simon Willison and Prime Radiant have introduced the external sandbox pattern for coding agents. It isolates agent-executed code to prevent local models from damaging machines due to errors or prompt injection.

How the pattern works

The agent runs outside the sandbox and sends code execution requests via a localhost API. Tools like Pi, Claude Code, and Codex can be configured to use it.

Three implementations and security

They released three Alpine Linux servers using v86, Apple Containers, and Microsoft Quicksand. An optional allow-list proxy and credential replacement mechanism further restrict network access and protect secrets.

Read originalOpens simonwillison.net

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source