@artale/pi-gate
Conditional execution gates for Pi. Hold, approve, or block tool calls based on rules. Safety layer for dangerous operations.
Package details
Install @artale/pi-gate from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@artale/pi-gate- Package
@artale/pi-gate- Version
1.1.0- Published
- Mar 14, 2026
- Downloads
- 31/mo · 5/wk
- Author
- artale
- License
- MIT
- Types
- extension
- Size
- 8.2 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"src/extension.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-gate
Conditional execution gates for Pi. Block or warn on dangerous tool calls.
Install
pi install npm:@artale/pi-gate
Default rules (block)
rm -rf /, DROP TABLE, DROP DATABASE, format c:, mkfs, fork bomb
Default rules (warn)
dd if=/dev, chmod -R 777, npm publish, git push --force
Commands
/gate list — show rules
/gate add <pat> warn — add warning rule
/gate add <pat> block — add blocking rule
/gate rm <id> — remove rule
/gate log — recent events
License
MIT