How Do Small Coding Agents Use Code Graphs and Embeddings?
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Code-graph and embedding tools are routinely added to LLM coding agents on the premise that they supply repository structure the model lacks. We report a pre-registered study of how much such tools help off-the-shelf agents localize the code an issue requires changing and how the benefit varies with model size. Nine open-weight models (Qwen3 0.6B to 32B, Gemma 4 E2B to 12B) run one fixed localization harness on 500 held-out SWE-bench tasks under four tool sets (grep only; plus embedding search; plus code-graph tools; both) and a placebo arm whose structural tools return random entities, with five sampled seeds per condition: 170,500 episodes under hypotheses, tests and claim criteria frozen before the runs. The tools raise canonical function Acc@10 by +0.06 to +0.10 for the Qwen3 models up to 14B and the two small Gemma 4 models, by +0.03 at 32B (a near miss after correction), and not at all for Gemma 4 12B, which rarely submits; the gain is larger for small models than for the largest model in both families. The placebo shows that the gain is caused by what the tools return rather than by having them, and that random tool output harms two small models. The pre-registered claim that a 4B model with tools matches a 32B model without them fails. Secondary analyses show that the embedding index, not the code graph, carries the gain; that the gain replicates on tasks created after every model's release and survives a shell harness, thinking mode, FP8 serving and a file-level metric that output formatting cannot inflate; and that it is mostly exposure: the tools show the gold code more often. Injecting the gold code directly explains the size trend. A 32B model already finds the code without the tools, so they add little exposure, while small models act on a shown answer less often (conversion 0.09, 0.24 and 0.40 at 1.7B, 4B and 32B). We release registration, code, episodes and analyses.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 39 of its 44 references that are in the map. Submitted 25 Oct 2026.
Builds on
39 of 44 references.
Closest ancestors · 19
Same direction, newest first
- 2026Code Understanding is a Bottleneck for Coding Agents7 Oct
- 2026RepoNav: From Snippet Retrieval to File-Centered Repository Navigation for Code Agents8 Sep
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration25 Aug
- 2026Ontology-Grounded Project Memory for Coding Agents13 Aug
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study2 Aug
- 2026Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories28 Jul
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents28 Jul
- 2026Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents27 Jul
- 2026How Much Static Structure Do Code Agents Need? A Study of Deterministic Anchoring25 Jun
- 2026LLM Agents Can See Code Repositories12 Jun
- 2026Exploration Structure in LLM Agents for Multi-File Change Localization10 Jun
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding10 Jun
7 more
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories5 Jun
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval8 May
- 2025SpIDER: Spatially Informed Dense Embedding Retrieval for Software Issue Localization18 Dec
- 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation14 Apr
- 2025LocAgent: Graph-Guided LLM Agents for Code Localization12 Mar
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localization1 Feb
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
Other references · 20
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
- 2019Designing and Interpreting Probes with Control Taskscited by 736
- 2025Enhancing repository-level software repair via repository-aware knowledge graphscited by 30
- 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 27
- 2025Improving Code Localization with Repository Memorycited by 26
- 2025Tool-integrated Reinforcement Learning for Repo Deep Searchcited by 20
- 2025Meta-RAG on Large Codebases Using Code Summarizationcited by 6
- 2025GRACE: Graph-Guided Repository-Aware Code Completion through Hierarchical Code Fusioncited by 5
- 2026Tool-Call Dependency Structure is Linearly Decodable in LLM Agent Residual Streamscited by 5
- 2025Extracting Conceptual Knowledge to Locate Software Issuescited by 4
8 more
- 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generationcited by 3
- 2026DeepDiscovery: A Location-Inference Framework for Task-Level Repository Understandingcited by 2
- 2026Beyond Repository Boundaries: Cross-Repository Graph Retrieval for Code Generationcited by 2
- 2026Multi-CoLoR: Context-Aware Localization and Reasoning across Multi-Language Codebasescited by 1
- 2026ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generationcited by 1
- 2026The Thousand-Graph Hypothesis: A Testable Hypothesis of Task-Conditioned Relation Materialization in Repository-Level Code Reasoningcited by 1
- 2026FeatLens: Feature-Guided Dependency Retrieval for Repository-Level Code Generationcited by 1
- 2026Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolvecited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CodeCompass: Navigating the Navigation Paradox in Agentic Code Intelligence
- 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agents
- 2026Latent Programming Horizons in Coding Agents
- 2026Interpreting Coding Agents Through Their Behavioral Trajectories
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures
- 2026Hybrid-Gym: Training Coding Agents to Generalize Across Tasks
- 2026TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimization
- 2026Understanding the Architecture of Coding Agents: An Exploratory Study Using a Research Prototype