pi-shield
Pi extension that shields your files and system from accidental destructive operations
Package details
Install pi-shield from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-shield- Package
pi-shield- Version
1.0.2- Published
- May 15, 2026
- Downloads
- not available
- Author
- ruru516
- License
- MIT
- Types
- extension
- Size
- 25.4 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
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