pirmission-bash-guard
Pi extension that replaces the bash tool with permission-gated execution and exact-match allowlist persistence.
Package details
Install pirmission-bash-guard from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pirmission-bash-guard- Package
pirmission-bash-guard- Version
0.1.0- Published
- May 13, 2026
- Downloads
- 26/mo · 26/wk
- Author
- aisatan
- License
- MIT
- Types
- extension
- Size
- 7 KB
- Dependencies
- 0 dependencies · 5 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pirmission extension
Pi extension that replaces the bash tool with permission-gated execution and exact-match allowlist persistence.
- It prompts before running each command:
allow onceallow alwaysdeny
- It executes approved commands in a real shell.
- It supports optional timeout (seconds).
- It persists only
allow alwaysentries in.agents/pirmissions.jsonlwith exact-command matching.
Pirmissions
allow once: runs only this call.allow always: appends the exact command string to.agents/pirmissions.jsonland auto-approves exact matches on later runs.deny: blocks execution.- Timeout:
- if
timeoutis passed: used as command timeout in seconds - if omitted: default
30seconds
- if
Install
Persistent global install:
pi install git:git@github.com:AiSatan/pirmission.git
Persistent project-local install:
pi install -l git:git@github.com:AiSatan/pirmission.git
Temporary one-run test:
pi -e git:git@github.com:AiSatan/pirmission.git
Notes
- This extension writes only
.agents/pirmissions.jsonl(same workspace root as this repo). - Matching is exact; no wildcard/substring logic.