arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17548cs.SEcs.AI
收藏

重新思考AI时代的代码审查:面向代理代码审查的愿景

Rethinking Code Review in the Age of AI: A Vision for Agentic Code Review

Microsoft(微软);Ankara University(安卡拉大学);Bilkent University(比尔肯特大学)

Hüseyin Özgür Kamalı, Erdem Tuna, Vahid Haratian, Eray Tüzün

AI总结:

本文探讨了在AI时代代码审查的演变,提出了一种结合专门代理和人类控制的质量闸门的AI驱动代码审查流程,旨在提升代码审查的效率和可靠性。

摘要:

代码审查已经经历了数十年的发展,从非正式的同行检查发展到今天的拉取请求(PR)工作流程,但仍然主要是一种手动、不均匀且认知负担重的过程。人工智能(AI)编程助手的兴起加剧了这一挑战:虽然这些工具提高了代码生成的速度,但同时也增加了需要审查的代码量,使代码审查成为增长的瓶颈。当前的AI支持仍然碎片化,工具主要专注于孤立任务,如审阅者推荐、PR描述生成或评论建议,而非整个PR审查流程。本文回顾了代码审查实践的历史演变,并考察了由大语言模型(LLMs)和代理AI系统驱动的转变。随后,我们提出了一种AI驱动的代码审查流程愿景,结合专门的代理和人类控制的质量闸门。我们的框架涵盖五个阶段:PR创建、PR增强、审阅者选择、AI辅助代码审查和PR回顾,其中在关键决策点保留人类以保持判断、责任和团队层面的理解。我们识别了负责任采用的主要开放挑战,包括可靠性、偏见、隐私、自动化偏见、透明度和评估,并提出了更有效的软件工程中人类-AI协作的研究议程。

英文摘要:

Code review has evolved for decades, from informal peer checking to today's pull request (PR) workflows, yet it remains a largely manual and cognitively demanding process. The rise of Artificial Intelligence (AI) coding assistants has intensified this challenge: while these tools increase code production velocity, they also expand the volume of code requiring review, turning code review into a growing bottleneck. Current AI support in code review remains fragmented, with tools focusing on isolated tasks such as reviewer recommendation, PR description generation, or comment suggestion rather than the end-to-end PR review workflow. We address this gap by treating review effectiveness as an outcome of the full code review lifecycle rather than a single stage, proposing a framework that carries context across stage boundaries. We propose a future vision for code review in which reviewers transition from manual inspectors into supervisory operators of agents. In this vision, staged, AI-powered workflows aim to align the pace of code generation with shared understanding and accountable engineering. In this paper, we review the historical evolution of code review practices, identify challenges in traditional code review systems, and examine the shift driven by large language models (LLMs) and agentic AI systems. We then present a vision for an AI-powered code review workflow combining specialized agents with human-controlled quality gates. Our framework spans five stages: PR Creation, PR Augmentation, Reviewer Selection, AI-Assisted Code Review, and PR Retrospective, with humans retained at key decision points to preserve judgment, accountability, and team-level understanding. Finally, we identify key adoption challenges and outline research directions for evaluation, governance, and responsible human-AI collaboration.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑