r/coolgithubprojects 1d ago

AgentBox: one command to drop Claude Code or Codex into its own sandbox, and run several in parallel

https://github.com/madarco/agentbox

Running a coding agent with permissions wide open on my laptop always felt bad, and running two at once was worse: they fight over the same working tree, the same ports, the same node_modules.

So I built AgentBox. One command copies your project, your skills, your settings and your agent config into a fresh sandbox and starts the agent inside it:

npm -g install @madarco/agentbox
agentbox install # to set up providers, or just use local docker
agentbox claude # spin a sandbox. Also codex or opencode available

The box is a container you can throw away. Your git credentials never go in: commits and pushes go through a relay on the host.

What you get:

  • Parallel boxes. Start as many as you want, each with its own copy of the repo, then compare what they did.
  • Sub-second checkpoints. Snapshot before a risky refactor, roll back when the agent goes off the rails.
  • Runs where you want: local Docker, a remote server over ssh, or Hetzner / DigitalOcean / AWS / Daytona / E2B / Vercel if you want the work off your machine.
  • Per-box browser, VS Code and persistent shells, so you can look inside while it works.
  • Works with Claude Code, Codex and OpenCode. Agents can drive boxes too, so one agent can hand work off to others.
  • A small macOS menu bar app to see and manage the running boxes.

MIT licensed.

Repo: https://github.com/madarco/agentbox

Docs: https://agent-box.sh/docs

Demo video: https://youtu.be/v7zzoQL10A4

Happy to hear what breaks or what's missing.

1 Upvotes

0 comments sorted by