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

StateHarness:为长程编码智能体维护演化中的项目状态

StateHarness: Maintaining Evolving Project State for Long-Horizon Coding Agents

University of Notre Dame(圣母大学);University of Pennsylvania(宾夕法尼亚大学)

Chuan Zou, Yujun Zhou, Xiaonan Luo, Xiangliang Zhang

AI总结:

StateHarness是无需更新模型参数的运行时框架,通过维护演化项目状态提升长程编码智能体的任务完成率与变更一致性,在多基准测试中取得显著效果但存在退化权衡。

摘要:

长程编码要求智能体维护其正在修改的项目的演化视图:当前正在解决的问题、已学习或修改的内容、可能受影响的其他构件以及仍未解决的工作。当这些信息分散在不断增长的交互历史中时,局部编辑可能与其后续后果脱节,且难以推进进展。我们提出StateHarness,这是一个无需更新模型参数即可维护演化项目状态的运行时框架。工作智能体记录其当前问题与假设、重要发现与决策、已发现的仓库关系以及未完成的工作。运行时支持提示记录更新、搜索可能受变更影响的调用者、测试和文档,并为后续决策维护简洁的工作摘要。当行为信号积累时,单独的诊断会话会回顾记录的历史并呈现被忽视的证据。在三项仓库级评估中,StateHarness提升了任务完成率和多项变更一致性指标:在RefactorBench上,全链完成率从29.4%提升至35.3%,清理检查准确率从87.0%提升至95.4%;在5项LHTB软件工程任务上,平均奖励从0.427提升至0.576,且记录的执行成本显著低于LongHorizon-Harness;在ChainSWE上,漏洞修复率从35.1%提升至39.5%,剩余债务从60项减少至43项,但逐次传递的退化有所增加。这些结果表明,维护项目状态可改进长程编码,同时带来可衡量的执行与退化权衡。

英文摘要:

Long-horizon coding requires agents to maintain an evolving view of the project they are changing: what problem is currently being solved, what has already been learned or modified, which other artifacts may be affected, and what work remains unresolved. When this information is scattered across a growing interaction history, local edits can become disconnected from their later consequences and progress can be difficult to carry forward. We introduce StateHarness, a runtime framework that maintains evolving project state without updating model parameters. The working agent records its current problem and hypothesis, important findings and decisions, discovered repository relationships, and unfinished work. Runtime support prompts record updates, searches for callers, tests, and documentation that may be affected by a change, and maintains a compact working brief for subsequent decisions. When behavioral signals accumulate, a separate diagnostic session revisits the recorded history and surfaces overlooked evidence. Across three repository-level evaluations, StateHarness improves task completion and several measures of change consistency. On RefactorBench, full-chain completion increases from 29.4% to 35.3% and cleanup-check accuracy from 87.0% to 95.4%. On five LHTB software-engineering tasks, mean reward improves from 0.427 to 0.576, exceeding LongHorizon-Harness at substantially lower recorded execution cost. On ChainSWE, bug-fix rate increases from 35.1% to 39.5% and residual debt decreases from 60 to 43 items, although pass-to-pass regressions increase. These results show that maintaining project state can improve long-horizon coding while introducing measurable execution and regression trade-offs.

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

↑