@ogulcancelik/pi-quit-and-delete
Keyboard shortcut to quit pi and permanently delete the active session file.
Package details
Install @ogulcancelik/pi-quit-and-delete from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ogulcancelik/pi-quit-and-delete- Package
@ogulcancelik/pi-quit-and-delete- Version
0.1.0- Published
- May 15, 2026
- Downloads
- not available
- Author
- ogulcancelik
- License
- MIT
- Types
- extension
- Size
- 4.9 KB
- Dependencies
- 0 dependencies · 0 peers
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-quit-and-delete
A pi extension that adds a keyboard shortcut to quit pi and permanently delete the active session file.
Install
pi install npm:@ogulcancelik/pi-quit-and-delete
Or add manually to ~/.pi/agent/settings.json:
{
"packages": ["npm:@ogulcancelik/pi-quit-and-delete"]
}
Usage
Press Ctrl+Shift+X to immediately:
- Delete the current session
.jsonlfile from disk - Hard-exit pi immediately
If the session is ephemeral (in-memory, no file), pi quits without deleting anything.
Customizing the Shortcut
Environment Variable
Set PI_QUIT_AND_DELETE_SHORTCUT before running pi:
export PI_QUIT_AND_DELETE_SHORTCUT="ctrl+shift+x"
pi
Settings JSON
Add to ~/.pi/agent/settings.json:
{
"@ogulcancelik/pi-quit-and-delete": {
"shortcut": "ctrl+shift+x"
}
}
Precedence: environment variable > settings.json > default (ctrl+shift+x).
License
MIT