arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.34938cs.SEcs.AI
收藏

编码智能体如何利用自身演化的工具?对回溯适应的实证研究

How Do Coding-Agent Harnesses Self-Evolve? An Empirical Study of Retrospective Adaptation

Singapore Management University(新加坡管理大学);Heidelberg University(海德堡大学)

Christoph Treude, Sebastian Baltes

AI总结:

本研究通过实证探究编码智能体的回溯适应技能,分析其工具修改建议的特征,评估修改对减少后续任务重复工作的效果,指出工具自我演化需具备修改有效性判断及无效修改修订的机制。

摘要:

编码智能体可基于早期任务的经验调整其工具(用于运行智能体的软件、配置和指令),但这些调整是否能改善其在后续任务中的表现仍不明确。本研究探讨了「回溯(\ etro)」技能,该技能要求智能体回顾已完成的会话并提出工具修改建议,旨在明确其提出的修改内容,以及已实施的修改是否能减少后续任务中的重复工作。我们在30个SWE-bench Verified问题上运行了Claude Code,对\ etro提出的125条建议进行定性编码,实施了24条建议,并在来自同一代码库的后续新会话中,分别在实施和未实施12种工具修改的情况下进行评估。多数建议涉及会话中的某一事件,但43条与代码检查(lint)相关的建议中有18条推荐了无论发生何事都适用的做法。在7次评估中,未实施修改的会话遇到了目标问题,其中2种修改消除了目标操作,1种减少了其发生频率,4种未出现减少,部分修改还在不相关问题上增加了工作量。工具的自我演化不仅需要生成和实施修改,还需要建立判断修改是否对后续任务有帮助的方法,以及修订或移除无效修改的机制。

英文摘要:

Coding agents can adapt their harnesses, the software, configuration, and instructions used to run them, based on experience from earlier tasks, but whether these adaptations improve their behavior on later tasks remains unclear. We study \retro, a skill that asks an agent to review a completed session and propose harness changes, and ask what changes it proposes and whether implemented changes reduce repeated work on later tasks. We ran Claude Code on 30 SWE-bench Verified issues, qualitatively coded the 125 proposals from \retro, implemented 24, and evaluated 12 harness changes on later issues from the same repositories in fresh sessions with and without each change. Most proposals referred to an event in the session, but 18 of 43 lint-related proposals recommended a practice regardless of what had happened. Among the seven evaluations in which sessions without the change encountered the targeted problem, two changes eliminated the targeted action, one reduced its occurrence, four showed no reduction, and some changes added work on unrelated issues. Harness self-evolution requires more than generating and implementing changes: it needs ways to establish whether a change helps on later tasks and to revise or remove changes that do not.

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

↑