pi-draft-history
Keep unsent Pi editor drafts in prompt history when clearing the editor.
Package details
Install pi-draft-history from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-draft-history- Package
pi-draft-history- Version
0.1.2- Published
- Aug 17, 2026
- Downloads
- 584/mo · 14/wk
- Author
- so1ve
- License
- MIT
- Types
- extension
- Size
- 4 KB
- Dependencies
- 0 dependencies · 1 peer
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
pi-draft-history
A small Pi coding agent extension that keeps an unsent editor draft in prompt history when the editor is cleared.
Type a draft, invoke Pi's app.clear action (Ctrl-C by default), then press Up
to restore it. Clearing an entry selected by navigating prompt history moves
that entry to the newest position instead of duplicating it.
Install
pi install npm:pi-draft-history
Restart Pi or run /reload after installation.
Keybindings
The extension follows the configured app.clear binding. Pi's defaults are:
{
"app.clear": ["ctrl+c"],
"app.exit": ["ctrl+d"]
}
Avoid binding the same key to app.exit: Pi checks exit before clear when the
editor is empty.
LICENSE
MIT