CodeReviewBench: An Automated Benchmark for Evaluating the Software Factory
Organizations: Martian · Greptile · Augment · TSG Lab, University of Oxford
Abstract
As AI agents ship more code with minimal human oversight, code review becomes the critical quality-control checkpoint -- but one without a reliable, objective verifier: review quality is nuanced and ultimately a judgment call by the PR author. Existing benchmarks are structurally misaligned with this: annotators are third-party reviewers, like the bots they evaluate, not the PR authors who actually decide what to fix. They also rely on small, static issue sets that require full re-evaluation as tools update, limiting how frequently progress can be tracked. We introduce CodeReviewBench, built on a fundamentally different signal: revealed developer preferences -- if a developer acts on a bot's suggestion, we treat it as useful; if they ignore it, we do not. This signal is mined daily from the public GitHub event stream, yielding 500K+ judged PRs across 18 tools, and refreshes continuously as tools evolve. We validate the developer preference against an independent offline benchmark: the two agree on precision rankings and independently detect the same product updates within days of vendor releases. Together, these form the benchmark.
Figures & tables
| Filter | Effect | Retained |
| Base | All merged PRs with a tracked bot review | 100% |
| Bot authors | Exclude PRs opened by bot accounts | 88.6% |
| Conc. cap | Sample 50 PRs per author–repo–bot triple | 83.8% |
| Engagement | Require PRs with 1 human comment or commit after bot review | 41.3% |
| Team repos | Require PRs with 2 human contributors in repo | 20.2% |
| Human reviewer | Require PRs with 1 non-author human reviewer | 9.3% |
| Precision | F 0.5 | F 1 | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | Cubic Dev AI | 75.5 | Cubic Dev AI | 67.2 | Cubic Dev AI | 57.6 | ||
| 2 | Greptile | 72.6 | Greptile | 60.9 | Qodo | 53.0 | ||
| 3 | Cursor | 68.6 | Gemini | 59.5 | Gemini | 52.8 | ||
| 4 | Graphite | 68.3 | Cursor | 57.5 | CodeRabbit | 52.3 | ||
| 5 | ChatGPT Codex | 66.1 | Qodo | 57.3 | Claude | 51.9 | ||
| F 2 | Recall | |||||||
| Config | Models (orchestrator + subs) | P | R | F 1 | Cost |
|---|---|---|---|---|---|
| mra-openai | GPT-5.5 + GPT-5.4-mini | .166 | .350 | .225 | $87 |
| mra-mix | GPT-5.5 + Haiku 4.5 | .166 | .350 | .225 | $491 |
| mra-claude | Sonnet 4.6 + Haiku 4.5 | .157 | .350 | .217 | $408 |
| Commercial tools (median) | .445 | .467 | .440 | — | |
Appendix figures & tables31 assets
Supplementary material from the paper’s appendix.
Appendix
| Dimension | Online | Offline |
|---|---|---|
| Ground truth | Revealed developer actions (PR author decides) | Expert-curated gold set (third-party annotator decides) |
| Scale | 500K+ PRs, refreshed daily | 50 PRs, fixed set |
| Head-to-head | Not possible (one tool per repo) | All tools review the same PRs |
| Temporal | Continuously updated; detects changepoints | Point-in-time snapshot; confirms direction of change |
| P/R regime | Precision-leaning (mean P/R = 1.53): developers engage selectively | Recall-leaning (mean P/R = 0.80): comprehensive gold set with known issues |
| Tool config | As deployed (org-specific knobs, severity thresholds) | Default config (raw capability) |
| Tool | P | R | F 0.5 (rank) | F 1 (rank) | F 2 (rank) | rank |
|---|---|---|---|---|---|---|
| Cubic | .761 | .469 | .674 (1) | .580 (1) | .507 (2) | +1 |
| CodeRabbit | .554 | .499 | .542 (8) | .525 (2) | .510 (1) | 7 |
| Gemini | .651 | .438 | .594 (3) | .524 (3) | .469 (5) | +2 |
| Sourcery | .583 | .470 | .559 (7) | .520 (4) | .492 (3) | 4 |
| Claude | .591 | .458 | .560 (6) | .516 (5) | .481 (4) | 2 |
| Greptile | .728 | .374 | .613 (2) | .494 (6) | .414 (7) | +5 |
| Metric | Cross-benchmark Spearman |
|---|---|
| F 1 | |
| F 0.5 | |
| F 0.3 | |
| Precision |
| Metric | Spearman | Interpretation | |
|---|---|---|---|
| Precision | Strong agreement | ||
| P/R Ratio | Trade-off preserved | ||
| Recall | Directional, not significant | ||
| F 1 | No correlation |
| Tool | PRs | Repos | PR/Repo | 1 | 2 | 3–5 | 6–10 | 11+ |
|---|---|---|---|---|---|---|---|---|
| Copilot | 142,779 | 70,000 | 2.0 | 74.2 | 5.9 | 1.4 | 0.2 | 0.1 |
| CodeRabbit | 130,980 | 33,925 | 3.9 | 77.0 | 9.9 | 5.2 | 1.3 | 0.8 |
| Gemini | 114,212 | 18,107 | 6.3 | 75.5 | 8.2 | 4.1 | 1.2 | 0.8 |
| Codex | 113,232 | 36,251 | 3.1 | 81.9 | 4.1 | 0.8 | 0.2 | 0.1 |
| Greptile | 79,243 | 4,870 | 16.3 | 65.1 | 16.8 | 8.6 | 2.3 | 2.7 |
| Cursor | 69,906 | 19,512 | 3.6 | 86.1 | 4.9 | 2.1 | 0.6 | 0.4 |
| Concern | Tests | Finding |
|---|---|---|
| Robustness | 3 judge families, alt. methodology, 6 filter configs | Rankings invariant |
| Replicability | Split-halves, random day-partitions, day-block bootstrap | 1 pp CIs |
| Fairness | DML with 9 confounders, stratified analysis | Rankings preserved ( ) |
| Test | Method | Result | Ref. |
| Instrument robustness | |||
| Cross-judge agreement (matching) | Three judges, shared extractions | Fleiss’s | App. D |
| Cross-judge agreement (full pipeline) | Three judges, independent runs | – pairwise | App. D |
| Alternative judge (CAR) | Skip extraction; match comments to diffs directly | 82% binary agreement; mean bias | App. D |
| Filter convergence | Re-rank under six filter configurations | pairwise | App. 2 |
| Filter sensitivity | Sweep contributor/reviewer thresholds | pp shift in precision; pp in recall | App. F |
| Comparison | Metric | Value |
| Matching only (shared extractions) | ||
| All three models | Fleiss’s | 0.86 |
| GPT-5 Nano vs. Claude Sonnet 4.5 | Cohen’s | 0.90 |
| GPT-5 Nano vs. Gemini 3 Flash | Cohen’s | 0.84 |
| Claude Sonnet 4.5 vs. Gemini 3 Flash | Cohen’s | 0.82 |
| Full pipeline (independent extraction + matching) | ||
| Human judgment | Judge: no match | Judge: match | Total |
|---|---|---|---|
| No | 49 | 7 | 56 |
| Uncertain | 5 | 9 | 14 |
| Yes | 9 | 46 | 55 |
| Total | 63 | 62 | 125 |
| Dimension | Rating | Count | Percent |
|---|---|---|---|
| Factual accuracy | Yes | 36 | 24.0% |
| Partially | 80 | 53.3% | |
| No | 34 | 22.7% | |
| Relevant to PR | Yes | 138 | 92.0% |
| Tangential or no | 12 | 8.0% | |
| Actionable | Yes | 148 | 98.7% |
| Tool | Human accuracy | Online precision | |
|---|---|---|---|
| Augment | 8 | 75.0% | 57.1% |
| Claude | 18 | 61.1% | 52.4% |
| CodeRabbit | 32 | 53.1% | 45.3% |
| Copilot | 19 | 63.2% | 58.5% |
| Cubic | 6 | 66.7% | 63.5% |
| Cursor | 7 | 85.7% | 71.1% |
| Dimension | Threshold | Precision | Recall | Scored PRs |
|---|---|---|---|---|
| Repo contributors | 1+ (default) | 0.596 | 0.415 | 84,183 |
| 2+ | 0.589 | 0.404 | 40,078 | |
| 3+ | 0.586 | 0.404 | 26,843 | |
| 6+ | 0.602 | 0.398 | 14,932 | |
| 11+ | 0.605 | 0.400 | 9,044 | |
| Human reviewers | 0+ (default) | 0.596 | 0.415 | 88,194 |
| Tool | SE | Raw diff | ||
|---|---|---|---|---|
| Cubic Dev AI | 0.117 ∗ | 0.008 | 0.158 | 2,695 |
| Devin | 0.046 ∗ | 0.010 | 0.115 | 2,414 |
| Greptile | 0.023 ∗ | 0.006 | 0.070 | 7,978 |
| Cursor | 0.021 ∗ | 0.007 | 0.089 | 4,607 |
| Claude | 0.012 ∗ | 0.005 | 0.001 | 6,123 |
| Copilot | 0.012 ∗ | 0.005 | 0.015 | 10,308 |
| System | P (%) | R (%) | F 1 (%) | Tok/PR | Cost |
| Commercial tools ( , 50 PRs each) | |||||
| Median | 44.5 | 46.7 | 44.0 | — | — |
| Mean | 43.4 | 46.9 | 42.2 | — | — |
| IQR | [33.7, 48.2] | [38.1, 55.3] | [37.1, 46.5] | — | — |
| MRA configurations (same harness, different models, 50 PRs each) | |||||
| mra-openai (GPT-5.5 + 5.4-mini) | 16.6 | 35.0 | 22.5 | 1.0M | $87 |
| Arm | PR-level F 1 | Hunk-level F 1 |
|---|---|---|
| Base (untuned Qwen) | 0.530 [0.41, 0.64] | 0.526 [0.37, 0.69] |
| SFT-only | 0.562 [0.47, 0.66] | 0.413 [0.29, 0.54] |
| DPO filtered | 0.563 [0.48, 0.66] | 0.495 [0.36, 0.63] |
| DPO inverted | 0.502 [0.40, 0.61] | 0.409 [0.31, 0.52] |
Software Engineering Benchmarks
Software engineering benchmarks evaluate how well AI systems understand, build, repair, test, and maintain software in realistic settings.
See all 178 papers