TY - GEN
T1 - MAF-CPR
T2 - 21st International Conference on Intelligent Computing, ICIC 2025
AU - Han, Fanyu
AU - Peng, Jiaheng
AU - Wang, Wei
AU - Xia, Xiaoya
N1 - Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2025.
PY - 2025
Y1 - 2025
N2 - 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.
AB - 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.
KW - GitHub
KW - Large language model
KW - Multi-agent
KW - Pull request
UR - https://www.scopus.com/pages/publications/105012424919
U2 - 10.1007/978-981-95-0020-8_21
DO - 10.1007/978-981-95-0020-8_21
M3 - 会议稿件
AN - SCOPUS:105012424919
SN - 9789819500192
T3 - Lecture Notes in Computer Science
SP - 247
EP - 257
BT - Advanced Intelligent Computing Technology and Applications - 21st International Conference, ICIC 2025, Proceedings
A2 - Huang, De-Shuang
A2 - Zhang, Qinhu
A2 - Zhang, Chuanlei
A2 - Chen, Wei
PB - Springer Science and Business Media Deutschland GmbH
Y2 - 26 July 2025 through 29 July 2025
ER -