@diegopetrucci/pi-permission-gate
v0.1.1
Published
A pi extension that prompts before dangerous bash commands.
Maintainers
Readme
permission-gate
A small pi extension that prompts for confirmation before running potentially dangerous bash commands.
This is adapted from the original permission-gate.ts example in earendil-works/pi-mono and kept basically the same.
What it checks
rm -rfsudochmod/chownwith777
If pi is running without an interactive UI, it blocks matching commands by default.
Install
Standalone npm package
pi install npm:@diegopetrucci/pi-permission-gateCollection package
pi install npm:@diegopetrucci/pi-extensionsGitHub package
pi install git:github.com/diegopetrucci/pi-extensionsThen reload pi:
/reloadNotes
- Hooks the
tool_callevent. - Only inspects the
bashtool. - Prompts with a simple
Yes/Noselector before allowing dangerous commands.
