Skip to content
Preprint

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

Aug 2026 · 0 citations · 58 references
Computer Science

TL;DR

The results show that the protection deep agentic search 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.

Abstract

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.

View source

Similar papers

Preprint Aug 2026

DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration

DeepRepoQA is proposed, a novel question answering (QA) framework for repository-level code understanding that builds on an agentic framework where LLM agents find answers through a systematic tree search over the repository structure.

Wei Peng, Yuling Shi, Yingwei Ma et al. · 0 citations
Jul 2026

Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents

A controlled seed-intervention pilot finds that retrieval-derived initial context yields higher file F1 with less post-seed exploration than random non-gold context, while oracle gold context shows substantial remaining headroom.

Bowen Qin, Yi Xie · 0 citations
#artificial intelligence Review Aug 2026

AutoScientist-Quant: Self-Evolving Coding Agents for Automatic Research in Quantitative Investment

AutoScientist-Quant, a self evolving search process that regards quantitative research as one budgeted search problem, is presented, a self evolving search process that regards quantitative research as one budgeted search problem.

Zong-Qian Li, Yaoyiran Li, Yao-Hui Guo et al. · 0 citations
#natural language process... Preprint Sep 2026

Compile, Don't Memorize: A Context Compilation Architecture (CCA) for In-Context Learning

The Context Compilation Architecture (CCA), whose central novelty is a typed intermediate representation (IR) with fixed slots (rules.{must_do, must_not, conditional}, output_spec, available_tools, data_profile) into which any prose context is compiled once; executable verifiers and a violation-gated correction loop follow as downstream consequences.

Jin-Hu Qi, Minda Hu, Wen-Tao Zhang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.