mlsanityData to 7 Oct 2026

On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing

arXiv 2406.04464 ↗First posted 6 Jun 2024cs.SE cs.AI cs.LGcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Recent advancements in code-fluent Large Language Models (LLMs) enabled the research on repository-level code editing. In such tasks, the model navigates and modifies the entire codebase of a project according to request. Hence, such tasks require efficient context retrieval, i.e., navigating vast codebases to gather relevant context. Despite the recognized importance of context retrieval, existing studies tend to approach repository-level coding tasks in an end-to-end manner, rendering the impact of individual components within these complicated systems unclear. In this work, we decouple the task of context retrieval from the other components of the repository-level code editing pipelines. We lay the groundwork to define the strengths and weaknesses of this component and the role that reasoning plays in it by conducting experiments that focus solely on context retrieval. We conclude that while the reasoning helps to improve the precision of the gathered context, it still lacks the ability to identify its sufficiency. We also outline the ultimate role of the specialized tools in the process of context gathering. The code supplementing this paper is available at https://github.com/JetBrains-Research/ai-agents-code-editing.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 14 of its 21 references that are in the map. First posted on arXiv 6 Jun 2024.

Builds on

14 of 21 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Class-Level Code Generation from Natural Language Using Iterative, Tool-Enhanced Reasoning over Repository22 Apr

Other references · 13

  1. 2023A Survey of Large Language Modelscited by 2,537
  2. 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,151
  3. 2023ChatDev: Communicative Agents for Software Developmentcited by 893
  4. 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
  5. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  6. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  7. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  8. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  9. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  10. 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
  11. 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
  12. 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
1 more
  1. 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation
  2. 2025CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion
  3. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Model
  4. 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
  5. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches
  6. 2026Do Not Treat Code as Natural Language: Implications for Repository-Level Code Generation and Beyond
  7. 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation
  8. 2026MRCoder: An Efficient Context Selecting Approach for Repository-Level Code Generation ↗