npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-conversation-retro

v0.2.0

Published

Pi extension for session review, conversation analysis, and agent mistake detection. Runs automated postmortem reviews on coding agent conversations to surface failure patterns and generate improvement reports for your AGENTS.md and workflows.

Readme

pi-conversation-retro

A pi extension for session review, conversation analysis, and agent mistake detection. It runs automated postmortem reviews on your coding agent conversations — identifying where your agent went wrong, analyzing root causes, and generating actionable improvement reports.

Why

Coding agents make the same kinds of mistakes over and over: misreading instructions, skipping validation, hallucinating APIs, breaking working code, or going down rabbit holes. The problem is that these patterns are invisible unless you manually re-read every conversation — which nobody does.

This extension does it for you. It reviews your recent pi sessions, surfaces recurring failure patterns, and tells you exactly what to fix. Use the output to update your AGENTS.md, project instructions, skills, or workflows so your agent stops repeating the same mistakes. Over time, each retro makes your agent setup measurably better.

What it does

  1. Discovers recent pi session files related to the current repo (via git rev-parse --show-toplevel)
  2. Skips sessions that already have a summary markdown file
  3. Spawns one reviewer subagent per remaining session to analyze mistakes and evaluate conversation quality
  4. Writes one markdown summary per session with concrete findings
  5. Synthesizes all in-scope summaries into a workflow improvement report with prioritized action items

The result is a structured feedback loop: run a retro → read the report → update your agent instructions → fewer mistakes next week.

Install

pi install npm:pi-conversation-retro
# or
pi install git:github.com/c-reiter/pi-conversation-retro

Usage

In any pi session, run:

/conversation-retro

Options

| Flag | Short | Default | Description | |------|-------|---------|-------------| | --days <n> | -d | 7 | Number of days to look back | | --concurrency <n> | -c | 10 | Max concurrent reviewer subagents | | --timeout <minutes> | -t | 12 | Timeout per subagent (minutes) | | --output <path> | -o | .pi/reports/conversation-retro | Output directory (absolute or repo-relative) | | --limit <n> | -l | — | Cap newly analyzed conversations per run | | --dry-run | — | — | Discover and count only, no subagents |

Examples

/conversation-retro --days 14 --concurrency 4
/conversation-retro --dry-run
/conversation-retro --limit 5 --output reports/retro

Output

All output goes to .pi/reports/conversation-retro/ by default:

  • Per-conversation summaries: <session-file-name>.md — mistake analysis for each session
  • Improvement report: workflow-improvement-report-<timestamp>.md — synthesized patterns and action items
  • Latest report: workflow-improvement-report-latest.md — always points to the most recent report

Per-session review sections

  • Summary — what was the task, did it succeed, what was the main issue
  • Problems found — each with evidence, root cause category, and impact
  • Suggested AGENTS.md additions — copy-pasteable rules that would have prevented the problems
  • Suggested workflow changes — improvements to skills, templates, or project structure

Each problem is classified into a root cause category: missing instructions, ignored instructions, wrong approach, missing context, or tool misuse.

Improvement report sections

  • Executive summary — biggest problem and most impactful fix
  • Recurring failure patterns — grouped by frequency and root cause category
  • AGENTS.md improvements — ready-to-paste markdown rules and guidelines
  • Skill and workflow improvements — specific skills, templates, or structural changes to make
  • What's working well — patterns to keep

How it works

The extension registers a /conversation-retro slash command. When invoked, it:

  1. Finds all .jsonl session files under ~/.pi/agent/sessions/ whose cwd header points inside the current git repo
  2. Filters to sessions created within the --days window
  3. Skips sessions that already have a corresponding .md summary in the output directory
  4. Spawns pi subagents in print mode (pi -p --no-session) with read-only tools to analyze each session
  5. Runs the analyses concurrently (up to --concurrency) with per-agent timeouts
  6. Collects all summaries (including previously generated ones) and spawns a final reviewer subagent
  7. The reviewer synthesizes recurring patterns into an actionable improvement report

Progress is shown via a TUI widget and status bar during execution.

License

MIT