pi-shield

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

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.

shield on shield off

Settings panel:

shield settings

Permission confirmation:

permission confirmation

Commands

/shield
/shield on
/shield off
/shield default on
/shield default off
/shield notifications on
/shield notifications off
  • /shield opens the settings panel.
  • /shield on/off changes the current session only.
  • /shield default on/off changes the default for future sessions.
  • /shield notifications on/off toggles macOS notifications globally.

Shortcut

Ctrl+Shift+S

Toggles the shield for the current session.

Protects

  • write and edit tool calls
  • destructive bash commands like rm, mv, delete
  • risky git / GitHub CLI commands
  • privilege commands like sudo and chmod 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