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-auto-review

v1.7.3

Published

Automated project review for Pi — scans for problems, writes TODO.md, and optionally auto-fixes in bounded fix loops

Readme

pi-auto-review

Event-driven project review for Pi — automatically scans for problems after work completes, writes findings to TODO.md, and optionally auto-fixes them.

The Point

This extension is invisible to the agent. No commands, no skills, no markers, no branding. Reviews trigger automatically when configured conditions are met — the agent just receives a follow-up message and does the work.

Install

pi install /path/to/pi-auto-review

How It Works

Ralph loop done → review → TODO.md → fix → re-review → fix → re-review (clean) → ✅
  1. Work completes (Ralph loop done, agent finishes, session starts)
  2. Review triggers automatically — scans for problems, writes TODO.md
  3. If autoFix: true — agent fixes items, then re-reviews
  4. Fix loop continues until project is clean or max rounds hit
  5. Convergence check — if fixes cause MORE problems, bail immediately

The fix loop is bounded

  • maxFixRounds (default 3) — hard cap
  • Divergence detection — if a re-review finds MORE items than before, stops immediately
  • Clean exit — 0 items → done right away

Triggers

| Trigger | Default | Description | |---------|---------|-------------| | onRalphDone | true | Auto-review when a Ralph loop completes | | onAgentEnd | false | Auto-review after any agent finishes (after minTurns) | | onSessionStart | false | Auto-review when a session starts |

Configuration

Add to .pi/settings.json (project) or ~/.pi/agent/settings.json (global):

{
  "autoReview": {
    "enabled": true,
    "todoPath": "TODO.md",
    "autoFix": false,
    "maxFixRounds": 3,
    "onRalphDone": true,
    "onAgentEnd": false,
    "onSessionStart": false,
    "minTurns": 3,
    "cooldownMs": 120000,
    "scope": "full",
    "excludePatterns": ["node_modules", ".git", "dist", "build", "coverage"]
  }
}

Settings Reference

| Setting | Type | Default | Description | |---------|------|---------|-------------| | enabled | boolean | true | Master toggle — disable without uninstalling | | todoPath | string | "TODO.md" | Path to the todo file | | autoFix | boolean | false | After building the todo, go fix the problems | | maxFixRounds | number | 3 | Max review→fix→re-review loops | | onRalphDone | boolean | true | Auto-review when Ralph loop completes | | onAgentEnd | boolean | false | Auto-review after agent finishes | | onSessionStart | boolean | false | Auto-review on session start | | minTurns | number | 3 | Minimum turns before onAgentEnd fires | | cooldownMs | number | 120000 | Minimum ms between auto-reviews | | scope | "full"\|"staged"\|"diff" | "full" | Review scope | | excludePatterns | string[] | ["node_modules", ...] | Directories to skip | | prompt | string\|null | null | Custom first-review prompt | | rereviewPrompt | string\|null | null | Custom re-review prompt. Placeholders: {round}, {maxRounds}, {previousItems}, {focusAreas} | | fixInstruction | string\|null | null | Custom instruction appended when autoFix is on | | focusAreas | string[]\|null | null | Override default list of things to look for |

Fix-Only Philosophy

Auto-review finds what's broken, not what's missing:

  • ✅ Build errors, type errors, lint failures
  • ✅ Failing tests, missing tests
  • ✅ Security vulnerabilities, hardcoded secrets
  • ✅ Broken imports, dead code
  • ✅ FIXME/HACK markers (bugs, not ideas)
  • ✅ Debug leftovers (console.log in prod)
  • ❌ Feature requests ("add dark mode")
  • ❌ Architecture proposals ("should use microservices")
  • ❌ Nice-to-haves ("consider using X pattern")

Custom Prompts

All prompts are customizable. Use null or omit to keep defaults.

{
  "autoReview": {
    "prompt": "Focus on TypeScript strict mode errors and security issues in the API routes.",
    "rereviewPrompt": "Check round {round}/{maxRounds}. Previously found {previousItems} issues.",
    "fixInstruction": "Fix each item, then run the test suite to verify.",
    "focusAreas": [
      "Type errors in src/api/",
      "Security issues (hardcoded secrets, eval usage)",
      "Failing tests"
    ]
  }
}

Note: format instructions (TODO.md markers, _Items found: N_) are always appended, even with custom prompts. This ensures the fix loop's item counting works correctly.

Cooldown

2-minute cooldown by default (cooldownMs: 120000). Prevents review spam when multiple events fire close together.

License

MIT