pi-shield
v1.0.2
Published
Pi extension that shields your files and system from accidental destructive operations
Downloads
375
Maintainers
Readme
Pi Shield
A Pi extension that asks for confirmation before risky file, git, bash, and privilege operations.
Install
pi install npm:pi-shieldUI
Shield status lives in the editor border.
Settings panel:
Permission confirmation:
Commands
/shield
/shield on
/shield off
/shield default on
/shield default off
/shield notifications on
/shield notifications off/shieldopens the settings panel./shield on/offchanges the current session only./shield default on/offchanges the default for future sessions./shield notifications on/offtoggles macOS notifications globally.
Shortcut
Ctrl+Shift+SToggles the shield for the current session.
Protects
writeandedittool calls- destructive bash commands like
rm,mv,delete - risky git / GitHub CLI commands
- privilege commands like
sudoandchmod 777
Notifications
macOS notifications are shown for permission requests and agent completion.
They can be disabled from /shield or with:
/shield notifications offConfig
~/.pi/agent/pi-shield.jsonLicense
MIT
