Install
Install with PiG
pig install npm:@accolver/bash-guardInstall with Pi
pi install npm:@accolver/bash-guardPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./extensions/bash-guard"
]
}README
Written by the package's publisher, shown as published in version 0.2.1 (README.md). PiG does not review it.
Bash Guard
Pi extension that intercepts bash tool calls, applies deterministic safety policy checks, and then uses parallel LLM voters for commands that are not trivially safe.
See extensions/bash-guard/README.md for behavior and configuration.
Quick start
pi install npm:@accolver/bash-guard
Or install directly from GitHub:
pi install git:github.com/accolver/bash-guard
Bash Guard starts disabled by default. Enable in a session with /guard on, or opt in at startup with:
PI_BASH_GUARD_ENABLED=true pi
Development
pnpm install --frozen-lockfile --ignore-scripts
bun test
bun run check
Use native pnpm 11.17.0 for dependency and lockfile changes. Development checks target exact Pi 1.4.0, TypeScript 7.0.2, and Bun types 1.4.4. check performs strict semantic TypeScript validation of extension source and tests (third-party declaration internals are skipped). Host packages remain optional wildcard peers, never bundled. Current validation and release evidence is under .spec-to-ship/features/dependency-refresh-2026-10-31/; .spec-to-ship/features/pi-1-compatibility/ retains historical Pi1.0 evidence.