arXiv(opens in a new tab)cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.13668

(When) Should a Software Factory be Lights-off? Benchmarking Code Review Agents on Bug Detection

Chenyang Yang, Hao He, Ti-Chung Cheng, Jenna Butler, Emerson Murphy-Hill, Carmen Badea, Christian Bird

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

CHENYANG YANG ∗^{*}, Carnegie Mellon University, USA

HAO HE and TI-CHUNG CHENG, Microsoft, USA

JENNA BUTLER and EMERSON MURPHY-HILL, Microsoft, USA

CARMEN BADEA and CHRISTIAN BIRD, Microsoft Research, USA

With the advances of coding agents, software developers are spending more time reviewing code than writing code. As human review velocity falls behind agentic code generation, it is tempting to build automated review agents towards a future of “lights-off” software factory with little to no human supervision. To assess the practicality of such a fully autonomous software factory, we construct CRBUGBENCH, a new benchmark that evaluates whether review agents detect human-verified bugs. We build a data pipeline that mines bugs from repository history, and pair each bug with its introducing PR to form a review task. CRBUGBENCH consists of 1,000 review tasks across 98 open-source GitHub repositories, and 800 additional tasks from proprietary industry repositories at one large company.

We then use the benchmark to study agent review quality: We found that SOTA review agents do well: the best (claude-opus-5 with copilot-cli) catches 71.9% of bugs within its top-5 comments, up from 47.7% (opus-4.6) in five months of model evolution. Yet agents remain less effective on complex changes and bugs requiring non-local reasoning, with sharp performance drops on proprietary industry repositories where project context is more often needed. To improve bug detection, we found scaling compute helps most through prompt changes: exploration-nudging prompts gain up to 5.8% performance at 10% higher cost. From these findings, we derive concrete guidance for developers to adopt review agents – scaling review effort to PR complexity, steering agents by project priorities, supplying repository knowledge, dispatching models by PR characteristics, and monitoring quality as models evolve.

1 Introduction

Software engineering is increasingly automated. From code completion [11], chat assistants [23], to coding agents [3], the task of writing code has been shifted from human developers to AI. Developers are now increasingly doing more verification work, commonly through code review [1]. Yet the velocity of human reviews cannot catch up with agent-generated code. It is tempting to further automate humans away, by using AI for code reviews [4]. The extreme version of this would be a so-called “lights-off” software factory [36], where AI both writes and reviews code, with little to no human supervision in the loop.

Are current repositories ready to become lights-off repositories? To answer that question, we first need to understand how well AI can review code. Without good review capability, the engineering loop cannot be fully closed. While many code review benchmarks exist (e.g., CodeReviewer [22], SWR-Bench [49], c-CRAB [51]), they typically treat human comments as ground truth and expect AI-generated reviews to match them, lexically or semantically. Human comments, without filtering, are a poor proxy of review ground truth. They can be arbitrary, containing nitpicking or less useful comments that are accepted due to social dynamics [13, 35]. They can also be too narrow, missing valid points that AI reviews can bring up. Therefore, assessing review quality based on the ground truth of human reviews is misleading: AI may provide high-quality review, just differently than human reviewers [41]. It would be hard to cleanly interpret the outcomes from these benchmarks.

∗^{*}Work done at Microsoft Research.

Authors' Contact Information: Chenyang Yang, Carnegie Mellon University, USA; Hao He; Ti-Chung Cheng, Microsoft, USA; Jenna Butler; Emerson Murphy-Hill, Microsoft, USA; Carmen Badea; Christian Bird, Microsoft Research, USA.

Yang et al.

References (58)