Human-AI Synergy in Agentic Code Review

Paper · arXiv 2603.15911 · Published March 16, 2026
Agent Harness

Abstract—Code review is a critical software engineering practice where developers review code changes before integration to ensure code quality, detect defects, and improve maintainability. In recent years, AI agents that can understand code context, plan review actions, and interact with development environments have been increasingly integrated into the code review process. However, limited empirical evidence compares the feedback characteristics, interaction patterns, and suggestion outcomes of AI agents and human reviewers. To address this gap, we conduct a large-scale empirical analysis of 278,790 code review conversations across 300 open-source GitHub projects. In our study, we aim to compare the feedback differences provided by human reviewers and AI agents. We investigate how human- AI interaction patterns are associated with subsequent code changes. Moreover, we analyze the adoption of code suggestions provided by human reviewers and AI agents into the codebase and how adopted suggestions change code metrics. We find that over 95% of AI agent comments focus on Code Improvement or Defect Detection, whereas human reviewers provide a broader range of feedback, including Understanding, Testing, and Knowledge Transfer. Human reviewers exchange 11.8% more rounds when reviewing AI-generated code than humanwritten code. Moreover, code suggestions made by AI agents are adopted into the codebase at a significantly lower rate than suggestions proposed by human reviewers (16.6% vs. 56.5%). When adopted, suggestions provided by AI agents are associated with significantly larger increases in code complexity and code size than suggestions provided by human reviewers. Our findings suggest that while AI agents can scale defect screening, human oversight remains critical for ensuring suggestion quality and providing contextual feedback that AI agents lack.

Introduction. With the widespread adoption of generative AI, developers increasingly use AI-powered tools to generate code, expanding codebases at unprecedented scale. GitHub reports nearly 1 billion commits in 2025 with a 178% surge in generative AI projects [1], while Google and Microsoft report that AIgenerated code now comprises approximately 30% of new code at their companies [2], [3]. However, the quality of AI-generated code remains uncertain and requires validation before integration. Code review, where reviewers examine code changes, provide feedback, and discuss with authors and other reviewers before approving integration, serves as a critical quality checker to ensure quality, detect defects, and improve maintainability. With the increased usage of AI coding assistants in recent years, code production has accelerated beyond the capacity of reviewers; therefore, software teams face increasing pressure to maintain quality standards [4]. To address the growing gap between code volume and human review capacity, AI agents have been increasingly integrated into the code review process [5], [6]. AI agents can understand code context, reason about code logic, and interact with development environments to provide feedback and propose code modifications. Prior work has conducted extensive studies on the capabilities of AI agents, such as defect detection [7] and generating comments on code changes [8]. However, prior work lacks understanding of whether feedback from AI agents performs similarly to or differs from feedback by human reviewers, if there exist human-AI collaboration patterns associated with subsequent code changes, and how code metrics change following adoption of AI-agent suggestions. In this study, we conduct a large-scale empirical analysis of 278,790 code review conversations from 300 open-source GitHub projects, involving human reviewers and AI agents. Figure 1 illustrates an inline code review conversation, where a reviewer provides feedback on a code hunk (a block of changed code lines) with a natural language explanation and a proposed code modification. We focus on inline code review conversations because inline comments are attached to a specific block of changed code, called a code hunk, so reviewers provide their feedback at the exact code changes they are discussing. To this end, we compare the feedback characteristics provided by AI agents and human reviewers, examine human-AI collaboration patterns by analyzing review conversations, and understand the code quality of code modifications proposed by human reviewers and AI agents. Our findings provide actionable guidelines for practitioners to assign review tasks based on the strengths of AI agents and human reviewers, streamline review processes to maximize the benefits of human-AI collaboration, and understand where code modifications by AI agents are most effective. We aim to answer the following research questions: RQ1. What are the similarities and differences between the review comments by AI agents and human reviewers?

To help practitioners leverage the respective strengths of AI agents and human reviewers in the assignment of review tasks, we compare review feedback by AI agents and human reviewers. We find that over 95% of AI agent comments focus on Code Improvement and Defect Detection, while human reviewers provide additional feedback types, such as Understanding and Knowledge Transfer. In addition, human reviewers write significantly more readable comments, while AI agent reviewers more frequently combine an evaluation of a code weakness with a proposed fix in the same comment. RQ2. How do interaction patterns differ between human and AI agent code reviews? We analyze the interaction sequences within the review conversations to examine how the human-AI interactions relate to whether the reviewed code is subsequently modified. Our analysis shows that human reviewers exchange 11.8% more rounds when reviewing AIgenerated code than human-written code, while 85–87% of AI agent-initiated reviews end after the first comment without follow-up discussions. Review conversations in which human reviews human-written code are more frequently followed by related code changes than conversations involving AI agents. RQ3. How does code quality change after suggestions from human reviewers and AI agents are adopted? To guide practitioners on when to adopt AI agent suggestions, we compare how frequently suggestions from AI agents and human reviewers are adopted and examine the changes in selected code metrics following their adoption. Our findings illustrate that although AI agents generate more code suggestions, suggestions from human reviewers have a significantly higher adoption rate than suggestions from AI agents (56.5% vs. 16.6%). When adopted, suggestions from AI agents are associated with significantly larger increases in code complexity and code size than suggestions from human reviewers. Our work makes the following main contributions:

Related work. VI. RELATED WORK In this section, we review the literature related to code review by human reviewers and AI-based code review. Human code review. Code review is a fundamental practice in software development where developers examine code changes before merging. Prior studies [16], [50], [51] have extensively investigated reviewer expectations, feedback quality, and review outcomes. Bosu et al. [50] survey code review practices across opensource and industrial settings, finding that reviewer experience and prior engagement with the codebase increase the likelihood of providing useful feedback. Bouraffa et al. [46] study how developers use code suggestions in pull request reviews, finding that the use of code suggestions positively affects the merge rate of pull requests. Goldman et al. [47] analyze which types of human-written review comments developers most frequently resolve. AI-Based Code Review. With the emergence of generative AI, recent studies have investigated the roles of AI agents as both pull request authors and code reviewers. For AI-generated PR descriptions, Xiao et al. [52] examine their adoption and related developer interventions, while Gong et al. [53] assess the consistency between PR descriptions and their underlying code changes. Gonzalez and El Mezouar [54] and Abujadallah et al. [55] investigate why agent-authored PRs are rejected and quantify the associated code churn and review effort. Nachuma and Zibran [56] examine the integration of agentauthored PRs and find that reviewer engagement is associated with successful integration. For AI agents acting as code reviewers, Sun et al. [25] and Olewicki et al. [36] evaluate the adoption, effectiveness, and acceptance of AI-generated review comments. Zhong et al. [57] provide a longitudinal perspective by examining how AI reviewer adoption patterns evolve at both the project and pull request levels. In this study, we shift the focus from isolated AI-generated artifacts to the multi-turn collaborative dialogue between humans and agents. We characterize the behavioral differences across four reviewer pairings (HRH, HRA, ARH, ARA) and model the negotiation process using interaction sequences to capture multi-turn dynamics. Finally, we connect these interaction patterns to review outcomes by examining suggestion adoption and changes in code metrics associated with adopted suggestions from human and AI-agent reviewers.

Method. An overview of our approach is shown in Figure 2. First, we systematically select 300 GitHub projects and mine review conversations from closed pull requests. Then, we classify the review categories according to the identity of the authors and reviewers, such as human or AI agent. We then compare review comments by measuring comment-quality attributes and different types of feedback to answer RQ1. For RQ2, we measure the review effort, interaction sequences, and state transitions to examine human-AI collaboration patterns. Finally, we analyze changes in code quality before and after adopted suggestions are applied. within a conversation, we record reviewer identity, content, and timestamp. Classifying Review Categories. We classify inline code review conversations into four review categories based on the identity of the PR author and the first reviewer who comments on each code change. For each conversation, we extract the PR author from the PR metadata and the first commenter from the conversation. Using the AI agent identification approach (described in Section II-B), we determine whether each account is a human or an AI agent. The PR author identity determines whether the code is human-written or agent-generated. The first commenter’s identity determines whether a human or an AI agent initiated the review. For example, the PR author copilot[bot] and the first commenter copilot[bot] are both AI agents, classifying the conversation as AI agent reviews agent-generated code. This classification yields four review categories:

• Human reviews human-written code (HRH) • Human reviews agent-generated code (HRA) • AI agent reviews human-written code (ARH) • AI agent reviews agent-generated code (ARA) Table I summarizes the distribution across the four review categories. Human reviews (i.e., HRH and HRA) account for 44.3% of conversations, including 41.9% HRH and 2.3% HRA. AI-agent reviews (i.e., ARH and ARA) account for 55.7% of conversations, including 55.4% ARH and 0.3% ARA.

To understand whether AI agents and human reviewers focus on similar or different aspects of code review, we adopt the taxonomy of Bacchelli and Bird [16], who identify Feedback Type Description Code Improvement Suggestions to enhance code clarity, style, structure, or maintainability without fixing defects.

Defect Detection Identification of functional, logical, or correctness issues in the proposed changes.

External Impact Comments about broader system-level consequences beyond the local code diff.

Knowledge Transfer Reviewer explains concepts, conventions, best practices, or provides learning resources.

Misc Comments that do not fit any defined category or are context-irrelevant.

No Feedback Conversations where the reviewer provides no substantive technical feedback.

Social Interpersonal statements not directly tied to technical content (e.g., appreciation, encouragement).

Testing Comments about adding, updating, or fixing tests and test coverage.

Understanding Clarification questions to understand context, rationale, design decisions, or implementation intent. nine feedback categories that capture the actual results of code review, including Code Improvement, Defect Detection, External Impact, Knowledge Transfer, Misc, No Feedback, Social, Testing, and Understanding. The detailed description of each feedback type is specified in Table II. Due to the large scale of our dataset with 278,790 conversations, manually labeling them into one of nine feedback types is infeasible. Therefore, we adopt an LLM-based annotation approach to classify review comments into feedback types, following Ahmed et al. [17], who demonstrate that large language models such as Claude-3.5-Sonnet [18] and GPT- 4 [19] achieve human-level accuracy in software engineering classification tasks. Figure 3 shows the prompt that instructs the model to classify each review comment into one type of feedback. In addition to the feedback-type label, GPT- 4.1-mini returns a confidence score ranging from 1 to 10 for each classification. Overall, 96.4% of the 278,790 review conversations receive confidence scores of 8 or higher.

Discussion. IV. IMPLICATION In this section, we discuss the implications of our study for the practitioners and tool makers. Bridging the socio-technical gap between AI agents and human reviewers in code review. Our results show that human-reviewer feedback focuses more frequently on understanding and clarifying developer intent, while these feedback types appear less frequently in AI-agent reviews. Conversations in which humans review human-written code show a higher rate of related code changes than conversations involving AI agents. These findings suggest that mechanisms for requesting clarification and retrieving project-specific context may help AI agents address intent-related feedback. We therefore encourage researchers to develop methods that enable AI agents to infer and articulate developer intent, supporting effective human-agent collaboration. Investigating project-specific context in AI-agent suggestions. AI-agent reviewers generate more code suggestions than human reviewers but have lower adoption rates. Among the sampled unadopted AI-agent suggestions, 28.7% are incorrect and 24.0% receive developer-chosen alternative fixes. These non-adoption patterns may reflect differences in suggestion relevance, presentation format, access to project-specific information, or developer preferences. Future studies could evaluate whether providing build configurations, prior review decisions, and other project-specific information changes the suggestion accuracy and adoption rates. Improving readability and clarity of AI-agent feedback. Our results show that human-reviewer comments have significantly higher reading-ease scores than AI-agent comments. AIagent comments also more frequently combine an evaluation of a code weakness with a proposed fix in the same comment. Tool builders can consider evaluating AI-agent feedback not only for technical coverage but also for readability and clarity. Supporting agent responsiveness across multi-turn review interactions. Our results show that conversations in which humans review AI-generated code contain the most comments on average. However, conversations in which humans review human-written code show a higher rate of related code changes than conversations involving AI agents. This pattern may reflect challenges in how AI agents maintain context and incorporate reviewer feedback across multiple exchanges. We encourage tool builders to investigate whether stronger context tracking and self-verification can support AI-agent responses to reviewer concerns across multiple exchanges.

Conclusion. VII. CONCLUSION In this study, we analyze 278,790 code review conversations across 300 open-source GitHub projects to understand how AI agents and human reviewers differ in feedback characteristics, interaction patterns, and suggestion quality. We find that AIagent comments focus primarily on Code Improvement and Defect Detection and have lower reading-ease scores, while human reviewers provide broader feedback. Conversations in which humans review human-written code show a higher rate of related code changes than conversations involving AI agents. Human-reviewer suggestions have higher adoption rates, while adopted AI-agent suggestions show larger mean increases in selected complexity and code-size metrics. For future work, we aim to improve AI agent context awareness, explore multi-agent mechanisms for sharing project knowledge, and reduce incorrect suggestions to bridge the quality gap between human and AI agent code review.

Limitations. V. THREATS TO VALIDITY In this section, we examine the potential threats to the validity of our study. Threats to Construct Validity. Our study focuses on AI agents whose identities are explicitly disclosed through their account names. Our comparison of human and AI-agent behavior in the review process is based on account identity. However, pull requests and review comments posted by human accounts may contain content generated or modified using AI tools. These contributions remain in the human category, including cases where authors disclose AI assistance. GitHub metadata does not capture such assistance, which limits our ability to distinguish human-written from AI-assisted content within this category. Robbes et al. [49] similarly acknowledge that AI agent activity can remain unobserved when attribution traces are disabled or developers manually commit agent contributions. This limitation may affect the estimated differences between the human and AI-agent categories. Threats to Internal Validity. The assessment of code quality uses metrics of code size, complexity, coupling, and cohesion at the source-file level. These metrics do not capture project-level architectural changes, security vulnerabilities or fault proneness.

Lines of inquiry this paper opens 24

Research framings built by reading the notes related to this paper — the questions it feeds into.

Can automated AI review achieve comparable accuracy to human peer review? Do AI coding tools meaningfully improve developer productivity and quality? How does evolutionary search at inference time compare to other test-time methods? Does AI assistance redirect workers toward higher-value tasks or amplify workload?