v0.2.0 20 real bugs and a GitHub Action · see what's new

Replay the bugs you shipped.
See which reviewer would have caught them.

ReviewReplay finds the commits that introduced bugs in your own repository, replays each one to your AI code reviewer, and scores what it catches, what it gets wrong and what it costs. Free, MIT, and it runs on your machine.

pip install git+https://github.com/GgauravJ05/reviewreplay
Get started Watch the 21s demo
Reviews with Claude Code · Codex CLI · Gemini CLI · your own prompts and skills Star on GitHub
Open page
Live Workflow · 9 steps

From a fix commit to a score.

This is the real interactive page, not a screenshot. Click a box to trace what feeds it.

Diagrams made with Archify; their specs are in docs/media.

21real bugs, each from a commit that shipped
16open-source projects
4languages: Python, JavaScript, TypeScript, Go
126graded reviews of those bugs
4judge votes on every finding
0lines of third-party code run
01 How it works

Your fixed bugs become the test.

Public benchmarks test reviewers on someone else's pull requests. ReviewReplay uses the bugs your team already fixed, so the score reflects your code, your conventions and your kinds of mistakes.

01 · mine

Find where each bug came from

For every fix commit, it finds the commit that introduced the bug: the commit the fix names, checked with git blame on the lines the fix rewrites.

02 · answer key

Write down the bug

A draft answer key records the file, the line and what goes wrong. You read and confirm every case before it counts.

03 · replay

Rewind the project

The project is exported at the parent commit with no git history, and the buggy change is applied as uncommitted edits, like an open pull request.

04 · review

Ask every reviewer

Each reviewer reviews the change three times, read-only: it can read files and run git diff, log and show, nothing else.

05 · grade

Label every finding

Reviews are split into findings. Each one is matched to the bug by location, voted on by four judges, and checked against the code when they can't settle it.

06 · compare

Get a scorecard

Bugs found, precision, false alarms, cost and time per review, with 95% intervals and paired differences against a baseline.

02 Results so far

A review skill helped on Python. Not on JavaScript, TypeScript or Go.

Claude Code (claude-sonnet-5-5) alone, and with code-review-skill at commit 4850184. Three runs per bug for each reviewer. Each card links to its committed runs.

12 Python bugs

72 reviews · 9 projects
72%precision, Claude Code alone
82%precision, with the skill
MeasureAloneWith skill
Bug found26 / 3627 / 36
Serious false alarms1310
Mean cost per review$0.065$0.097

Paired difference in precision: +10 pts [+1, +16]. A modest lead, at about 1.5× the cost. Runs: first 4 bugs, 8 more.

9 JavaScript, TypeScript and Go bugs

54 reviews · 7 projects
91%precision, Claude Code alone
79%precision, with the skill
MeasureAloneWith skill
Bug found21 / 2718 / 27
Serious false alarms510
Median cost per review$0.046$0.071

Paired difference in precision: −13 pts [−19, +2]. The interval includes zero, so the gap isn't clear yet. Run: m3-js-go.

4 / 21

bugs were missed in every run, with or without the skill.

A Black f-string tokenizer state, a PEFT LoRA conv that drops dilation, an axios error that loses message, and a cobra type that stops some callers compiling.

See where

Grading is checked across two models (Sonnet and Opus agreed on 83% of 187 JS, TS and Go findings, κ 0.77), not yet by people. Nine and twelve bugs are small samples: read these numbers as a direction.

03 Real bugs

Twenty bugs that really shipped.

Each case is a commit from a permissively licensed project that introduced a bug a later commit fixed. Each card shows that commit's title. Open one for the answer key and how it was checked.

real-001Pythonpallets/clickRaise an exception on end of input in CliRunnersrc/click/testing.py · BSD-3-Clause real-002Pythonhuggingface/datasetsDon't extract bad filessrc/datasets/utils/extract.py · Apache-2.0 real-003Pythonpallets/clickEnsure fish completion handles multiline help stringssrc/click/shell_completion.py · BSD-3-Clause real-004Pythonhuggingface/accelerate[FSDP2] Cast model to uniform dtype before fully_shardsrc/accelerate/utils/fsdp_utils.py · Apache-2.0 real-005Pythonpallets/werkzeugCorrectly implement multipart parsing for empty fieldssrc/werkzeug/sansio/multipart.py · BSD-3-Clause real-006Pythonpython-attrs/attrsPerform attr order checks after field transformer.src/attr/_make.py · MIT real-007Pythonpython-attrs/attrsChange __getstate__ and __setstate__ to use a dictsrc/attr/_make.py · MIT real-008PythonTextualize/richfix for panel titlerich/panel.py · MIT real-009Pythonpython-jsonschema/jsonschemaFix a regression with RefResolver-based resolution in newly created draftsjsonschema/validators.py · MIT real-010Pythonpsf/blackEnforce a blank line after a nested class in stubssrc/black/lines.py · MIT real-011Pythonpsf/blackFix incorrect f-string tokenizationmissed in every runsrc/blib2to3/pgen2/tokenize.py · MIT real-012Pythonhuggingface/peftENH Support Conv3d layer in LoRA and IA3missed in every runsrc/peft/tuners/lora/layer.py · Apache-2.0 real-013JavaScriptaxios/axiosfix: update the implementation to rather parse out the values than throwlib/core/AxiosHeaders.js · MIT real-014Gogin-gonic/ginrefactor(context): add an optional permission parameter to the SaveUploadedFile methodcontext.go · MIT real-015Gostretchr/testifyfixing panic in calls to assertion with nil m.mutexmock/mock.go · MIT real-016JavaScriptaxios/axiosfix: turn AxiosError into a native errormissed in every runlib/core/AxiosError.js · MIT real-017Gospf13/cobraperf(bash-v2): speed up filtering entries with descriptionsbash_completionsV2.go · Apache-2.0 real-018Gospf13/cobrafeat: add CompletionFunc type to help with completionsmissed in every runcompletions.go · Apache-2.0 real-019Gourfave/clifix: parallel running - remove globals used for splicing slices and mapscommand.go · MIT real-020Gosirupsen/logrusfix race condition for SetFormatter and properly fix SetReportCaller race as wellentry.go · MIT real-021TypeScripthonojs/honorefactor(compress-middleware): resolve type assertion using const assertionsrc/middleware/compress/index.ts · MIT
04 Graded, then checked

A finding counts only after four checks.

An LLM judge on its own is easy to fool and hard to trust. Every finding goes through the same gates, and every vote is saved, so any number can be audited.

01

locationIs it near the bug?

A finding within 3 lines of the known bug can count as finding it. Within 15 lines it still reaches the judges, so a slightly-off line number isn't thrown away.

GATE
02

judgesThe bug, another real problem, or a false alarm?

Four votes per finding: Sonnet three times and Opus once. The majority label wins. Findings with no majority are marked contested.

4 VOTES
03

verifyWhen the judges are unsure, read the code.

Serious claims the judges can't settle are checked against the project's code, library source included. They come back confirmed, refuted or still unsure.

CODE CHECK
04

compareIs the difference real?

Reviewers are paired by case, with 95% bootstrap intervals. Contested findings can be dropped to see whether the result still holds.

PAIRED
compare · m3-js-go
$ reviewreplay compare results/m3-real-0{13..21} --kind real

subject                     bug found  precision
baseline                    21 / 27    91% (53/58)
code-review-skill-invoked   18 / 27    79% (44/56)

paired vs baseline
precision Δ  -13 pts [-19, +2]
recall Δ     -11 pts [-30, 0]

judges      172 findings, 4.0 votes each
            123 unanimous · 14 contested
            sonnet vs opus: 82% agree, κ 0.75
verify      13 unsure checked: 13 confirmed, 0 refuted
172findings graded
0.75Cohen's κ, two models
13 / 13unsure claims confirmed
05 What you get

Everything saved. Nothing hidden.

See it on a real bug

A real pallets/click bug, rewound to the commit that caused it and replayed to Claude Code. The review found the bug, two other real problems and two false alarms.

Watch the 21-second demo →
ReviewReplay grading a Claude Code review of a pallets/click bug

A scorecard per run

summary.md with recall, precision, clean passes, decoy traps, cost and time, each with a 95% interval.

Every finding kept

Raw reviews, extracted findings and every judge vote are saved as JSON next to the scorecard.

Cost before you spend

--dry-run prints reviews, cost and time first: about $0.06 and 15 seconds per review.

A scorecard on every PR

The GitHub Action re-scores your reviewer when its prompt or skill changes and comments the result.

Runs resume

Stop a run, or hit a usage limit, and the next run picks up where it left off. Finished reviews are cached.

Read-only reviewers

Reviewers can't edit files or run your code, and ReviewReplay never runs code from the projects it replays.

doctor first

Checks git, claude, Python and the cache folder, and prints one fix per problem. It spends nothing.

Your login, your keys

Reviews run on your own claude login or API key. ReviewReplay never asks for or stores one.

06 Reviewers

Any reviewer that prints a review.

A reviewer is a small JSON file. Claude Code is built in; anything else is a command that takes a prompt and prints a review.

Tested · 21 bugs

Claude Code

Any model, with a read-only allow-list.

subjects/baseline.json
Tested · 21 bugs

Claude Code + a skill

Natural or invoked. Tested with code-review-skill @ 4850184.

subjects/code-review-skill-invoked.json
Adapter ready

Codex CLI, Gemini CLI

Run read-only through their own CLIs. Results to come.

subjects/examples/codex.json
Adapter ready

Your own reviewer

Claude Code's /code-review, a team prompt, or any command.

"command": ["your-cli", "{prompt}"]
07 Quick start

Three steps. One command each.

# install, then run inside your repository
pip install git+https://github.com/GgauravJ05/reviewreplay
cd your-repo
reviewreplay doctor              # checks setup; spends nothing
reviewreplay init --dry-run      # which fixed bugs it would use
reviewreplay init                # mine them into draft cases
reviewreplay run --cases .reviewreplay/cases \
  --out .reviewreplay/results --include-drafts --dry-run
reviewreplay run --cases .reviewreplay/cases \
  --out .reviewreplay/results --include-drafts
reviewreplay report .reviewreplay/results
1

Install

One pip install. Python 3.10+, no dependencies. reviewreplay doctor checks the rest.

2

Mine your fixes

reviewreplay init turns your fixed bugs into draft cases. Read each one and keep the ones you agree with.

3

Run and compare

See the cost with --dry-run, then run. The report shows which reviewer caught what, and at what cost.

Full guide in the README. Adding a case by hand: ADDING_A_CASE.md.

FAQ Questions

What people ask first.

What does a run cost?

About $0.06 and 15 seconds per review, from the committed runs. Twelve cases, two reviewers and three runs come to about $4.25 and six minutes, plus grading. --dry-run prints the estimate before anything is spent.

Does my code leave my machine?

Only what your reviewer sends to its own provider, exactly as when you use it normally. ReviewReplay runs locally, has no server and collects nothing.

Do I need an API key?

Not for Claude Code: reviews and grading can run on your own claude login. In CI, the Action takes a key from your repository secrets. ReviewReplay never stores one.

Why not just use a public benchmark?

Public benchmarks use shared pull requests that may be in a model's training data, and they aren't your code. ReviewReplay answers the question your team has: on our bugs, which reviewer, prompt or skill does better, and at what cost?

How much should I trust the grading?

Each finding gets four votes from two models, unsure claims are checked against the code, and contested findings are reported apart. The two models agreed with κ 0.75 on the JS/Go run. Human labels are the next step; until then, treat small differences with care.

Who made it?

Gaurav Jadhav (@GgauravJ05). It started from a question on code-review-skill#32: does a review skill measurably improve reviews? MIT licensed; contributions welcome.

Replay your last twenty fixes.

reviewreplay doctor && reviewreplay init --dry-run