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

How to confine a coding agent to one project folder on Linux with Agent Security

Start an agent in a closed box where only one project directory exists and nothing else on the machine is visible.

Short answer: Install bubblewrap so that bwrap is available on the machine, since the README says a missing one is a refusal; then Complete the guard install with ./scripts/shell/install.sh and open a new terminal; solongate sandbox list. All steps.

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

  1. Install bubblewrap so that bwrap is available on the machine, since the README says a missing one is a refusal.
  2. Complete the guard install with ./scripts/shell/install.sh and open a new terminal.
  3. solongate sandbox list
  4. solongate sandbox 001 claude
  5. solongate 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

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