pi-prompt-stash

Git-stash for your train of thought — save prompt drafts with ctrl+s, restore with ctrl+shift+s

Package details

extension

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

$ pi install npm:pi-prompt-stash
Package
pi-prompt-stash
Version
0.1.0
Published
Feb 24, 2026
Downloads
26/mo · 5/wk
Author
emiller88
License
MIT
Types
extension
Size
12.2 KB
Dependencies
0 dependencies · 1 peer
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-prompt-stash

Git-stash for your train of thought. Save prompt drafts, restore them later. Stashes persist across sessions.

Install

pi install npm:pi-prompt-stash

Shortcuts

Key Action
ctrl+s Open editor to capture and stash a prompt draft
ctrl+shift+s Pop most recent stash to editor

Commands

/stash              → list all stashes (interactive picker)
/stash <text>       → save text directly as a stash
/stash pop [n]      → pop stash n (default: 1) to editor
/stash drop [n]     → drop stash n without restoring
/stash clear        → clear all stashes

How it works

Stashes are stored in ~/.pi/agent/prompt-stash.json. They persist across sessions and are reloaded on session start. The interactive picker (/stash) lets you restore, view, edit, or delete individual stashes.

Status bar

Shows stash count in the status bar when stashes exist: stash: 3 stashes