pi-yolo-bypass
Dynamic full-permission bypass toggle for pi-permission-system with backup/restore of policy files.
Package details
Install pi-yolo-bypass from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-yolo-bypass- Package
pi-yolo-bypass- Version
0.1.0- Published
- May 25, 2026
- Downloads
- not available
- Author
- skyscribe
- License
- MIT
- Types
- extension
- Size
- 15.8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
🔓 pi-yolo-bypass
Dynamic full-permission bypass toggle for pi-permission-system.
When you need to temporarily grant the agent free rein — bypassing all deny rules, including dangerous commands like rm -rf, sudo, and external directory access restrictions — toggle bypass mode with a single command or keyboard shortcut. When you're done, restore your original granular policy file instantly.
How it works
Instead of modifying the permission system's internal state, this extension atomically replaces the pi-permissions.jsonc policy file with an all-allow version. The original is backed up to pi-permissions.jsonc.yolo-bak. pi-permission-system's file-stamp cache detects the change on the next permission check — no /reload needed.
| Action | What happens |
|---|---|
/yolo-bypass on |
Backup → write all-allow policy → 🔓 ACTIVE |
/yolo-bypass off |
Remove bypass → restore backup → 🔒 INACTIVE |
/yolo-bypass (toggle) |
Switches between on/off |
/yolo-bypass status |
Shows state, policy path, and backup status |
/yolo-bypass force-off |
Emergency recovery if backup is lost |
Ctrl+Shift+Y |
Quick toggle from anywhere |
Installation
pi install npm:pi-yolo-bypass
Or from git:
pi install git:github.com/skyscribe/pi-yolo-bypass
Requirements
- pi-permission-system must be installed and configured
- A
pi-permissions.jsoncpolicy file must exist in pi's agent directory
Recovery
If something goes wrong, your original policy is always at pi-permissions.jsonc.yolo-bak. Rename it back manually and run /reload:
mv ~/.pi/agent/pi-permissions.jsonc.yolo-bak ~/.pi/agent/pi-permissions.jsonc
Or use the built-in force-restore: /yolo-bypass force-off
License
MIT