@thgilciffart/pi-stash

Save prompts from Pi chat, browse a searchable stash, and reuse prompts across projects.

Packages

Package details

extension

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

$ pi install npm:@thgilciffart/pi-stash
Package
@thgilciffart/pi-stash
Version
0.1.1
Published
Nov 8, 2026
Downloads
233/mo · 29/wk
Author
thgilciffart
License
MIT
Types
extension
Size
27.4 KB
Dependencies
1 dependency · 2 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

pi-stash

Save prompts from Pi chat, browse a searchable stash, and reuse prompts across projects.

Install

Requires Pi 1.4 or later and Node.js 22.19 or later. The extension uses Pi's interactive terminal UI.

pi install npm:@thgilciffart/pi-stash

Run /reload in an open Pi session.

Save a prompt

  1. Run /stash save.
  2. Search and select a sent prompt from the current conversation branch.
  3. Edit the text, enter a name and description, and choose project or global storage.

The chat picker includes messages retained before compaction and omits image attachments. To write a prompt, run /stash and choose Write a new prompt. Ctrl+Alt+S saves your unsent editor draft without clearing it. Esc cancels a save.

Global prompts live in ~/.pi/agent/stashed-prompts/. Project prompts live in .pi/stashed-prompts/ under Pi's current working directory and require project trust.

Reuse a prompt

Run /stash and choose Browse saved prompts. Search names, descriptions, and text, then select a prompt and choose Insert into editor. Pi appends it to your draft with a blank line between them. Review and send the draft when ready.

The same menu lets you view, edit, or delete a prompt. See the command and file reference for controls and Markdown format.

Develop

npm ci
npm run check
pi -e ./src/index.ts

See publishing for release steps.

MIT license.