# How Do Small Coding Agents Use Code Graphs and Embeddings?

arXiv: https://arxiv.org/abs/2610.33958 · HTML: https://mlsanity.com/paper/2610.33958/

## 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.

## Placed in

- LLM agents and tool use / [Software engineering coding agents](https://mlsanity.com/agents/software-engineering-coding-agents/)

## Builds on (most cited first, 30 of 39)

- [Efficient Memory Management for Large Language Model Serving with PagedAttention](https://mlsanity.com/paper/2309.06180/) (2023)
- [SWE-bench: Can Language Models Resolve Real-World GitHub Issues?](https://mlsanity.com/paper/2310.06770/) (2023)
- [Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models](https://mlsanity.com/paper/2506.05176/) (2025)
- [Designing and Interpreting Probes with Control Tasks](https://mlsanity.com/paper/1909.03368/) (2019)
- [Agentless: Demystifying LLM-based Software Engineering Agents](https://mlsanity.com/paper/2407.01489/) (2024)
- [LocAgent: Graph-Guided LLM Agents for Code Localization](https://mlsanity.com/paper/2503.09089/) (2025)
- [OrcaLoca: An LLM Agent Framework for Software Issue Localization](https://mlsanity.com/paper/2502.00350/) (2025)
- [Enhancing repository-level software repair via repository-aware knowledge graphs](https://mlsanity.com/paper/2503.21710/) (2025)
- [Issue Localization via LLM-Driven Iterative Code Graph Searching](https://mlsanity.com/paper/2503.22424/) (2025)
- [Improving Code Localization with Repository Memory](https://mlsanity.com/paper/2510.01003/) (2025)
- [SWE-Explore: Benchmarking How Coding Agents Explore Repositories](https://mlsanity.com/paper/2606.07297/) (2026)
- [Tool-integrated Reinforcement Learning for Repo Deep Search](https://mlsanity.com/paper/2508.03012/) (2025)
- [GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation](https://mlsanity.com/paper/2504.10046/) (2025)
- [CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding](https://mlsanity.com/paper/2606.11864/) (2026)
- [Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories](https://mlsanity.com/paper/2607.27250/) (2026)
- [Meta-RAG on Large Codebases Using Code Summarization](https://mlsanity.com/paper/2508.02611/) (2025)
- [GRACE: Graph-Guided Repository-Aware Code Completion through Hierarchical Code Fusion](https://mlsanity.com/paper/2509.05980/) (2025)
- [Tool-Call Dependency Structure is Linearly Decodable in LLM Agent Residual Streams](https://mlsanity.com/paper/2605.25310/) (2026)
- [LLM Agents Can See Code Repositories](https://mlsanity.com/paper/2606.14061/) (2026)
- [Extracting Conceptual Knowledge to Locate Software Issues](https://mlsanity.com/paper/2509.21427/) (2025)
- [LARGER: Lexically Anchored Repository Graph Exploration and Retrieval](https://mlsanity.com/paper/2605.16352/) (2026)
- [Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents](https://mlsanity.com/paper/2607.24882/) (2026)
- [Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation](https://mlsanity.com/paper/2608.01927/) (2026)
- [SpIDER: Spatially Informed Dense Embedding Retrieval for Software Issue Localization](https://mlsanity.com/paper/2512.16956/) (2025)
- [Exploration Structure in LLM Agents for Multi-File Change Localization](https://mlsanity.com/paper/2606.11976/) (2026)
- [DeepDiscovery: A Location-Inference Framework for Task-Level Repository Understanding](https://mlsanity.com/paper/2606.22906/) (2026)
- [How Much Static Structure Do Code Agents Need? A Study of Deterministic Anchoring](https://mlsanity.com/paper/2606.26979/) (2026)
- [CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents](https://mlsanity.com/paper/2607.25431/) (2026)
- [Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study](https://mlsanity.com/paper/2608.01507/) (2026)
- [Beyond Repository Boundaries: Cross-Repository Graph Retrieval for Code Generation](https://mlsanity.com/paper/2609.09987/) (2026)

## 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.
