pi-prompt-shelf

Pi extension: stash prompts into a persistent shelf with keyboard shortcuts and interactive picker

Package details

extension

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

$ pi install npm:pi-prompt-shelf
Package
pi-prompt-shelf
Version
1.1.1
Published
Apr 30, 2026
Downloads
191/mo · 191/wk
Author
tanishqkancharla
License
MIT
Types
extension
Size
17.1 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./prompt-shelf.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-prompt-shelf

A Pi extension that lets you stash prompts from the editor into a persistent, per-session shelf instead of submitting them. Each session in each project gets its own shelf, and shelved prompts survive restarts. The shelf is always visible as a widget above the editor input.

https://github.com/user-attachments/assets/cb8b28b4-bd8b-41d4-9e0f-a3dc3bac4981

Installation

# From GitHub
pi install https://github.com/tanishqkancharla/pi-prompt-shelf

# Try without installing
pi -e https://github.com/tanishqkancharla/pi-prompt-shelf

Features

  • Session-scoped persistence — each Pi session gets its own shelf under ~/.pi/prompt-shelf/<project>-<hash>/<sessionId>.json; starting a new Pi session starts with an empty shelf, and resuming a session restores its shelf
  • Widget display — a bordered widget above the editor shows all shelved prompts with timestamps
  • Quick restore — restore any prompt by number with Alt+1..9
  • Interactive picker — browse, restore, or delete shelved prompts with the /shelf command

Shortcuts

Key Action
Alt+S Shelve current editor text
Alt+1-9 Restore shelved prompt by number
Alt+X Clear all shelved prompts

Command

Command Description
/shelf Open shelf picker (restore / delete)

License

MIT