arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.20404cs.SEcs.AIcs.ETcs.HC
收藏

关于AGENTS.md文件对AI编码代理效率的影响

On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents

Singapore Management University(新加坡管理大学);Heidelberg University(海德堡大学);University of Bamberg(班贝格大学);King's College London(伦敦国王学院)

Jai Lal Lulla, Seyedmoein Mohsenimofidi, Matthias Galster, Jie M. Zhang, Sebastian Baltes, Christoph Treude

AI总结:

研究AGENTS.md文件对AI编码代理在GitHub拉取请求上的运行效率和令牌消耗的影响,发现其能降低运行时间及令牌消耗,同时保持任务完成行为。

摘要:

AI编码代理如Codex和Claude Code日益被用于自主贡献软件仓库。然而,关于仓库级配置 artifacts 对代理操作效率的影响了解有限。本文研究了AGENTS.md文件对AI编码代理在GitHub拉取请求上运行时间及令牌消耗的影响。我们分析了10个仓库和124个拉取请求,在有无AGENTS.md文件的两种条件下执行代理。我们测量了代理执行期间的墙钟执行时间和令牌使用情况。我们的结果表明,AGENTS.md的存在与较低的中位运行时间(Δ28.64%)和减少的输出令牌消耗(Δ16.58%)相关,同时保持了可比的任务完成行为。基于这些结果,我们讨论了AI编码代理在实践中配置和部署的即时影响,并提出了关于仓库级指令在塑造AI编码代理行为、效率和软件开发工作流集成中的作用的更广泛研究议程。

英文摘要:

AI coding agents such as Codex and Claude Code are increasingly used to autonomously contribute to software repositories. However, little is known about how repository-level configuration artifacts affect operational efficiency of the agents. In this paper, we study the impact of AGENTS$.$md files on the runtime and token consumption of AI coding agents operating on GitHub pull requests. We analyze 10 repositories and 124 pull requests, executing agents under two conditions: with and without an AGENTS$.$md file. We measure wall-clock execution time and token usage during agent execution. Our results show that the presence of AGENTS$.$md is associated with a lower median runtime ($Δ28.64$%) and reduced output token consumption ($Δ16.58$%), while maintaining a comparable task completion behavior. Based on these results, we discuss immediate implications for the configuration and deployment of AI coding agents in practice, and outline a broader research agenda on the role of repository-level instructions in shaping the behavior, efficiency, and integration of AI coding agents in software development workflows.

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

↑