DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to try unfamiliar code in a disposable sandbox with Brig

Open a root shell in a throwaway sandbox, then delete it when the test is done.

Short answer: brig doctor; then mkdir -p ~/code/demo; brig run ubuntu ~/code/demo. All steps.

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

  1. brig doctor
  2. mkdir -p ~/code/demo
  3. brig run ubuntu ~/code/demo
  4. brig stop ubuntu (inferred, check the README)
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer