A proper sandbox extension for pi, using the Anthropic Sandbox Runtime.
Overrides these tools to enforce sandbox rules:
bashreadwriteedit
The agent can request escalation for any of them by passing:
unsandboxed: true
This triggers a user approval prompt before bypassing sandbox restrictions.
Bash commands can also be pre-approved via unsandboxedCommands in the sandbox config. Matching commands bypass the sandbox without prompting the user.
Allowed syntax:
"npm test"- exact match, allows onlynpm test"git commit *"- prefix match, allowsgit commit -m "msg"andgit commit --amend
Commands using shell operators like &&, |, or ; cannot be matched.