原始内容
Pi Shield
A Pi extension that asks for confirmation before risky file, git, bash, and privilege operations.
Install
pi install npm:pi-shield
UI
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+S
Toggles 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 off
Config
~/.pi/agent/pi-shield.json
License
MIT

