mlsanityData to 14 Oct 2026

Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study

arXiv 2608.01507 ↗First posted 2 Aug 2026cs.SE cs.AI cs.IRcited by 1

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Code agents spend much of their effort simply locating the right code inside a repository. Two approaches dominate current practice. In Semantic Search, the agent retrieves code blocks from a vector index built from the repository in advance. In Deep Agentic Search (also known as grep-search by subagent), a planning agent delegates the exploration to a separate subagent that works in an isolated context window and returns only a condensed result. The second design, which is considered good context engineering practice, exists to protect the main agent from context pollution (also known as context rot), the loss of accuracy that occurs as unrelated material accumulates in the context window. Recent code agents (such as Claude Code, Codex, Antigravity, etc) have adopted it quickly, but there is little evidence on whether it produces better answers. We compare the two approaches on SWE-QA, a benchmark for repository-level code question answering. Semantic search answered 65.2% of questions correctly against 46.2% for deep agentic search, and it produced each correct answer at less than half the cost. To explain the gap, we then coded every failed run into a taxonomy of failure modes. The taxonomy shows that deep agentic search did not remove failures but introduced a new class of them: the single largest share of its failures, 41.8%, occurred at the hand-off between the planner and its sub-agent, and these were usually silent, ending in a fluent and confident answer that was wrong. Deep agentic search addresses a real problem and is now the preferred design in many code agents. However, our results show that the protection it offers may not be free, and that for read-only questions over a repository that can be indexed, retrieval was the stronger and cheaper option.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 41 of its 58 references that are in the map. First posted on arXiv 2 Aug 2026.

Builds on

41 of 58 references.

Closest ancestors · 12

Same direction, newest first

  1. 2026FastContext: Training Efficient Repository Explorer for Coding Agents12 Jun
  2. 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories5 Jun
  3. 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoning14 May
  4. 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval8 May
  5. 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolution8 May
  6. 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems14 Apr
  7. 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding17 Mar
  8. 2026Agentic Code Reasoning2 Mar
  9. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
  10. 2025Decoding the Configuration of AI Coding Agents: Insights from Claude Code Projects12 Nov
  11. 2025The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agents5 Nov
  12. 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents17 Jun

Other references · 29

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  3. 2025DeepAgent: A General Reasoning Agent with Scalable Toolsetscited by 71
  4. 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 60
  5. 2025Chain-of-Retrieval Augmented Generationcited by 49
  6. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
  7. 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 38
  8. 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
  9. 2026Is Grep All You Need? How Agent Harnesses Reshape Agentic Searchcited by 21
  10. 2025CoReQA: Uncovering Potentials of Language Models in Code Repository Question Answeringcited by 17
  11. 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understandingcited by 13
  12. 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answeringcited by 11
17 more
  1. 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
  2. 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issuescited by 6
  3. 2025CodeSimpleQA: Scaling Factuality in Code Large Language Modelscited by 3
  4. 2026RubberDuckBench: A Benchmark for AI Coding Assistantscited by 3
  5. 2026Beyond Code Snippets: Benchmarking LLMs on Repository-Level Question Answeringcited by 3
  6. 2025RefactorCoderQA: Benchmarking LLMs for Multi-Domain Coding Question Solutions in Cloud and Edge Deploymentcited by 2
  7. 2025SimpleDevQA: Benchmarking Large Language Models on Development Knowledge QAcited by 2
  8. 2026LogicLens: Leveraging Semantic Code Graph to explore Multi Repository large systemscited by 2
  9. 2026Evaluating Repository-level Software Documentation via Question Answering and Feature-Driven Developmentcited by 2
  10. 2026On the Effectiveness of Context Compression for Repository-Level Tasks: An Empirical Investigationcited by 2
  11. 2026SWE-QA: A Dataset and Benchmark for Complex Code Understandingcited by 2
  12. 2026ATLAS: All-round Testing of Long-context Abilities across Scalescited by 2
  13. 2026Code-QA-Bench: Separating Code Reasoning from Documentation Memorization in Repository-Level QAcited by 2
  14. 2025When Many-Shot Prompting Fails: An Empirical Study of LLM Code Translationcited by 1
  15. 2025Natural Language Summarization Enables Multi-Repository Bug Localization by LLMs in Microservice Architecturescited by 1
  16. 2026Robustness and Reasoning Fidelity of Large Language Models in Long-Context Code Question Answeringcited by 1
  17. 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoningcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents
  2. 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration
  3. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
  4. 2024LLM Agents Improve Semantic Code Search
  5. 2025From Web Search towards Agentic Deep Research: Incentivizing Search with Reasoning Agents
  6. 2026Question's Gambit: The First Move Matters in Agentic Deep Search
  7. 2026Agentic-R: Learning to Retrieve for Agentic Search
  8. 2025DeepCode: Open Agentic Coding