Coding agents
Keep your coding agent and its login on your computer, and run its builds, tests, and installs in a Sandcovery sandbox, one per worktree.
Give your agent the instructions
Your coding agent, such as Claude Code, T3 Code, Codex, Gemini CLI, or opencode, keeps running on your computer. These instructions tell it to run the project's commands in a Sandcovery sandbox instead. Coding in the dashboard shows them with a Copy button:
Run this project's commands in a Sandcovery sandbox instead of on this computer.
- Run every build, test, install, and script as `npx -y -p sandcovery@latest sandcovery-run -- <command>` from the folder you are working in. Edit files here as usual. Each run copies the folder's current files to the sandbox first and copies back the files the command changed.
- The first run may open my browser once so I can approve Sandcovery. Wait for it to finish.
- The sandbox belongs to this worktree. Later runs here reuse it, and other worktrees get their own.
- When the task is done, run `npx -y -p sandcovery@latest sandcovery-run --stop`.Where to paste them
- Paste them into the agent's chat to cover one task.
- Add them to the project's
AGENTS.mdorCLAUDE.mdso every thread in the project follows them.
They work in every agent that runs shell commands, including the worktree modes of those agents. Two agents need one more step:
- In Codex, choose Full Access, because its default sandbox blocks the network each run needs.
- In Gemini CLI on Linux, run
npx -y -p sandcovery@latest sandcovery loginonce in your own terminal first, because Gemini CLI hides your display from its commands and the first run can't open your browser.
One sandbox per worktree
Each git worktree gets its own sandbox. The first run in a worktree creates it, and later runs in the same worktree reuse it. A parallel worktree never shares it and gets its own sandbox.
An agent that gives each thread its own worktree therefore gives each thread its own sandbox, so parallel threads never run in each other's sandbox.
What comes back to your computer
Each run copies the folder's current files to the sandbox, runs the command there, and copies back the files the command changed. The agent edits files on your computer as usual, and the next run copies those edits over first.
Gitignored outputs, such as node_modules, build caches, and build output, stay in the sandbox. The next run in the same worktree finds them there, so installs and builds pick up where they left off.
Your agent's login stays on your computer
The agent runs on your computer with your own login to its model provider, and that login never leaves your computer. Only the folder's files and the command go to the sandbox.
The first run signs the computer in to Sandcovery the way sandcovery login does: it opens your browser once, and you choose Approve Sign-In. API Keys in the dashboard then lists a CLI sign-in named CLI on and the computer's name.
Billing
A coding sandbox bills like every other sandbox. Sandcovery routes it to your own provider credentials first, then to Sandcovery capacity, which bills your credit.
Stop a sandbox
The instructions tell the agent to stop the sandbox when the task is done:
npx -y -p sandcovery@latest sandcovery-run --stopLive Sandboxes on Coding in the dashboard lists the running sandboxes that a CLI sign-in started, from the organization's newest 100 running sandboxes, by computer, with when it started and when it ends. Choose Stop to end one. A sandbox also ends at its time limit. Files that were only in the sandbox, such as node_modules, are lost when it ends, and the next run in that worktree starts a new sandbox.