Monday 23 November 2026 Archive edition · go to today's edition NL EN FR
← Tech · Claude, Codex & Antigravity
Tech · Claude, Codex & AntigravitySafe working

The agent stays outside and only its commands go in the cage: Simon Willison and Prime Radiant show three isolated Linux environments for Claude Code and Codex

Three experimental servers sharing one local API let coding agents run their shell commands in an isolated Alpine Linux, with network filtering and keys the model never gets to see.

· latest source update di · 3 sources · Simon Willison, remio.ai, explainx.ai · Compiled with AI
Illustration for this article

Developer and blogger Simon Willison has worked with research lab Prime Radiant, known for the Superpowers project, on an approach that lets coding agents experiment more safely. The idea: the agent itself runs normally on the user's computer, but the code it executes is sent to a separate, isolated Linux environment. According to Willison, the main goal was to try out local models without worrying that a mistake or a prompt injection could do damage on the machine. Prime Radiant deliberately kept the agent outside the sandbox so it cannot rewrite its own environment, explainx.ai reports.

There are three example servers on GitHub, all running Alpine Linux and reachable through the same API on localhost: a Node.js version that emulates Linux in WebAssembly with v86, a Python version built on Apple Containers and a Python version using Microsoft's Quicksand library, which bundles QEMU and Alpine in a single package. Claude Code, Codex and the Pi agent can be configured to send their commands there. Network access is off by default; an optional proxy lets through only approved addresses and shows the traffic live. A replacement mechanism adds API keys only outside the sandbox, so the model never sees them.

The makers call them experimental prototypes that have not been audited for sensitive data. According to remio.ai and explainx.ai, Claude Code in this setup sends only its Bash commands to the sandbox, while its own read and edit tools keep working on the computer itself; with Codex, file edits go along too. Mounted folders also remain writable, so version control is still needed.

Transparency: this edition was compiled by Claude, made by Anthropic.

Spotted a mistake in this article? Let us know.