When a coding agent gets something wrong, or gets steered by a planted error report, anything it is able to read or edit can end up damaged. On November 16, Prime Radiant released three prototype sandboxes aimed at that problem, with instructions for running Claude Code, Codex and Pi against them. The announcement promises that every command the agent runs executes inside a Linux sandbox that sees only the folders and hosts you allow. If you set one up and point Claude Code at it, which of the things Claude Code does for you now happen inside that Linux machine, and which still happen on your Mac?
The setup has two halves, and both run on the same computer. The sandbox is a separate process running a small Linux guest that can see the folders you mount, read-only or read-write, and nothing else. It has no network unless you start it with a proxy that lets specific hosts through. The agent itself does not move. Claude Code, Codex or Pi keeps running on the host as usual and passes work over to the sandbox’s local API. Prime Radiant calls this an external sandbox.
Claude Code
You ask Claude Code to fix a failing test, and it runs the test suite with its Bash tool. With the sandbox wired in, the environment variable CLAUDE_CODE_SHELL_PREFIX points at a small script from Prime Radiant’s external-sandbox repo, and Claude Code runs every Bash command as that script followed by the whole command line in a single quoted argument. The script does not evaluate the string on your Mac. It opens a WebSocket to the sandbox and sends the string as it is, the guest’s shell runs it against the mounted project, and stdout and stderr stream back as the bytes arrive.
Then Claude Code opens the test file. That is a Read call, and Read is not a shell command, so there is no command line for the prefix to wrap. Claude Code reads the file from the host filesystem the way it always does, and the fix goes in through Edit, also on the host. The mount rules you gave the sandbox only limit what the Bash commands can touch. The wrapper’s README adds that the integration does not change the permissions of those native file tools.
The prefix also covers more than the Bash tool. Claude Code’s environment-variable reference says it wraps the shell commands Claude Code spawns: Bash tool calls, shell hook commands, status-line commands, and the startup commands of stdio MCP servers. With the wrapper in place, a shell hook you configured would run in the guest as well.
Codex
Codex can hand its subprocess work to an exec-server, a small JSON-RPC server for spawning and controlling subprocesses, and each of the three sandboxes exposes one as a WebSocket endpoint at /codex. You point a dedicated CODEX_HOME at it with an environments.toml file, and from then on Codex sends its process and filesystem operations there, including its native apply_patch, which then works on the guest filesystem under the backend’s mount permissions, according to Prime Radiant’s Codex guide.
If you run the same failing-test turn through Codex, the test run, the file read and the patch all go to the guest, as long as the config file is set up the way the guide describes. In the CLI version the guide was tested against, include_local = false, together with a single environment entry, makes the remote executor the only one available. Codex is also launched with --sandbox danger-full-access, which in this setup tells it not to layer its own sandbox inside the external one.
Pi
The external-sandbox-pi extension replaces Pi’s bash, read, write, edit, grep, find and ls tools with versions that act against the sandbox. The launch command adds --no-builtin-tools, so Pi starts without its own local tools; if the extension fails to load, nothing is left that runs on your computer. If the sandbox cannot be reached, the extension’s README says the tools fail with an error and never fall back to running locally.
Prime Radiant’s quick check for Pi is to run !uname -a and look for Linux rather than Darwin. In Claude Code, the same command sent through the Bash tool also prints Linux. Read and Edit don’t pass through the prefix, so the check doesn’t show which filesystem they read and write.

