Improving Code Localization with Repository Memory
Not on the map. Why?
Abstract (arXiv)
Code localization is a fundamental challenge in repository-level software engineering tasks such as bug fixing. While existing methods equip language agents with comprehensive tools/interfaces to fetch information from the repository, they overlook the critical aspect of memory, where each instance is typically handled from scratch assuming no prior repository knowledge. In contrast, human developers naturally build long-term repository memory, such as the functionality of key modules and associations between various bug types and their likely fix locations. In this work, we augment language agents with such memory by leveraging a repository's commit history -- a rich yet underutilized resource that chronicles the codebase's evolution. We introduce tools that allow the agent to retrieve from a non-parametric memory encompassing recent historical commits and linked issues, as well as functionality summaries of actively evolving parts of the codebase identified via commit patterns. We demonstrate that augmenting such a memory can significantly improve LocAgent, a state-of-the-art localization framework, on both SWE-bench-verified and the more recent SWE-bench-live benchmarks. Our research contributes towards developing agents that can accumulate and leverage past experience for long-horizon tasks, more closely emulating the expertise of human developers.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 23 of its 39 references that are in the map. First posted on arXiv 1 Oct 2025.
Builds on
23 of 39 references.
References · 23
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2024Agent Workflow Memorycited by 342
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2024Generative Representational Instruction Tuningcited by 227
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skillscited by 174
- 2021Simple Entity-Centric Questions Challenge Dense Retrieverscited by 140
11 more
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 88
- 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 62
- 2023Experiential Co-Learning of Software-Developing Agentscited by 57
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localizationcited by 43
- 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2024Code Representation Learning At Scalecited by 26
- 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
Built on by
Citing papers per year: 2025: 3; 2026: 16.
19 papers.
Sort:
By area:
- 2025AI Meets Brain: Memory Systems from Cognitive Neuroscience to Autonomous Agentscited by 12
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editablecited by 12
- 2025Agentic Learner with Grow-and-Refine Multimodal Semantic Memorycited by 11
- 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agentscited by 11
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memorycited by 3
- 2026FinEvolveBench: A Benchmark for Self-Evolving Agents on Low-Repetition Tasks with Implicit Rewardscited by 3
- 2026LLM Agents Can See Code Repositoriescited by 3
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrievalcited by 2
- 2026Self-Evolving Coding Agentscited by 2
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behaviorcited by 2
- 2026Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentationcited by 1
7 more
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repaircited by 1
- 2026Multi-CoLoR: Context-Aware Localization and Reasoning across Multi-Language Codebasescited by 0
- 2026Enhancing Software Engineering Through Closed-Loop Memory Optimizationcited by 0
- 2026Libra: Training the Environment for Agentic Information Retrievalcited by 0
- 2026FlowArk: Boosting Agentic Data-flow Analysis for Android Apps via Context-Aware Knowledge Reusecited by 0
- 2026A^2Agent: Action-Aware Reinforcement Learning for Repository-Level Code Localization Agentscited by 0
- 2026Chronos Enables Code Agents to Reason over Software Evolutioncited by 0
- 2026Chronos Enables Code Agents to Reason over Software Evolution8 Oct 2026
- 2026A^2Agent: Action-Aware Reinforcement Learning for Repository-Level Code Localization Agents30 Aug 2026
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior11 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable14 Jul 2026
- 2026FlowArk: Boosting Agentic Data-flow Analysis for Android Apps via Context-Aware Knowledge Reuse13 Jul 2026
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair2 Jul 2026
- 2026LLM Agents Can See Code Repositories12 Jun 2026
- 2026FinEvolveBench: A Benchmark for Self-Evolving Agents on Low-Repetition Tasks with Implicit Rewards5 Jun 2026
- 2026Enhancing Software Engineering Through Closed-Loop Memory Optimization4 Jun 2026
- 2026Libra: Training the Environment for Agentic Information Retrieval26 May 2026
- 2026Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation14 May 2026
7 more
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval8 May 2026
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memory27 Mar 2026
- 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agents25 Feb 2026
- 2026Multi-CoLoR: Context-Aware Localization and Reasoning across Multi-Language Codebases23 Feb 2026
- 2025AI Meets Brain: Memory Systems from Cognitive Neuroscience to Autonomous Agents29 Dec 2025
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025Agentic Learner with Grow-and-Refine Multimodal Semantic Memory26 Nov 2025
- 2025AI Meets Brain: Memory Systems from Cognitive Neuroscience to Autonomous Agentscited by 12
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editablecited by 12
- 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agentscited by 11
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memorycited by 3
- 2026FinEvolveBench: A Benchmark for Self-Evolving Agents on Low-Repetition Tasks with Implicit Rewardscited by 3
- 2026LLM Agents Can See Code Repositoriescited by 3
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrievalcited by 2
- 2026Self-Evolving Coding Agentscited by 2
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behaviorcited by 2
- 2026Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentationcited by 1
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repaircited by 1
12 most cited of 14 All 14 (JSON)
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior11 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable14 Jul 2026
- 2026FlowArk: Boosting Agentic Data-flow Analysis for Android Apps via Context-Aware Knowledge Reuse13 Jul 2026
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair2 Jul 2026
- 2026LLM Agents Can See Code Repositories12 Jun 2026
- 2026FinEvolveBench: A Benchmark for Self-Evolving Agents on Low-Repetition Tasks with Implicit Rewards5 Jun 2026
- 2026Libra: Training the Environment for Agentic Information Retrieval26 May 2026
- 2026Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation14 May 2026
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval8 May 2026
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memory27 Mar 2026
- 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agents25 Feb 2026
12 newest of 14 All 14 (JSON)