该研究针对现有代码理解基准忽略仓库时序演化的问题,提出SWE-Time基准及RealWorld-to-Verifiable构建框架,评估15个编码智能体在1661个案例上的表现,发现Claude Opus 4.8得分最高,凸显仓库演化是代码理解的新挑战维度。
摘要:
仓库级代码理解基准已逐步扩展了推理的空间范围,从局部代码延伸至整个仓库,但大多将每个仓库视为静态快照。然而,模型如何随时间推理仓库演化的问题在很大程度上尚未被探索。我们提出SWE-Time,一个以仓库演化本身为推理目标的时序仓库理解基准。SWE-Time评估两个互补的时序方向:通过历史回归分析对仓库演化的回顾性理解,以及从变更前仓库状态对预期变更的前瞻性理解。为在这些场景中实现真实且可靠的评估,我们提出RealWorld-to-Verifiable构建框架,该框架将真实世界的开发者查询和历史证据转化为可验证的评估任务。我们在来自65个GitHub仓库的1661个案例上评估了15个编码智能体。在Claude Code中,Claude Opus 4.8取得了最高的SWE-Time平均得分61.9,仍有较大提升空间。受控分析凸显了历史代码证据和开发者意图的重要性,而跨仓库状态的一致推理仍然具有挑战性。这些结果表明,仓库演化是代码理解中一个独特且具有挑战性的维度。
英文摘要:
Repository-level code-understanding benchmarks have progressively expanded the spatial scope of reasoning, from local code to entire repositories, while largely treating each repository as a static snapshot. However, how models reason about repository evolution over time remains largely unexplored. We introduce SWE-Time, a benchmark for temporal repository understanding that makes repository evolution itself the reasoning target. SWE-Time evaluates two complementary temporal directions: retrospective understanding of repository evolution through historical regression analysis and prospective understanding of intended changes from pre-change repository states. To enable realistic yet reliable evaluation in these settings, we introduce the RealWorld-to-Verifiable Construction Framework, which transforms real-world developer queries and historical evidence into verifiable evaluation tasks. We evaluate 15 coding agents on 1,661 cases from 65 GitHub repositories. Within Claude Code, Claude Opus 4.8 achieves the highest SWE-Time Avg. of 61.9, leaving substantial headroom. Controlled analyses highlight the importance of historical code evidence and developer intent, while consistent reasoning across repository states remains challenging. These results highlight repository evolution as a distinct and challenging dimension of code understanding.
DependEval: Benchmarking LLMs for Repository Dependency Understanding
Nanyang Technological University(南洋理工大学);Tsinghua University(清华大学);Beihang University(北京航空航天大学);ShanghaiTech University(上海科技大学);The University of Hong Kong(香港大学)
SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning
Department of Computer Science, Columbia University, New York, USA(哥伦比亚大学计算机科学系);Computer Science Department, University of California, Los Angeles, California, USA(加州大学洛杉矶分校计算机科学系)
SWE-Explore: Benchmarking How Coding Agents Explore Repositories
Shanghai Jiao Tong University(上海交通大学);Xinjiang University(新疆大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Independent Researcher(独立研究者);The Chinese University of Hong Kong(香港中文大学)
Evaluating and Improving Automated Repository-Level Rust Issue Resolution with LLM-based Agents
Research Institute of Trustworthy Autonomous Systems, Southern University of Science and Technology(南方科技大学可信自主系统研究院);Southern University of Science and Technology(南方科技大学);Ant Group(蚂蚁集团)
SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding
University of Waterloo(滑铁卢大学);University of Toronto(多伦多大学);The Hong Kong University of Science and Technology(香港科学与技术大学);McGill University & MILA(麦吉尔大学及MILA);Verdent AI, Inc.(Verdent AI公司)
SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios
FPT Software AI Center(FPT软件人工智能中心);School of Computing and Information Systems(计算与信息系统学院);University of Melbourne(墨尔本大学);Center of AI Research(人工智能研究中心);VinUniversity(文大学)
Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving
University College London(伦敦大学学院);Sana Labs(Sana实验室);Uppsala University(乌普萨拉大学);Nanjing University(南京大学);Carnegie Mellon University(卡内基梅隆大学);KTH Royal Institute of Technology(瑞典皇家理工学院)
Not All Correct Fixes Run Alike: An Empirical Study of Patch Performance in Repository-Level Issue Resolution
The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术开发区(滨江)区块链与数据安全研究院);Graz University of Technology(格拉茨工业大学)
该研究以SWE-bench等基准的F2P测试为工具,搭配Claude Opus 5等模型与SWE-agent,发现LLM生成补丁的运行时性能与问题解决率无关,需将补丁性能纳入仓库级问题解决的评估。
ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenance
NVIDIA(英伟达);University College London(伦敦大学学院);New York University(纽约大学);Georgia Institute of Technology(佐治亚理工学院);Cornell University(康奈尔大学);Stanford University(斯坦福大学);Northeastern University(东北大学)
Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks
Singapore Management University(新加坡管理大学);University of Alberta(阿尔伯塔大学);Nanjing University of Science and Technology(南京理工大学);Tel Aviv University(特拉维夫大学)