Reformulate, Retrieve, Localize: Agents for Repository-Level Bug Localization
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Bug localization remains a critical yet time-consuming challenge in large-scale software repositories. Traditional information retrieval-based bug localization (IRBL) methods rely on unchanged bug descriptions, which often contain noisy information, leading to poor retrieval accuracy. Recent advances in large language models (LLMs) have improved bug localization through query reformulation, yet the effect on agent performance remains unexplored. In this study, we investigate how an LLM-powered agent can improve file-level bug localization via lightweight query reformulation and summarization. We first employ an open-source, non-fine-tuned LLM to extract key information from bug reports, such as identifiers and code snippets, and reformulate queries pre-retrieval. Our agent then orchestrates BM25 retrieval using these preprocessed queries, automating localization workflow at scale. Using the best-performing query reformulation technique, our agent achieves 35% better ranking in first-file retrieval than our BM25 baseline and up to +22% file retrieval performance over SWE-agent.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 41 references that are in the map. First posted on arXiv 7 Dec 2025.
Builds on
15 of 41 references.
Closest ancestors · 4
Same direction, newest first
- 2025LocAgent: Graph-Guided LLM Agents for Code Localization12 Mar
- 2024A Multi-Agent Approach to Fault Localization via Graph-Based Retrieval and Reflexion20 Sep
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024CodeAgent: Autonomous Communicative Agents for Code Review3 Feb
Other references · 11
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2024The Good, The Bad, and The Greedy: Evaluation of LLMs Should Not Ignore Non-Determinismcited by 113
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2024Long Code Arena: a Set of Benchmarks for Long-Context Code Modelscited by 48
- 2018Improving IR-Based Bug Localization with Context-Aware Query Reformulationcited by 11
- 2021The Forgotten Role of Search Queries in IR-based Bug Localization: An Empirical Studycited by 5
- 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
- 2023Toward Rapid Bug Resolution for Android Appscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Retrieval-Oriented Code Representations in Agentic Bug Localization
- 2026BLAgent: Agentic RAG for File-Level Bug Localization
- 2025Meta-RAG on Large Codebases Using Code Summarization
- 2025Natural Language Summarization Enables Multi-Repository Bug Localization by LLMs in Microservice Architectures
- 2025SweRank: Software Issue Localization with Code Ranking
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localization
- 2026Multi-task LLMs for Bug Classification: Efficient Inference with Auxiliary Decoding Heads
- 2026Semantic Navigation for Issue Localization in Code Repository