Who it is forA developer who wants to run an unfamiliar script, package or tool before trusting it on their own machine.
The problemRunning untested code directly on your laptop gives it the same access you have to your files, keychain and SSH agent.
The outcomeThe code runs in a sandbox with its own kernel and home directory, and deleting the sandbox removes its guest home.
What you need first
- A Mac with Apple silicon on macOS 14 or newer, or a Linux host on x86-64 or arm64 (Intel Macs are not supported)
- Homebrew on macOS, or the Linux install path from brig.sh/docs/install
- A terminal and a project folder you want the agent to work in
- An Anthropic account if you want to run Claude Code inside the sandbox
Steps
brig doctormkdir -p ~/code/demobrig run ubuntu ~/code/demobrig stop ubuntu(inferred, check the README)brig rm ubuntu(inferred, check the README)
Prompt for your agent
Using the brig-sh/brig repository, run `brig run ubuntu <project path>` to open a root shell in a sandbox, then run the test command the user gives you inside it. Report the output and then run `brig rm ubuntu`. Verify that the README says `brig rm` removes the sandbox and deletes its guest home.
Caveat. The project folder is still mounted read-write at /work, so code run in the sandbox can change files under that folder.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for brig-sh/brig and "Try unfamiliar code in a disposable sandbox"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer