@tifan/pi-stash
Stash one pi draft and restore it after the next message.
Package details
Install @tifan/pi-stash from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tifan/pi-stash- Package
@tifan/pi-stash- Version
0.2.0- Published
- Aug 23, 2026
- Downloads
- 125/mo · 8/wk
- Author
- tifan
- License
- MIT
- Types
- extension
- Size
- 4.7 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
@tifan/pi-stash
Stash one draft, send another message, and return to the draft while pi works.
Install
pi install npm:@tifan/pi-stash
Keybinding
pi-stash overrides Pi's built-in Ctrl+S shortcuts. Remap them in $PI_CODING_AGENT_DIR/keybindings.json (default: ~/.pi/agent/keybindings.json), then run /reload:
{
"app.models.save": ["ctrl+shift+s"],
"app.session.toggleSort": ["ctrl+shift+s"]
}
Usage
Press Ctrl+S with text in the editor to stash it. Pi clears the editor so you can send another message, then restores the draft as soon as that message is submitted.
Press Ctrl+S again while the editor is empty to restore the draft manually. If the editor contains new text, pi-stash keeps both drafts unchanged and refuses to overwrite either one.
The stash belongs to the current session and survives reloads and restarts. Slash commands and ! shell commands do not consume it.
Release notes
See CHANGELOG.md