Skip to content

bobcats/pi-extensions

Repository files navigation

@bobcats/pi-extensions

Extensions and prompt templates for pi.

Extensions

Extension Description
auto-name-session Auto-names sessions after the first completed exchange using the cheapest model
confirm-rm Confirms before any rm command
context Shows loaded extensions, context files, and token/cost usage
exa Adds Exa-powered web search, answers, and research tools
ext-prof Profiles extension handler execution time
files Lists git-tracked and session-referenced files with quick actions
memory Persists agent learnings across sessions — reflect, ruminate, dream, and named brains
notify Sends desktop notifications via OSC 777 when the agent finishes
session-breakdown Shows usage stats, cost by model, and a calendar graph
slop-scan Adds a slop_scan checkpoint tool and /slop-scan command for JS/TS slop analysis
subagent Delegates tasks to isolated subagents — single, parallel, or chained
tldraw-desktop Reads and manipulates tldraw desktop canvases

Skills

Skill Purpose
memory-ingest Deterministically ingest URLs, local paths, repos, datasets, and pasted text into ~/.pi/memories/raw/, then compile them into curated notes under ~/.pi/memories/

Prompt Templates

Template Slash command
implement.md /implement
implement-and-review.md /implement-and-review
scout-and-plan.md /scout-and-plan
simplify.md /simplify
test-checklist.md /test-checklist

Install

pi install /path/to/pi-extensions

Or in ~/.pi/agent/settings.json:

{
  "packages": ["/path/to/pi-extensions"]
}

All extensions and prompt templates load automatically. Use pi config to enable or disable individual resources.

Development

Run tests:

cd confirm-rm && npm test
cd exa && npm test
cd ext-prof && npm test
cd memory && npm test
cd slop-scan && npm test
cd tldraw-desktop && npm test

Skills live under ./skills/ and are packaged with the repository. For example, /skill:memory-ingest <input> writes markdown artifacts to ~/.pi/memories/raw/ and then updates curated notes in ~/.pi/memories/.

Memory brains

The memory extension defaults to the main brain at ~/.pi/memories.

Global brain config lives at ~/.pi/memory-config.json.

Example commands:

/memory brain create poe
/memory brain map /Users/brian/code/poe poe

Hot-reload in a running session:

/reload

Acknowledgments

  • context, files, notify, and session-breakdown are forked from mitsuhiko/agent-stuff by Armin Ronacher
  • confirm-rm is based on the permission-gate example in pi
  • memory is inspired by brainmaxxing by Lauren Tan
  • tldraw-desktop connects to tldraw desktop by tldraw

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors