pi-sandbox
ProGovernanceFSL-1.1-ALv2
OS-level isolation. The agent can only touch what you've explicitly allowed - paths, domains, and operations.
Capabilities
- System-level enforcement - Bubblewrap + seccomp on Linux, sandbox-exec on macOS.
- Permission gate per command, with path and domain allowlists applied to every shell execution.
- Per-project policy keyed by working directory.
- Inline approval prompts in your terminal for new domains or paths.
Requirements
- Linux: bubblewrap.
- macOS: built-in sandbox-exec (no install needed).
Installation Instructions
Install the whole bundle
npx --yes @bastilleworks/bastille-install bastilleworks-pro-<version>.tgzOr install this module only
npx --yes @bastilleworks/bastille-install bastilleworks-pi-sandbox-<version>.tgzThe installer fetches @bastilleworks/shared from public npm automatically. Replace <version> with the version you downloaded.
Usage Instructions
Pi command
/sandboxConfiguration lives in ~/.pi/agent/sandbox/ - default.json for fallback policy, projects.json for per-project overrides. Project lookup is longest-prefix match on the canonicalized working directory.
Uninstall
Uninstall this extension
pi uninstall npm:@bastilleworks/pi-sandboxOr uninstall the entire bundle
npx --yes @bastilleworks/bastille-install uninstall bastilleworks-pro-<version>.tgzNotes
- Requires a valid Polar license.