@saadjs/pi-stash
v0.0.2
Published
Claude Code-style prompt stashing for pi
Maintainers
Readme
@saadjs/pi-stash
Claude Code-style prompt stashing for pi.
Usage
- Start typing a prompt.
- Press Ctrl+S to stash it and clear the editor.
- Run a slash command such as
/model,/settings, or/effort high. - The stashed prompt automatically returns to the editor after the action starts.
Shell commands are supported too: run !command or !!command after stashing and the prompt returns when execution finishes. Model and thinking-level shortcuts automatically restore the prompt as well.
Press Ctrl+S with an empty editor to restore manually. If both the editor and stash contain text, Ctrl+S swaps them. A footer status appears while a prompt is stashed.
The extension composes with an editor installed by an earlier extension. Install editor-replacing extensions before this one if you want both wrappers to apply.
Prompt attachments are not included because pi's extension API currently exposes editor text only.
Install
pi install npm:@saadjs/pi-stashFor local development:
pi -e ./extensions/stash/index.ts