跳到主要导航 跳到搜索 跳到主要内容

MAF-CPR: LLM-Based Multi-agent Framework for Complex Pull Request Review in GitHub

  • Fanyu Han
  • , Jiaheng Peng
  • , Wei Wang*
  • , Xiaoya Xia
  • *此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Pull request (PR) is essential for collaboration in open-source development, as it facilitates the review and integration of code changes efficiently, ensuring quality and coordination among contributors through the processes of PR review. Large language models (LLMs) have proven effective in supporting code reviewers, they still encounter significant challenges when processing complex PR. A single model has difficulty capturing key information when addressing complex PRs that encompass extensive descriptions, substantial code changes, and associated issues. To address these challenges, we propose MAF-CPR, a novel LLM-based multi-agent framework for automated review of complex pull requests on GitHub. Inspired by the real-world PR handling process, the framework consists of four specialized agents: the Repository Manager, PR Analyzer, Issue Tracker, and Code Reviewer. To enhance coordination and context-awareness, we further introduce a dynamic prompt refinement mechanism that adapts each agent’s prompt based on the evolving context within the multi-agent workflow. Experiments have demonstrated that the proposed multi-agent framework outperforms LLMs like GPT-3.5, GPT-4, and Claude-3-Sonnet in four tasks. Further analysis shows that our proposed agents and collaboration process benefit the model's understanding of PR and code change.

源语言英语
主期刊名Advanced Intelligent Computing Technology and Applications - 21st International Conference, ICIC 2025, Proceedings
编辑De-Shuang Huang, Qinhu Zhang, Chuanlei Zhang, Wei Chen
出版商Springer Science and Business Media Deutschland GmbH
247-257
页数11
ISBN(印刷版)9789819500192
DOI
出版状态已出版 - 2025
活动21st International Conference on Intelligent Computing, ICIC 2025 - Ningbo, 中国
期限: 26 7月 202529 7月 2025

出版系列

姓名Lecture Notes in Computer Science
15865 LNAI
ISSN(印刷版)0302-9743
ISSN(电子版)1611-3349

会议

会议21st International Conference on Intelligent Computing, ICIC 2025
国家/地区中国
Ningbo
时期26/07/2529/07/25

指纹

探究 'MAF-CPR: LLM-Based Multi-agent Framework for Complex Pull Request Review in GitHub' 的科研主题。它们共同构成独一无二的指纹。

引用此