@samfp/pi-essentials

extensionmaintained

Essential extensions for pi — auto session naming, compact header, clipboard images, image pruning, markdown viewer, screenshots, and subagents.

by · v0.2.3 · published 3mo ago

$ pi install npm:@samfp/pi-essentials
downloads/mo
244
stars
18
last push
4w ago
open issues
0

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

467 downloads · last 12 weeks (weekly)

README

pi-essentials

Essential extensions for pi — quality-of-life improvements that every setup should have.

Install

pi install npm:@samfp/pi-essentials

What's Included

ExtensionWhat it does
Auto Session NameNames sessions from the first user message — no more unnamed-session-1
Compact HeaderClean table-style startup header with keybinding reference
Clipboard ImagePaste base64 image data (PNG/JPEG) directly into the prompt
Image Context PrunerStrips images from older messages to save context tokens
Markdown ViewerRendered markdown preview on Ctrl+O for .md files, plus /mdview and /mermaid commands
Screenshot/ss command — grab clipboard image or send a file to the agent. Requires kitty terminal + kitten binary
Context Prunercontext_prune tool — lets the agent replace bulky search results with short summaries to free context space
Daily Logdaily_log tool — append timestamped entries to a daily markdown note (configurable via env vars)
Subagentsubagent and subagent_status tools for spawning background pi instances whose results auto-inject back

Requirements

  • pi 0.57+
  • For screenshots: kitty terminal with clipboard_control read-clipboard, tmux with allow-passthrough on, ~/.local/bin/kitten
  • For mermaid rendering: internet access (uses mermaid.ink API)

License

MIT