← Catalog

pi-pinned-sessions

Pin sessions directly in Pi's Ctrl+R session picker, with fast first-page loading

Package

Install

Install with PiG

pig install npm:pi-pinned-sessions

Install with Pi

pi install npm:pi-pinned-sessions
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": [
    "./pinned-sessions.ts"
  ]
}

README

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

pi-pinned-sessions

Pin any number of sessions directly in Pi's native Ctrl+R session picker. Pinned sessions appear first with a 📌 marker. The picker shows pinned sessions and the first recent batch immediately, then continues loading the remaining sessions in the background.

Requirements

  • Node.js 22.19 or newer
  • Tested with Pi 1.5.2

Install

pi install npm:pi-pinned-sessions

Restart Pi or run /reload.

Use

  1. Press Ctrl+R or run /resume.
  2. Search or move the cursor to a session.
  3. Press Ctrl+X to pin or unpin it.

All native picker features remain available, including search, rename, delete, current/all scope, and session resume.

Pins are stored outside the conversation in:

~/.pi/agent/pinned-sessions.json

They never enter the model context.

Compatibility

This extension customizes Pi's runtime session selector and uses some internal component state. Future Pi releases may require an update. No Pi installation files are modified.

Uninstall

pi remove npm:pi-pinned-sessions

License

MIT