arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.11988cs.SEcs.AI
收藏

评估 AGENTS.md:仓库级上下文文件对编码助手有帮助吗?

Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?

Department of Computer Science(计算机科学系);ETH Zurich(苏黎世联邦理工学院)

Thibaud Gloaguen, Niels Mündler-Sasahara, Mark Niklas Müller, Veselin Raychev, Martin Vechev

AI总结:

通过SWE-bench任务和开发者提交的上下文文件,评估发现上下文文件并未普遍提升编码助手的任务成功率,反而平均增加20%以上的推理成本。

摘要:

软件开发中的一个普遍做法是使用上下文文件(如 this http URL)来定制编码助手以适应仓库。尽管代理开发者强烈鼓励这种做法,但目前尚无严格调查此类上下文文件是否对实际任务有效。在这项工作中,我们研究了这个问题,并在两个互补的设置中评估了编码助手的任务完成性能:来自流行仓库的已建立的SWE-bench任务,使用LLM生成的上下文文件;以及来自包含开发者提交的上下文文件的仓库的新问题集合。令人惊讶的是,我们发现提供上下文文件通常不会提高任务成功率,同时平均增加超过20%的推理成本。这一观察结果适用于不同的LLM、编码助手,以及LLM生成和开发者提交的上下文文件。具体来说,我们发现虽然上下文文件中的指令被编码助手很好地遵循,但仓库概述(尽管流行且被模型提供商推荐)并没有帮助。我们得出结论,虽然上下文文件对于指定非标准编码实践很有用,但任何提高性能的尝试在部署前都应经过严格评估。

英文摘要:

A widespread practice in software development is to tailor coding agents to repositories using context files, such as AGENTS.md. Although this practice is strongly encouraged by agent developers, there is currently no rigorous investigation into whether such context files are actually effective for real-world tasks. In this work, we study this question and evaluate coding agents' task completion performance in two complementary settings: established SWE-bench tasks from popular repositories, with LLM-generated context files, and a novel collection of issues from repositories containing developer-committed context files. Surprisingly, we find that providing context files does not generally improve task success rates, while increasing inference cost by over 20% on average. This observation holds across different LLMs, coding agents, and for both LLM-generated and developer-committed context files. Specifically, we find that while instructions in the context files are well followed by coding agents, repository overviews, although popular and recommended by model providers, are not helpful. We conclude that while context files are useful for specifying non-standard coding practices, any attempts to improve performance should be rigorously evaluated before deployment.

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

↑