/spawn, /resume and /fork take an optional scope: the run then launches on --permission-mode dontAsk (allow rules do nothing under bypass) with --permission-prompts none, Edit allowed only under scope.writeDirs, the working tools allowed outright, scope.denyRead refused, the scope's system prompt appended and remote control off. scope.sandbox adds Claude Code's bubblewrap sandbox for Bash (needs bwrap + socat). Verified end to end with a haiku run through this sidecar: a Write inside the project went through, one outside was denied, Bash ran, a read of ~/.ssh was denied, and the model knew whose session it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4.2 KiB
4.2 KiB