The sandbox
Turn your rules into Claude Code's and Codex's own macOS sandbox, so the Mac refuses what you closed however a command is written. Asked at setup, pre-set to on, with a plan first and an undo. Needs Pro.
On this page
Pro
This needs Excellent Pro. Scanning and findings are free. Free and Pro says what each does.
Excellent's live check reads what a command says. An agent set on getting around it sometimes can. The sandbox doesn't care how a command is worded: macOS itself refuses.
Excellent can write a sandbox from your rules into the settings of Claude Code and Codex. Setup asks about it, already ticked; untick it there if you don't want it yet.
What it closes
With the sandbox on, for Claude Code and Codex:
- folders you marked never-delete can't be changed;
- files you marked never-open can't be read or changed, nor can SSH, AWS and other key stores, or any
.agefile; - the files that would let an agent run code outside the sandbox later can't be changed: your shell's startup files, the agents' own settings, each project's agent settings and git hooks;
- commands can reach only the websites on a list built from your own logs, which you see and agree to.
Turn it on
Leave it ticked at setup, or later use Sandbox → Turn On… in the menu, or the Sandbox page. Before anything
changes, Excellent shows exactly what will be written and what may stop working. On your OK, Excellent backs up both settings files, then writes the sandbox into
~/.claude/settings.json and ~/.codex/config.toml.
Turn it off
Turn Off… on the Sandbox page takes it back out. If nobody changed those files since, they come back byte for byte.
Remove Excellent leaves a sandbox in place. Turn it off first if you want it gone.
What to know
- It covers Claude Code and Codex. The other agents get the live check only.
- Some tasks may stop working: a tool that writes to a folder you closed, or a command that needs a website that isn't on the list. Excellent says what it expects to break before it turns the sandbox on. If something breaks, turn the sandbox off, change your rule, and turn it on again.