From claude-spectator
ALWAYS use for ANY read-only Bash command that is not intended to modify state — ls, cat, find, git log, git status, du, wc, tree, head, tail, file, stat, etc. Prefix with sandbox-run to auto-approve without human intervention.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-spectator:sandboxed-executionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**ALWAYS** prefix read-only commands with `sandbox-run`. This is the DEFAULT for any Bash command that does not modify state:
ALWAYS prefix read-only commands with sandbox-run. This is the DEFAULT for any Bash command that does not modify state:
sandbox-run <command> [args...]
The permission hook automatically rewrites this to use the plugin's own binary, so sandbox-run does not need to be on PATH.
~/.ssh, ~/.aws, ~/.gnupg, ~/.kube, ~/.docker, etc.)# Exploration and inspection
sandbox-run git status
sandbox-run git log --oneline -20
sandbox-run python3 -c "import os; print(os.getcwd())"
sandbox-run find . -name '*.py' -type f
sandbox-run wc -l src/**/*.ts
sandbox-run du -sh node_modules/
# These will fail inside the sandbox (as expected)
sandbox-run git commit -m "test" # EPERM — can't write .git/
sandbox-run npm install # EPERM — can't write node_modules/
sandbox-run curl https://example.com # network denied
Do not sandbox commands that need to write files or access the network:
git add, git commit, git pushnpm install, pip install, brew installmake, npm run build (if writing output files)curl, wget, npm publishThese should go through the normal permission flow.
sandbox-run is auto-approved — no permission prompt will appear. This is safe because the OS kernel enforces the read-only and no-network constraints regardless of what command is run inside.sandbox-run once, at the very start of the command. Everything after it runs inside the sandbox. Do NOT repeat sandbox-run in chained commands — write sandbox-run ls && cat file, not sandbox-run ls && sandbox-run cat file.npx claudepluginhub jimmyken793/claude-spectator --plugin claude-spectatorGuides Claude Code sandbox configuration for filesystem/network isolation, OS enforcement (bubblewrap/Seatbelt), proxies, escape hatches, and troubleshooting via docs-management delegation.
Blocks destructive Bash commands like rm -rf, DROP TABLE, git force-push, reset --hard, and restricts file edits to a specific directory. Use for protection on critical systems.