A pi extension that adds interactive review commands for generating high-signal code review prompts.
Interactive picker to choose what to review, then runs a multi-stage review suite:
- Working tree (staged + unstaged + untracked)
- Staged changes only
- GitHub PR by number
- Recent commits (pick a base commit)
It runs these stages and then synthesizes the results:
- Overall review
- Linus-style blunt review
- Staff engineer (FAANG) risk-focused review
- Final synthesis report (deduplicated + prioritized)
Stages are designed to be tweakable via prompt templates.
To interrupt/cancel mid-run, just type anything.
In pi:
/review→ opens an interactive picker/review staged→ staged-only/review worktree→ working tree/review 123or/review #123→ PR 123 (usesgh; must be run inside the repo that owns the PR, withghauthenticated)/review recentor/review recent 100→ pick base commit from last N commits
This package ships its stage prompts in prompts/ (but they are not exposed as standalone /... commands).
The review suite loads prompts in this order:
~/.pi/agent/prompts/<name>.md(user override)- the package default in
prompts/<name>.md
So to customize a stage, copy and edit one of these:
review-overall.mdreview-linus.mdreview-staff.mdreview-synthesize.md
pi install npm:pi-reviewUpdate to latest (if you installed without a version pin):
pi updatePin a specific version:
pi install npm:pi-review@0.1.0pi install https://github.com/maxsumrall/pi-reviewOr project-local (shared via .pi/settings.json):
pi install -l https://github.com/maxsumrall/pi-reviewFrom a checkout:
pi install .
# or for one-off testing
pi -e .This repo includes a GitHub Action that publishes to npm only when you trigger it.
- Add an npm automation token as repo secret
NPM_TOKEN - In GitHub: Actions → Release (npm) → Run workflow
- choose
patch,minor,major, or an explicitx.y.z
- choose
The workflow will:
- bump
package.jsonversion - create a git tag
- push tag + commit
npm publish
- If you already have a local
reviewextension in~/.pi/agent/extensions/, disable/remove one copy to avoid duplicate/reviewregistration (pi config). - This package declares
@mariozechner/pi-coding-agentand@mariozechner/pi-tuias peer dependencies (they come with pi).
