@foxfirecodes/pi-stash

Pi extension that adds a shortcut to stash and restore the current prompt.

Packages

Package details

extension

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

$ pi install npm:@foxfirecodes/pi-stash
Package
@foxfirecodes/pi-stash
Version
0.2.0
Published
May 28, 2026
Downloads
not available
Author
foxfirecodes
License
MIT
Types
extension
Size
10 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/pi-stash.js"
  ]
}

Security note

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

README

pi-stash

Pi package that adds a prompt stash shortcut for the interactive editor.

Behavior

Press the stash keybinding to push the current prompt aside and clear the editor. Press it again with an empty editor to restore the stashed prompt. If the editor has text while a prompt is already stashed, pressing the stash keybinding replaces the old stash with the current editor text.

You can also send another message while a prompt is stashed; pi-stash will restore the stashed prompt back into the editor immediately after that message is submitted.

This is useful when you have a longer prompt drafted but want to quickly ask or send something else first.

Keybinding

The default keybinding is ctrl+q. I will consider adding the ability to configure it later, but for now it's hardcoded.

Install

pi install npm:@foxfirecodes/pi-stash

Development

From this checkout:

pi install .

Or try it for one run:

pi -e /path/to/pi-extensions/packages/pi-stash

To run automated tests:

pnpm test