@saadjs/pi-stash

Claude Code-style prompt stashing for pi

Packages

Package details

extension

Install @saadjs/pi-stash from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@saadjs/pi-stash
Package
@saadjs/pi-stash
Version
0.0.3
Published
Aug 26, 2026
Downloads
280/mo · 280/wk
Author
saadjs
License
MIT
Types
extension
Size
8 KB
Dependencies
0 dependencies · 2 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

@saadjs/pi-stash

Claude Code-style prompt stashing for pi.

Usage

  1. Start typing a prompt.
  2. Press Ctrl+S to stash it and clear the editor.
  3. Run a slash command such as /model, /settings, or /effort high.
  4. 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-stash

For local development:

pi -e ./extensions/stash/index.ts