pi-loopsmith
v0.1.1
Published
A pi extension that reviews coding-agent sessions and suggests workflow improvements.
Maintainers
Readme
pi-loopsmith
A pi extension that reviews your coding-agent sessions and turns repeated loops into concrete workflow improvements.
Features
/session-health— quick rule-based health report for the current session branch:- entry counts
- tool errors
- failed tools
- hot files
- common bash commands
- heuristic hints
/retro— asks the active model to review the current session flow and suggest improvements:- what worked well
- where time was lost
- what to add to
AGENTS.md - useful prompt templates / extension ideas
- what to do differently next time
- Footer status with current session size and tool-error count.
- Lightweight long-session reminder suggesting
/retroor/compact.
Install
pi install npm:pi-loopsmithOr project-local:
pi install npm:pi-loopsmith -lThen restart pi or run:
/reloadUsage
/session-healthShows a fast metrics-based report.
/retroSends a structured retrospective prompt to the current model based on the active session branch.
Development
For local testing:
pi -e ./extensions/retro.tsOr copy/symlink the extension to:
~/.pi/agent/extensions/retro.tsPrivacy
/session-health is local and rule-based.
/retro sends a summary of your current session branch to the active model provider. It does not send full raw tool outputs by default, but it includes prompts, metrics, hot files, common commands, and recent error snippets.
License
MIT
