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

@mrclrchtr/supi-review

v1.7.0

Published

SuPi Review extension — structured code review via /supi-review command

Readme

@mrclrchtr/supi-review

Adds an interactive /supi-review command to the pi coding agent for session-aware code review.

Install

pi install npm:@mrclrchtr/supi-review

This is a beta package. It is not bundled in @mrclrchtr/supi.

For local development:

pi install ./packages/supi-review

After editing the source, run /reload.

What you get

After install, pi gets one command:

  • /supi-review — launch a guided review flow over a concrete git snapshot

The reviewer runs in managed child agent sessions:

  • a brief synthesizer creates a structured review brief from the active session branch
  • a read-only reviewer inspects the selected snapshot and submits structured findings

Review flow

/supi-review walks you through:

  1. choose a review target
  2. choose the reviewer model
  3. optionally add a short note
  4. resolve the snapshot
  5. synthesize a review brief from the current session history
  6. preview the synthesized brief + prompt coverage
  7. run the review with a live progress widget
  8. show the structured result as a custom message
  9. if findings exist, hand off to the main agent so it can ask what to do next

Review targets

Current targets:

  • working tree
  • branch diff vs a selected local base branch
  • one recent commit

Session-aware brief synthesis

The generated review prompt is not just a static diff wrapper.

Before the actual review starts, the package:

  • resolves the active session branch into the current LLM-visible context
  • extracts high-signal user/assistant/custom/compaction context from that resolved view
  • synthesizes a structured brief with:
    • summary
    • intended outcome
    • constraints to preserve
    • focus areas
    • risky files
    • unresolved questions

The synthesizer also receives a bounded diff excerpt from the snapshot so it can reason about actual code changes, not just filenames.

That synthesized brief is then combined with the git snapshot into the final reviewer prompt.

Model selection

Every /supi-review run asks you to choose the reviewer model.

  • the picker only shows scoped models from Pi's enabledModels configuration
  • the current session model is preselected only when it is inside that scoped set
  • the selected model is used for both brief synthesis and the final review
  • no review model is persisted in settings

Result shape

A successful review includes:

  • overall correctness verdict
  • overall explanation
  • overall confidence score
  • structured findings with title, body, priority, confidence score, and code location
  • the synthesized brief that drove the review

The renderer also handles failed, canceled, and timed-out reviews.

When a successful review contains findings, supi-review also injects an agent-visible hidden follow-up message that asks the main agent to decide the next step with the user. If ask_user is available, the main agent is instructed to use it and offer:

  • Done
  • Fix all
  • Fix selected
  • Verify findings

Source

  • src/review.ts — command orchestration and interactive flow
  • src/model.ts — explicit model selection helpers
  • src/git.ts — git snapshot resolution
  • src/history/collect.ts — active-branch evidence extraction
  • src/history/synthesize.ts — brief synthesis orchestration
  • src/target/packet.ts — final reviewer packet builder
  • src/tool/brief-runner.ts — brief synthesis child session
  • src/tool/review-runner.ts — read-only reviewer child session
  • src/ui/renderer.ts — structured result rendering