arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.04254cs.SE
收藏

CompileAgent:基于工具集成LLM智能体系统的自动化真实世界仓库级编译

CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent System

Li Hu, Guoqiang Chen, Xiuwei Shang, Shaoyin Cheng, Benlong Wu, Gangyang Li, Xu Zhu, Weiming Zhang, Nenghai Yu

AI总结:

本文提出首个面向仓库级编译的LLM智能体框架CompileAgent,集成五个工具和基于流程的策略,在CompileAgentBench基准上将编译成功率提升至71%,并验证了策略有效性与可扩展性。

摘要:

随着开源项目规模和复杂性的增长,手动编译变得繁琐且容易出错,这凸显了对自动化以提高效率和准确性的需求。然而,编译指令搜索和错误解决的复杂性使得自动编译具有挑战性。受基于LLM的智能体在各个领域取得成功的启发,我们提出了CompileAgent,这是第一个专门用于仓库级编译的基于LLM的智能体框架。CompileAgent集成了五个工具和一种基于流程的智能体策略,能够与软件工件进行交互,以进行编译指令搜索和错误解决。为了衡量我们方法的有效性,我们设计了一个公开的仓库级基准CompileAgentBench,并且我们还通过结合两种编译友好方案设计了两个基线用于比较。在该基准上的性能表明,我们的方法显著提高了编译成功率,范围从10%到71%。同时,我们评估了CompileAgent在不同智能体策略下的性能,并验证了基于流程策略的有效性。此外,我们强调了CompileAgent的可扩展性,进一步拓展了其应用前景。

英文摘要:

With open-source projects growing in size and complexity, manual compilation becomes tedious and error-prone, highlighting the need for automation to improve efficiency and accuracy. However, the complexity of compilation instruction search and error resolution makes automatic compilation challenging. Inspired by the success of LLM-based agents in various fields, we propose CompileAgent, the first LLM-based agent framework dedicated to repo-level compilation. CompileAgent integrates five tools and a flow-based agent strategy, enabling interaction with software artifacts for compilation instruction search and error resolution. To measure the effectiveness of our method, we design a public repo-level benchmark CompileAgentBench, and we also design two baselines for comparison by combining two compilation-friendly schemes. The performance on this benchmark shows that our method significantly improves the compilation success rate, ranging from 10% to 71%. Meanwhile, we evaluate the performance of CompileAgent under different agent strategies and verify the effectiveness of the flow-based strategy. Additionally, we emphasize the scalability of CompileAgent, further expanding its application prospects.

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

↑