Code review by AI
Code review by AI is the use of large language models to inspect code changes and point out defects. The review can be comments on a pull request (a proposed change awaiting approval), or a coding agent checking its own work. On real pull requests, developers act on few of the comments these tools write, and models find far fewer real defects than benchmarks with planted errors suggest (Olewicki et al., 2024; Kumar et al., 2026). Two questions are disputed: whether a model reviews its own code worse in the context where it wrote it, and whether a different model reviews it better (Khullar et al., 2026; Song, 2026a; Xiang et al., 2026a).
Review comments on real pull requests Weak evidence: few or small studies support this
Developers accept a minority of AI-generated review comments, and accept fewer of those about how the code behaves. In a live study at Mozilla and Ubisoft, reviewers accepted 8.1% and 7.2% of generated comments. Comments proposing refactoring (restructuring code without changing its behaviour) were accepted far more often than comments about functional problems, about 18% against about 5% (Olewicki et al., 2024). Checking the comments cost reviewers a median of 43 seconds extra per patch (Olewicki et al., 2024).
For a commercial review bot, developers accepted 36.4% of 31,073 CodeRabbit comments, and 7.3% started a discussion. Comments on functional concerns were rejected 48.6% to 57.8% of the time, largely because they were invalid (Lin et al., 2026d).
Suggestions from AI agents are adopted far less often than suggestions from human reviewers. Across 300 open-source projects, 16.6% of AI suggestions were adopted against 56.5% of human ones. Incorrect suggested code was the most common reason for not adopting one, in 28.7% of cases. When adopted, AI suggestions made code larger and more complex than adopted human ones did (Zhong et al., 2026b).
The form of a comment affects whether it leads to a change. Across 16 AI review tools run as GitHub workflows, effectiveness varied widely. Comments that were concise, contained code snippets and were triggered by hand were more likely to lead to code changes, particularly from tools that comment on individual blocks of changed lines (Sun et al., 2025a).
Planted errors and real pull requests Weak evidence: few or small studies support this
Models find far fewer defects in real pull requests than in planted bugs. One study scored reviewers with F1, which combines the share of flagged issues that are real (precision) with the share of real defects found (recall). F1 runs from 0 (nothing useful) to 1 (every defect found, no false alarms). The best of five model reviewers reached F1 0.847 on synthetic bugs but 0.066 on real bug-fix pull requests, a 92% drop. Evaluations built only on planted errors therefore overstate review ability (Kumar et al., 2026).
Larger changes are reviewed much worse. In the same study, F1 fell from 0.657 on changes under 10 lines to 0.043 on changes over 150 lines, and all five models found almost no performance bugs (Kumar et al., 2026). A bigger model was not always better: the smaller Claude Haiku 4.5 scored a higher F1 than the larger Claude Sonnet 4.6 (0.365 against 0.343) (Kumar et al., 2026).
Benchmarks built from real past defects give review agents a partial catch rate. On CR-Bench-v2, built from SWE-Bench issues, the strongest agents detected only about one-third of known defects (Pereira et al., 2026). On CRBugBench, the best agent caught 71.9% of historical bugs within its top five comments, and people working with it caught more than people alone. Its authors conclude that review with no human involved suits only narrowly scoped, low-consequence pull requests (Yang et al., 2026a).
Wrong verdicts on correct and incorrect code Strong evidence: many studies agree on this
Model reviewers err in both directions: they flag correct code as faulty and pass faulty code as correct. Asked whether code meets its requirements, models often classified correct code as non-compliant. Prompts that asked for an explanation and a proposed correction raised this misjudgment rate (Jin & Chen, 2026).
Model reviewers also miss real bugs. As a judge of Java code, GPT-4 correctly classified 72% of correct implementations but judged 50% of wrong ones correct. It also flagged correct code by commenting on statements that did not appear in the function (Crupi et al., 2025). In another benchmark, coding agents asked whether an implementation was correct were right 53% of the time, barely better than a coin flip. Lenient reviewer models accepted 77% to 95% of wrong implementations, while strict ones rejected 41% to 58% of correct ones (Cuadron & Gupta, 2026).
A critic model trained to find bugs catches more of them but invents more as well. CriticGPT, trained with human feedback, caught more bugs than paid human code reviewers. It also hallucinated bugs and nitpicked far more often than they did, even after training to reduce it. People working with the critic caught about as many bugs as the critic alone while hallucinating less (McAleese et al., 2024).
Running the reviewer’s own proposed fix is one way to catch its false alarms. When a reviewer said code failed and offered a fix, a filter ran that fix against the benchmark’s tests and extra generated tests. This lowered the false-negative rate of review by the model alone in nearly every setting, while the false-positive rate rose slightly in several (Jin & Chen, 2026).
An agent checking its own work Weak evidence: few or small studies support this
In self-repair, a model reads feedback on code it wrote and tries to fix it. Its gains in code generation are often modest once the cost of the repair attempts is counted, and they vary between tasks and are sometimes absent (Olausson et al., 2023).
The quality of the feedback limits self-repair. When a stronger model wrote the feedback, gains were substantially larger. In a small study where people wrote the feedback for GPT-4, self-repair still lagged far behind what human-level debugging achieves (Olausson et al., 2023). Among feedback types, test results were the strongest in a replication in Python, but in a small Java extension they did no better than simple feedback (Lalonde et al., 2026).
Models also correct an error less often when it is presented as their own. Across 14 open-source models without extended reasoning, models fixed errors attributed to the user but missed identical errors attributed to themselves, a “blind spot” of 64.5%. Appending the word “Wait” cut this blind spot by 89.3% (Tsui, 2025).
Models also approve their own mistakes when asked to check them. In code modernization by 11 models, the model that produced an unintended change in behaviour endorsed it as behaviour-preserving in 31.7% of cases (83 of 262) (Reddy et al., 2026). How often each model missed its own changes split sharply into two groups. Several models stated the very Python 2/3 difference that broke their output, then declared its behaviour preserved (Reddy et al., 2026). Designs that give the check to a second agent, which reports problems or also fixes them, are covered in Verifier and fixer agents.
The authoring context and a fresh context Weak evidence: few or small studies support this
Studies disagree on whether a model reviews its own work worse in the context where it wrote it; Reviewing work covers the general dispute. In code, the clearest evidence is a bias toward actions in the model’s own turn, while a fresh review session helped less than first reported (Khullar et al., 2026; Song, 2026a).
Self-attribution bias Weak evidence: few or small studies support this
A model acting as a monitor (checking an agent’s actions) rates an action as more correct or less risky when the action sits in its own turn of the conversation. Presented as coming from the user, the same action gets a harsher rating (Khullar et al., 2026). The authors call this self-attribution bias. It is related to the wider tendency of model judges to rate their own outputs above others’ (Panickssery et al., 2024), covered in LLM-as-a-judge.
The effect was strongest in coding. Scores are given as AUROC, the chance that a passing patch is rated above a failing one: 1 is perfect separation and 0.5 is chance. SWE-bench patches are fixes for real software issues. On them, correctness ratings scored 0.99 in the baseline but 0.89 when the patch sat in the model’s own turn and 0.92 in its previous turn. Tests on fixed examples written by another source stayed at 0.99, so they would miss the bias (Khullar et al., 2026).
What triggers the bias is where the action sits, not being told who wrote it. Stating that the action came from the same model did not by itself cause the bias (Khullar et al., 2026). The bias persisted in reasoning models and across reasoning budgets, and was weaker and less consistent on question-answer tasks with fixed examples (Khullar et al., 2026).
The authors limit their own result. They found the effect in every model studied, though not in every combination of model and setting. They call it easy to avoid by presenting the action in a new context. Their datasets and prompts are simple, and they did not study long agent sessions (Khullar et al., 2026).
Fresh-session review Weak evidence: few or small studies support this
A review in a new session, without the conversation that produced the work, first looked clearly better than reviewing in the same session, but the advantage narrowed on revision. In the first version of the Cross-Context Review study, a fresh-session review scored F1 28.6% against 21.7% for a second review in the same session. A second review helped only in a fresh session (Song, 2026a).
In the revised version, the fresh-session review was not significantly ahead of two others. These were a single same-session review (27.1%) and a review by a subagent that shared the context (23.8%). The first version’s advantages over these two came from one run (Song, 2026a).
Same model, different model, or several Contested: studies disagree on this
Studies disagree on whether a different model reviews better than the author model, a dispute covered in Reviewing work. In code, the answer seems to depend on which models are paired.
The direction of the pairing mattered in one study where reviewers could not run tests. Claude reviewing Codex drafts raised the pass rate from 71.6% to 89.7%, while Codex reviewing Claude drafts lowered it from 91.4% to 82.8%. Codex reviewing its own drafts also helped (84.5%), and Claude reviewing its own left 91.4% unchanged (Xiang et al., 2026a).
A different model finds partly different errors, though not clearly more of them. In a test with 150 planted errors, a top-tier reviewer from another model did not differ significantly in F1 from the same model reviewing in a fresh session. That result does not show the two are equal, and a lightweight reviewer from another model scored no higher (Song, 2026c).
The two reviewers overlapped little: of the errors either one found, 41.2% were found by both (the Jaccard index). One same-model and one cross-model review together found 56.7% of planted errors, against 42.7% for two same-model reviews. They did not find significantly more than two reviews by the top-tier other model, so the study cannot tell model difference apart from reviewer strength (Song, 2026c).
Combining reviewers from different providers raises the share of defects found. In a case study from a single team, 56.5% of confirmed defects were found by only one model, and adding a second model from another provider raised coverage from 33.6% to 57.1%, with smaller gains after (Stone, 2026).
Different models also share many errors, which limits what a second model adds. When two models both answered a question wrongly on one leaderboard, they gave the same wrong answer about 60% of the time. Larger, more accurate models had highly correlated errors even across providers (Kim et al., 2025b). In code modernization, models failed on the same hard snippets. Their agreement on which snippets were hard had a mean correlation of r = 0.52, where 0 means no relation and 1 means a perfect match (Reddy et al., 2026).
Separate reviewers can still share a mistake that only running the code reveals. In a security defect-discovery campaign, ten dedicated reviewers all endorsed a vulnerability in OpenSSL that did not exist; a single empirical test disproved it (Agarwal, 2026).
Further reading
- Kumar et al. (2026) compares five model reviewers on synthetic bugs and real bug-fix pull requests, and shows how much planted-error scores overstate review ability.
- Olewicki et al. (2024) measures how often reviewers at Mozilla and Ubisoft accepted generated review comments in live use.
- Olausson et al. (2023) tests self-repair in code generation once cost is counted, and how feedback quality limits it.
- Khullar et al. (2026) defines self-attribution bias and measures it on SWE-bench patches, with the authors’ own limits.
- Song (2026a) compares fresh-session and same-session review, with a revised version that narrows the first result.
- Zhong et al. (2026b) mines review conversations in 300 open-source projects to compare how often AI and human suggestions are adopted, and why AI suggestions are not.
First published ; last updated .
Known gaps
What this article cannot tell you yet.
- No study compared self-review that can run tests or code with review by a separate agent on real agent-written patches.
- The drop in a model’s accuracy when it judges its own code in its own turn was not tested in long, many-turn agent sessions, and whether moving the code to a fresh turn restores accuracy rests on one study.
- The comparison of fresh-session and same-session review was not repeated by other authors or on real agent patches.
- AI and human reviewers were compared at finding defects only in benchmark settings, not in live review of the same changes.
- No study had one agent review another agent’s patch and report the regressions it caught or missed.
- The false alarms of a reviewer that only reads code and of one that must confirm its findings by running tests were not compared on the same code.
- Most studies in this article are preprints that have not been peer reviewed, including the fresh-context review papers.
References
- Solid source
- Rated highly trustworthy by the research, and every passage taken from it was found in it.
- Weak source
- Rated low, or a passage taken from it was not found in it.
- Medium trust
- Rated medium by the research.
- Not checked
- Rated high, but its passages could not all be checked against it.
Show all 23 references
- Agarwal, A. (2026). Refute-or-Promote: An adversarial stage-gated multi-agent review methodology for high-precision LLM-assisted defect discovery. arXiv preprint 2604.19049. https://arxiv.org/abs/2604.19049 Medium trust Preprint, abstract only.
- Crupi, G., Tufano, R., Velasco, A., Mastropaolo, A., Poshyvanyk, D., & Bavota, G. (2025). On the effectiveness of LLM-as-a-judge for code generation and summarization. IEEE Transactions on Software Engineering (arXiv:2507.16587). https://arxiv.org/abs/2507.16587 Medium trust Preprint, read in large part.
- Cuadron, A., & Gupta, A. (2026). Built on broken assumptions (BOBA): Why coding agents cannot be left alone. arXiv:2611.02207. https://arxiv.org/abs/2611.02207 Medium trust Preprint, read in large part.
- Jin, H., & Chen, H. (2026). Are LLMs reliable code reviewers? Systematic overcorrection in requirement conformance judgement. Automated Software Engineering, Springer Nature. https://link.springer.com/article/10.1007/s10515-026-00638-5 Medium trust Preprint, read in large part.
- Khullar, D., Hopkins, J., Wang, R., & Roger, F. (2026). Self-attribution bias: When AI monitors go easy on themselves. arXiv preprint 2603.04582. https://arxiv.org/abs/2603.04582 Medium trust Preprint, read in full.
- Kim, E., Garg, A., Peng, K., & Garg, N. (2025b). Correlated errors in large language models. arXiv preprint 2506.07962. https://arxiv.org/abs/2506.07962 Medium trust Peer-reviewed, abstract only.
- Kumar, S. P., Bararia, S., & Raj, K. (2026). Bigger isn't always better: A comparative evaluation of LLMs for automated code review. arXiv preprint 2606.15689. https://arxiv.org/abs/2606.15689 Solid source Preprint, abstract only.
- Lalonde, L., Keddache, W., Perron Touchette, T., Da Silva, L., & Khomh, F. (2026). Revisiting feedback-driven LLM code repair: A replication and exploratory Java extension. arXiv preprint 2609.00362. https://arxiv.org/abs/2609.00362 Solid source Preprint, abstract only.
- Lin, H. Y., Liang, M., Tantithamthavorn, K., & Thongtanunam, P. (2026d). Is agentic code review helpful? Mining developers' feedback to CodeRabbit reviews in the wild. arXiv preprint 2607.03316. https://arxiv.org/abs/2607.03316 Medium trust Preprint, read in large part.
- McAleese, N., Pokorny, R. M., Ceron Uribe, J. F., Nitishinskaya, E., Trebacz, M., & Leike, J. (2024). LLM critics help catch LLM bugs. arXiv preprint 2407.00215, OpenAI. https://arxiv.org/abs/2407.00215 Medium trust Preprint, read in large part.
- Olausson, T. X., Inala, J. P., Wang, C., Gao, J., & Solar-Lezama, A. (2023). Is self-repair a silver bullet for code generation? arXiv:2306.09896. https://arxiv.org/abs/2306.09896 Medium trust Preprint, read in large part.
- Olewicki, D., Da Silva, L., Mujahid, S., Amini, A., Mah, B., Castelluccio, M., et al. (2024). Impact of LLM-based review comment generation in practice: A mixed open-/closed-source user study. arXiv preprint 2411.07091. https://arxiv.org/abs/2411.07091 Medium trust Preprint, abstract only.
- Panickssery, A., Bowman, S. R., & Feng, S. (2024). LLM evaluators recognize and favor their own generations. arXiv:2404.13076. https://arxiv.org/abs/2404.13076 Medium trust Preprint, read in full.
- Pereira, K., Sinha, N., Ghosh, R., & Dutta, D. (2026). CR-Bench-v2: Evaluating the real-world utility of AI code review agents. arXiv preprint 2611.02566. https://arxiv.org/abs/2611.02566 Medium trust Preprint, read in large part.
- Reddy, G. C. P., Lolla, A., & Sanku, H. (2026). Articulate but wrong: Self-review failures in LLM-based code modernization. arXiv preprint 2605.21537. https://arxiv.org/abs/2605.21537 Medium trust Preprint, read in large part.
- Song, T. (2026a). Cross-Context Review: Improving LLM output quality by separating production and review sessions. arXiv preprint 2603.12123. https://arxiv.org/abs/2603.12123 Medium trust Preprint, read in large part.
- Song, T. (2026c). When does a second model help? Cross-model review in LLM verification. arXiv preprint 2610.01471. https://arxiv.org/abs/2610.01471 Medium trust Preprint, read in large part.
- Stone, T. (2026). A single LLM is an incomplete code reviewer: Evidence that independent review by multiple LLM families recovers code defects any one model misses. Zenodo preprint. https://zenodo.org/records/20519585 Medium trust Preprint, abstract only.
- Sun, K., Kuang, H., Baltes, S., Zhou, X., Zhang, H., & Ma, X. (2025a). Does AI code review lead to code changes? A case study of GitHub Actions. arXiv preprint 2508.18771. https://arxiv.org/abs/2508.18771 Solid source Preprint, abstract only.
- Tsui, K. (2025). Self-Correction Bench: Uncovering and addressing the self-correction blind spot in large language models. arXiv preprint 2507.02778. https://arxiv.org/abs/2507.02778 Medium trust Preprint, abstract only.
- Xiang, Z., Zhang, Y., Zhang, Y., & Xu, H. (2026a). Cross-model LLM code review: Should you use Claude to review Codex or vice versa? arXiv preprint 2607.21656. https://arxiv.org/abs/2607.21656 Solid source Preprint, abstract only.
- Yang, C., He, H., Cheng, T., Butler, J., Murphy-Hill, E., Badea, C., et al. (2026a). (When) should a software factory be lights-off? Benchmarking code review agents on bug detection. arXiv. https://arxiv.org/abs/2610.13668 Medium trust Preprint, read in large part.
- Zhong, S., Noei, S., Zou, Y., & Adams, B. (2026b). Human-AI synergy in agentic code review. arXiv preprint 2603.15911. https://arxiv.org/abs/2603.15911 Medium trust Preprint, read in large part.