metareview
Local-first review, repair, and hardening for humans and coding agents. metareview brings structured,
adversarial, evidence-backed rigor to the parts of the software lifecycle where quality is actually
decided — reviewing work before it lands, finding and fixing bugs with proof that the fix holds, and
driving critical code to exhaustive tests. It's Go-backed, Markdown-friendly, model-swappable, and runs
standalone or as a deeper review engine inside metaswarm, Superpowers, and Beads workflows.
What metareview does
- 🔍 Reviews before you commit. Named gates for specs, plans, code, epics, and PRs — ten adversarial
reviewer lenses, deterministic blockers, and durable Markdown evidence. Not another "please review this"
prompt: real gates with explicit verdicts. Lenses also report advisory findings — the real,
important, not-defects class (latent defects, design risks, simplification opportunities, code smells)
that a staff-level reviewer would actually raise, quality-gated so the channel informs instead of flooding.
- 🐛 Finds and fixes bugs — with proof.
metareview fsm drives an audited discover → adjudicate → fix → prove → verify loop where a fix is trusted only when it carries a differential proof
(a reproduction / pin / deletion) that metareview runs deterministically against your real tests. A
{commit, summary} is not evidence; a proof is.
- 🧪 Hardens critical code toward exhaustive tests. Ingests mutation-tool output (gremlins / Stryker /
mutmut) so a surviving mutant on a "100%-covered" line becomes an actionable finding, plus a Go-native
coverage gate that only ratchets up.
- 🌐 Works across languages — Go, TypeScript/Jest, Vitest, Python/pytest — using each test runner's own
structured output (no bespoke parser).
- 🔀 Model-swappable, auditable judges. Pick the judge per run — Claude, Codex/GPT, GLM, Kimi — every
judge call is recorded and swappable, and runs are forkable and resumable.
- 📐 Typed lens-output contract (0.12). Lens findings carry a typed schema
(tag/file/lines/issue/consequence/confidence/severity) validated deterministically before they can
become candidates: malformed entries are rejected and counted (never crash the run), and an
anchor-in-diff gate (±10 context lines) rejects findings that cite files or lines the diff never
touched. An output with nothing kept and anything rejected fails the node instead of ending the loop clean
(mr-0vk); only entries suppressed below the confidence floor read as "nothing to raise". Benchmarked in the lab (dsifry/metareview#159): the typed schema cut output tokens 27%, and
the anchor gate is a real fabricated-finding catcher at F1-neutral. Judge transports also retry a
gateway's
400 output-limit answer once at 4× the cap — transport headroom only, calibration frozen.
- 📚 Learns locally. Post-merge learning extracts durable, git-native, human-readable lessons — no
proprietary SaaS lock-in.
→ New here? Read USAGE.md for a task-oriented walkthrough, and INSTALL.md to
get set up.
Use Cases
- Workflow runs.
metareview fsm drives sdlc-loop (discover → adjudicate → fix → verify) and review-loop as an audited state machine: the agent does the host nodes' work in its own warm session, judge calls are auditable and swappable, and resume is a fork. Contract: metareview fsm --agent-prompt; guide: docs/fsm/driving-a-workflow.md.
metareview is for any moment where a human or coding agent needs a second, structured pass before moving work forward: