/agentic-tools:sandboxfrom agentic-tools
Binds an agent's blast radius with a deny-by-default sandbox policy: read allowed, writes whitelisted, egress denied. Includes per-MCP-server policy and violation telemetry. Does not prevent injection, but limits damage.
Ships in agentic-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an orchestrator setting the policy for what an agent can touch. The threat model: prompt injection yields code execution under your UID. Injection is still unsolved — you cannot reliably stop the agent from being tricked — but policy determines what a tricked agent can reach. What an attacker does with execution falls into three classes; the policy targets each:
| Class | What it does | Policy defense |
|---|---|---|
| Egress | Exfiltrate data / secrets to an attacker endpoint | deny-by-default network, no bypass |
| Destructive | Delete, overwrite, corrupt files or infra | write deny-by-default + narrow whitelist |
| Persistence | Install a foothold that survives (cron, hook, dotfile, dependency) | write whitelist excludes autostart/config surfaces |
~/ grant. Exclude persistence surfaces (shell rc files, cron, .claude/ hooks, package manifests) unless the task is explicitly about them.Setting this up is deliberately tedious — that tedium is the security. Don't shortcut it with a wildcard.
srt)Verified against @anthropic-ai/sandbox-runtime (repo, docs). It enforces the policy at the OS level — no container — via sandbox-exec/Seatbelt on macOS (stable), bubblewrap + seccomp on Linux (stable), WFP on Windows (alpha).
npm install -g @anthropic-ai/sandbox-runtime
srt npm test # run a command inside the sandbox
srt --debug curl https://x.com # verbose: shows what got denied
srt --settings ./srt.json <cmd> # explicit policy file (default: ~/.srt-settings.json)
Policy lives in ~/.srt-settings.json. The fields map exactly onto the baseline above:
{
"filesystem": {
"denyRead": ["/Users/me/.ssh", "/Users/me/.aws"],
"allowRead": [],
"allowWrite": [".", "src/", "test/", "/tmp"],
"denyWrite": [".git/hooks", "package.json"]
},
"network": {
"allowedDomains": ["api.internal.example.com:443"],
"deniedDomains": [],
"deniedDomainReasons": {}
}
}
deny* takes precedence over allow*. Reads are allowed unless a region is denied; writes and network are deny-by-default (empty allow list = no access).
Read the CONTRACT-*.md / task scope. The write-whitelist and egress-allow list should be the minimum the acceptance criteria require — nothing "just in case." If a task needs no network, egress stays fully denied.
Every MCP server process gets its own policy. A server that only reads the calendar gets no filesystem write and no arbitrary egress. This way a trojaned or rug-pulled MCP server is contained independently — one compromised server can't reach another's data or the wider filesystem. (Relevant when many servers are connected: mail, drive, source control, browser, database.)
Wrap each server's launch command with srt in your MCP config so the server process starts already sandboxed:
{
"mcpServers": {
"filesystem": {
"command": "srt",
"args": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/safe/root"]
}
}
}
Give each server a least-privilege policy (per-invocation customConfig/commandId, or a dedicated settings file via --settings) and deny cross-server reach.
Turn on violation logging and watch it during runs — a denied write or denied egress attempt is a signal, often the first sign of an injection:
srt --debug <cmd> surfaces denials verbosely.SandboxViolationStore (import { SandboxManager, SandboxViolationStore } from '@anthropic-ai/sandbox-runtime') with getViolationsForCommand(key) and annotateStderrWithSandboxFailures(key, stderr). On macOS it taps the system sandbox violation log store for real-time alerts.strace manually. So telemetry coverage is strong on macOS, thin on Linux today./observe as anomaly signals and alert on egress-denied events./constitution (prompt-integrity) and /observe (detection).Report, concise:
"Policy: read=allow, write=[3 paths], egress=deny (allow: api.internal only). Per-server: N servers, least-privilege each. Violation telemetry → /observe. Note: bounds blast radius; does not prevent injection."
/constitution — defends the prompt itself from the injection this can't stop./observe — receives violation telemetry as security anomalies./verdict — a merge gate can require "zero unexplained egress-denied violations during the run."Verified Aug 2026 against
@anthropic-ai/sandbox-runtime(research preview / experimental). ThesrtCLI,~/.srt-settings.jsonfields, MCP wrapping, andSandboxViolationStoreabove are real; still pin the version and re-check the docs, since an experimental tool's flags can shift. Windows support is alpha. Never weaken a policy to make a task pass; fix the whitelist deliberately or escalate.
What SKILL.md sets; muted values are Claude Code's defaults
29 skills in this plugin
/architect-reviewFull architectural review of the codebase by a senior architect subagent. Finds and fixes CRITICAL/HIGH issues, reports MEDIUM/LOW. Trigger: architect review, architecture review, full review, code review./babysitCron supervisor that checks on worker subagents every ~5 minutes, compares their progress against the original plan, and writes NUDGE.md into drifting worktrees. Trigger: babysit, supervise workers, watch agents./buildOrchestrate a spec-driven implementation pipeline: spec intake, requirements ledger, plan, architect gate, product gate, task decomposition with model tiering, parallel one-shot workers, a deterministic mechanical gate plus an opus judge, and verified merge. Trigger on "build this", "implement this", "orchestrate this", "build from this spec/contract/PRD", or whenever the user drops a spec, OpenAPI file, or requirements doc and asks for an implementation. Pass --quickly for a low-token variant that keeps subagent workers but replaces all per-phase and per-task reviews with one final opus review on a PR.Other plugins' skills for the same job
npx claudepluginhub kurtlehnardt/agentic-tools --plugin agentic-tools