An npm workspaces monorepo for Pi extensions:
| Package | Purpose |
|---|---|
pi-auto-review |
Model-backed boundary approval broker and permission-system authorizer |
pi-sandbox |
Anthropic Sandbox Runtime-backed Bash sandbox, with an optional process-backed subagent provider |
pi-statusline |
Configurable footer with Git, session usage, themes, and interactive configuration preview |
The layout follows the package-per-directory structure used by
gotgenes/pi-packages. The
extensions are published to npm as @erichll/pi-auto-review,
@erichll/pi-sandbox and @erichll/pi-statusline; the matching unscoped names
are owned by unrelated projects. The repository can also be installed as one Git-backed Pi package.
The platform status and security setup below apply to pi-auto-review and
pi-sandbox. The standalone statusline requires only Node.js and Pi 1.0;
see its README for local loading and configuration.
- Linux: bubblewrap filesystem/network isolation and end-to-end sandbox paths are tested.
- macOS x64/arm64: Sandbox Runtime uses native Seatbelt profiles; deterministic broker orchestration is covered on Linux, while native smoke coverage is still pending.
- Windows: not supported.
- Node.js 22.19 or newer
- npm 11
- Pi 1.3.0 or newer
@gotgenes/pi-permission-system41.0.0 or later- Linux:
bubblewrap,socat, andripgrep
npm install
npm run check
npm testStart Pi from this repository root to load the local package through
.pi/settings.json. Local source is agent-writable, so development runs must
explicitly opt in with
PI_AUTO_REVIEW_ALLOW_UNTRUSTED_DEV=1 pi --approve.
Install the security packages at user scope. Load pi-auto-review first so its
broker service is available when pi-sandbox starts:
pi install npm:@erichll/pi-auto-review
pi install npm:@erichll/pi-sandboxThe statusline is independent of the two security packages and does not require the permission system:
pi install npm:@erichll/pi-statuslineAlternatively, install a reviewed, immutable repository tag or commit as one Git-backed package:
pi install git:github.com/erichll/[email protected]Do not pass -l with either installation method: project-local installation
would put the security controls back under the agent-writable workspace. Pi
installs user npm packages under ~/.pi/agent/npm/ and Git packages under
~/.pi/agent/git/. The packaged sandbox denies writes to its installed package
root and global Pi security configuration.
Production runs must not set PI_AUTO_REVIEW_ALLOW_UNTRUSTED_DEV; that escape
hatch is only for loading this repository directly during development.
For a private repository, use the SSH form and make sure the host has a GitHub SSH key with read access:
pi install git:[email protected]:erichll/[email protected]Enable the authorizer in the permission-system configuration:
{
"authorizerChain": ["pi-auto-review"],
"permission": {
"bash_escalated": "ask",
"external_directory": "ask"
}
}pi-auto-review publishes a cross-extension broker service. The local
pi-sandbox package consumes that service, owns Bash execution, and routes
network connections through Sandbox Runtime's reviewed proxy. Its default
builtin provider also owns process-backed subagent execution, including
persistent background RPC sessions, follow-up, and nested handoff. Set the
trusted global provider to pi-subagents to let that extension own
orchestration under the required native-background protection mode
(pi-subagents >=0.79.0, deterministically validated on 0.79.0).
That mode validates a canonical agent whitelist and restricts children to
bash, read, grep, find, and ls; writes go through sandboxed Bash. It
is not whole-worker process isolation. Keep the default builtin provider for
that guarantee. Do not load another extension that also replaces Pi's Bash
tool. See the package READMEs for provider, platform, and trust-boundary details.
Run deterministic checks with npm run check and npm test. The external
provider peer dependency is the range pi-subagents >=0.79.0 with no upper pin,
and the development dependency is ^0.79.0. Pi development dependencies and
peer floors are 1.3.0; typebox is 1.4.2 and permission-system is 41.0.0.
The compatibility gate verifies package layout, discovery, ceiling registration,
launch guards, and child acknowledgement. Protected management actions are
allowlisted; steering requires disabled recovery and the target's own sandbox
proof, including for runs inherited across in-process session replacement. Its model portion uses
only already-exported credentials and prints SKIP rather than claiming
success when model setup is absent.
A GitHub Actions workflow (.github/workflows/compat-latest.yml) runs the
deterministic check + test suite against the pinned development dependency on
every push and nightly. Newer upstream releases must be audited and
deliberately adopted; the loader's export/layout checks fail closed until then.
The optional model job activates
only when PI_SUBAGENTS_GATE_MODEL and a matching credential secret are
configured.