Get the daily emailDaily email
  1. Home
  2. Agents
  3. This story

The external sandbox pattern for coding agents

A well-known developer-tools blogger and the Prime Radiant research lab introduced an "external sandbox" pattern: the agent stays outside, and only the code it executes runs in a dedicated sandbox. Three servers were released: external-sandbox-v86 (Alpine…

Published Read the original

Ranked #6 of 30 on Wednesday, November 18

The external sandbox pattern for coding agents

Why it matters

It gives engineers a practical way to let agents, especially local models, execute code without risking the host machine to mistakes or prompt injection.

What happened

1 min read

A well-known developer-tools blogger and the Prime Radiant research lab introduced an "external sandbox" pattern: the agent stays outside, and only the code it executes runs in a dedicated sandbox. Three servers were released: external-sandbox-v86 (Alpine Linux in WebAssembly), external-sandbox-container (Apple Containers) and external-sandbox-quicksand (Microsoft's Quicksand library with QEMU). All expose the same localhost API that Claude Code, Codex or Pi can call, plus an optional allow-list HTTP proxy and credential substitution so secrets never reach the agent.

inscraper analysis

Our analysis

Separating the agent from its execution environment isn't new (hosted sandboxes such as E2B do this), but here it is local, open source and works across several popular agents. The allow-list proxy and credential substitution are the most valuable parts, since network exfiltration is the main damage prompt injection can do. These are clearly experimental reference implementations; the post says nothing about performance, robustness or long-term maintenance. Worth trying for anyone running local models or long autonomous agent sessions.

More in Agents