← Catalog

pi-simple-stash

Single-slot prompt stash for pi: set a draft aside with a shortcut and bring it back later.

ExtensionPrompt

Install

Install with PiG

pig install npm:pi-simple-stash

Install with Pi

pi install npm:pi-simple-stash
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./simple-stash.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

pi-simple-stash

npm license

A single-slot prompt stash for Pi: set the draft you are writing aside, clear the editor, and bring it back later. One prompt, one slot, no list — the behaviour of Claude Code's Ctrl+S stash.

Install

pi install npm:pi-simple-stash

Run /reload, or restart Pi. From source instead:

pi install git:github.com/dili91/pi-simple-stash

Update either source with pi update --extensions.

Use

PressEditor stateResult
Ctrl+Shift+Sdraftdraft is held, editor clears
Ctrl+Shift+Semptyheld draft comes back, unsent
Ctrl+Shift+Sdraft, stash heldwarning, both left alone

The stash survives sending messages. It lives in memory, so a session switch, /reload, or exit clears it. Text only.

Configuration

The shortcut defaults to Ctrl+Shift+S. Override it with a key in JSON, project first, then user:

  • <project>/.pi/simple-stash.json
  • ~/.pi/agent/simple-stash.json
{ "key": "ctrl+q" }

The value uses Pi's key syntax (ctrl+q, ctrl+alt+k, f2). Pi reads it when the extension loads, so run /reload after editing. A missing file, unreadable JSON, or absent key falls back to the default.

Ctrl+Shift+S needs a terminal that reports modifiers separately (Kitty keyboard protocol or xterm modifyOtherKeys). On a legacy terminal it arrives as plain Ctrl+S and does nothing — configure another key, such as ctrl+q.

How it works

simple-stash.ts is one file with no dependencies. It registers a single Pi shortcut that reads the editor text and swaps it with an in-memory slot. Pi loads the TypeScript directly.

Development

Try a local checkout without installing anything:

pi -e ./simple-stash.ts