arXiv cs.AI· Huanyu Liu, Yezheng Cheng, Jinliang You, Tianxiao Huang, Linyu Li, Zheng Fang, Peng Cao, Ge Li·· 3 小时前AI 评分39
Repotrace:改进多轮智能体交互中的需求追踪
RepoTrace: Improving Requirement Tracing in Multi-Round Agent Interactions
AI 导读
研究者提出 Repotrace,一种需求驱动的仓库理解工具,通过结合仓库结构与需求语义构建需求-代码对应关系并注入智能体上下文。基于 EvoCode-Bench 的 2,656 条智能体轨迹分析,作者发现需求焦点错位是常见失败模式。
正文 · 原文
Abstract:Code agents have become increasingly capable of performing software engineering tasks through interaction with software environments. However, agents tend to degrade as the number of interaction rounds increases, making it difficult to maintain existing software during iterative modification. We analyze 2,656 agent trajectories in EvoCode-Bench and identify requirement focus misalignment as a recurring failure pattern, where agents struggle to distinguish the primary modification targets of a requirement from unrelated code.
We propose Repotrace a requirement-driven repository understanding harness that combines repository structure with requirement semantics to construct a requirement-code correspondence and injects it into the agent context. This correspondence enables code agents to follow the repository architecture, trace requirements across multi-round interactions, and identify the core code elements corresponding to the current requirement. Experiments show that Repotrace improves the mean per-round reward (MPR) across different models (e.g., +19.99 on GLM-5.2) and agent harnesses (e.g., +10.22 on Claude Code). Across rounds, Repotrace increases the average per-round reward from 0.163 to 0.371 on Terminus-2 with DeepSeek-V4-Pro, while reducing average regression errors by 56.78%. We release the source code and agents' trajectories to support future research.
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.35333 [cs.SE] |
| (or arXiv:2610.35333v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2610.35333 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Huanyu Liu [view email]
[v1]
Mon, 26 Oct 2026 12:30:22 UTC (4,016 KB)
来源:arXiv cs.AI · arxiv.org