SHERLOC: Structured Diagnostic Localization for Code Repair Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM agents solve repository-level coding tasks through multi-turn tool use, but utilize half their budget on locating faults before editing. Dedicated localization frameworks have emerged, yet are still evaluated as file retrieval rather than actionable diagnosis, producing locations without the diagnostic context a repair agent needs. We introduce SHERLOC (Structured Hypothesis-driven Exploration and Reasoning for Localization), a training-free framework pairing a reasoning LLM with compact repository tools and self-recovery, without fine-tuning or multi-agent orchestration. SHERLOC reaches state-of-the-art localization across model scales: 84.33% accuracy@1 on SWE-Bench Lite and 81.27% recall@1 on SWE-Bench Verified; at ~30B parameters, it matches or outperforms other agentic methods. Injecting our locations and diagnostic findings into repair agents yields an average +5.95 pp resolve-rate gain from the best SHERLOC result per setting on SWE-Bench Verified. SHERLOC cuts localization and total tokens by 36.7% and 23.1% on average.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 51 references that are in the map. First posted on arXiv 23 Jun 2026.
Builds on
22 of 51 references.
Closest ancestors · 5
Same direction, newest first
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul
- 2025LocAgent: Graph-Guided LLM Agents for Code Localization12 Mar
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localization1 Feb
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 17
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 196
- 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
- 2025The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reasoncited by 47
- 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
5 more
- 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
- 2025SweRank: Software Issue Localization with Code Rankingcited by 20
- 2025Thought calibration: Efficient and confident test-time scalingcited by 20
- 2025Tool-integrated Reinforcement Learning for Repo Deep Searchcited by 14
- 2025T2: An Adaptive Test-Time Scaling Strategy for Contextual Question Answeringcited by 6
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models
- 2026BLAgent: Agentic RAG for File-Level Bug Localization
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repair
- 2026Neurosymbolic Repo-level Code Localization
- 2024A Multi-Agent Approach to Fault Localization via Graph-Based Retrieval and Reflexion
- 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
- 2026Retrieval-Oriented Code Representations in Agentic Bug Localization
- 2026LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysis