pi-loopsmith

A pi extension that reviews coding-agent sessions and suggests workflow improvements.

Packages

Package details

extension

Install pi-loopsmith from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-loopsmith
Package
pi-loopsmith
Version
0.1.1
Published
May 22, 2026
Downloads
not available
Author
viartemev
License
MIT
Types
extension
Size
11.1 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/retro.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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 /retro or /compact.

Install

pi install npm:pi-loopsmith

Or project-local:

pi install npm:pi-loopsmith -l

Then restart pi or run:

/reload

Usage

/session-health

Shows a fast metrics-based report.

/retro

Sends a structured retrospective prompt to the current model based on the active session branch.

Development

For local testing:

pi -e ./extensions/retro.ts

Or copy/symlink the extension to:

~/.pi/agent/extensions/retro.ts

Privacy

/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