Reviews and fixes
Review a diff, PR or commits with zerd, see how it tries to disprove its own findings, and fix what is left.
Ask for a review in plain words: "review my changes", "review my last 3 commits" or "review PR #42".
> review PR #42zerd reviews in stages instead of with one prompt:
- Triage. A cheap pass picks what could plausibly break.
- Reviewers. Each reads the diff through one lens: behaviour, approach, failures, project rules, git history and security. A separate reviewer checks producer-to-consumer contracts.
- Gap pass. One more pass asks what nobody checked.
- Verifiers. Each finding goes to a verifier whose default is to refute it. Six run at a time, and each must name the exact line it read.
- Repro. A confirmed HIGH goes to a repro agent that tries to make the defect happen in a sandboxed copy of the change. If it can't, the finding is capped at MEDIUM and shows what was tried.
- Scoring. Each claim gets a confidence score, and anything below the cutoff is dropped. Refuted claims are remembered per repo for two weeks.
The write-up lists what was reviewed, any fallback taken (the PR base, a failed fetch), and what the reviewers did not check.
Fixing what it found
After a review, pick findings by number:
> fix 2 and 3The fix run starts from the facts the review proved. It has to consult the advisor before its first edit, and it ends with a fresh verifier in a scratch worktree that never saw the author's reasoning.
The challenger
For risky requests ("should we...", a migration, "replace X with Y"), a read-only challenger on a different model family argues against the plan before anything is built. Each objection is tagged:
verified, with a realfile:lineplausibleguess
An objection that cites a file that doesn't exist is dropped.
The challenger is on in interactive sessions and off in scripted ones. --challenge turns it on there.