Who it is forA developer on Linux who runs an agent across several client repositories and wants one agent session to see only one of them.
The problemAn agent started normally can reach home directories, SSH keys, other projects and credentials of installed tools.
The outcomeThe agent works inside a box where the project is at /workspace and other paths are absent, with the box's network setting chosen per box.
What you need first
- A machine where you can run a shell and git (the README installs with git clone and ./scripts/shell/install.sh)
- Claude Code or Codex installed as the agent you want to guard
- A new terminal after install, since hooks load only when a session starts
- For the sandbox use case: Linux with bubblewrap (bwrap) installed, since the README says it is required and macOS and Windows refuse
Steps
- Install bubblewrap so that
bwrapis available on the machine, since the README says a missing one is a refusal. - Complete the guard install with
./scripts/shell/install.shand open a new terminal. solongate sandbox listsolongate sandbox 001 claudesolongate sandbox --explain 001
Prompt for your agent
On a Linux machine with bwrap installed, use the SolonGate repo at https://github.com/solongate/agent-security to create a sandbox box from the TUI Sandbox section for <project-path>, then run `solongate sandbox 001 claude`. Expected output: the agent starts with the project at /workspace and home directories absent. Verify by running `solongate sandbox --explain 001` and checking that the listed contents match the project only.
Caveat. The sandbox is Linux only, and the box's network stays on when the agent needs its model, so content leaving over the wire is handled by the DLP and egress layers rather than by the box.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for solongate/agent-security and "Confine a coding agent to one project folder on Linux"
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