pi-review hands review work to a fresh, read-only Pi session and returns a structured verdict: findings with severity, evidence, location and a stable exit code. Run one reviewer, or a panel of independent reviewers that must agree before a finding blocks the gate. Your agent (Claude Code, Codex, Cursor, Pi) stays the only editor.
npm install -g @zephyrdeng/pi-review
pi-review -- @src/foo.ts # one reviewer
pi-review --panel code-experts --consensus majority -- @src # three lenses, one gate
Why pi-review
| |
|---|
| Isolated, read-only reviewers | Every review is a fresh child process with a hard read,grep,find,ls allowlist. It cannot edit, commit, or leak context from your main session. |
| Panel consensus, not one opinion | 2–8 independent reviewers who never see each other. A finding blocks only when enough of them agree (any / quorum / majority / unanimous); singletons stay visible as advisories. |
| Mix models per reviewer | --reviewer-model r1=openai/gpt-5.6:high --reviewer-model r2=anthropic/claude-opus-4.8:xhigh — cross-family panels catch what one vendor misses. |
| Machine-readable, host-agnostic | One versioned PI_REVIEW_META_JSON line, exit codes 0/1/3/4, and an events-jsonl stream. Drop into CI, hooks, or your own renderer. |
| Loop gate for agent closeout | pi-review loop --until clean re-reviews after each fix round, diffs findings across rounds, and stops on convergence — never unbounded. |
| ~1s screening | pi-review screen skips LLM generation entirely: deterministic slicing + typed Jev judgments against a defect catalog. Measured 1.2s vs 30–50s for a full round. The catalog grows from use — custom patterns + a signal log via pi-review screen-memory. |
| Live everywhere | Native live rows in Pi, a loopback web dashboard for Claude Code / Codex, streamed milestones on stderr for plain terminals. |
| Three review modes | code (correctness, security, tests), plan (six expert lenses), challenge (adversarial pressure test). Extend via JSON presets. |
See it work
 |  |
| Panel footer in any terminal — gate, consensus, cost, per-reviewer status | --ui web dashboard for hosts that buffer stdout |
Every review ends with a structured report and a footer you can read at a glance:
── pi-review ────────────────────────────
Verdict ! REQUEST CHANGES
Status HAS FINDINGS
Mode code
Findings 1 actionable / 1 total
Model provider/model
Tokens in 17.6K · out 512 · cache 2.0K · total 18.2K
Cost $0.05
Duration 42.3s
──────────────────────────────────────────
Scripts read PI_REVIEW_META_JSON: from stderr — findings carry severity, path, location, details, recommendation. No Markdown scraping. → Output & integration
Quick start
Prerequisite: Pi CLI with at least one model provider configured.
# CLI
npm install -g @zephyrdeng/pi-review
# …or one shot: Pi package + skill for Claude Code / Codex / Cursor / Antigravity
npx @zephyrdeng/pi-review install
Claude Code plugin (skill + live panel pane): pi-review install / pi-review update set it up when claude is on PATH, or type at the Claude Code prompt: