How Much Static Structure Do Code Agents Need? A Study of Deterministic Anchoring
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM-based code agents navigate repositories through keyword search but miss the structural relationships, such as call graphs, inheritance hierarchies, and configuration dependencies, that define how software actually works. This makes agent navigation stochastic and difficult to reproduce across runs. We investigate whether lightweight static analysis can provide deterministic anchors for these agents: stable structural facts injected as plain-text comments that constrain probabilistic exploration and make navigation more predictable. Starting from a strong baseline, Codex from OpenAI, we systematically inject varying granularities of structural annotations and measure their effects on localization, trajectory behavior, and run-to-run stability. Our study identifies what we call the deterministic anchoring effect: static structure helps less by making agents "smarter" and more by making their navigation disciplined and reproducible. Three observations support this finding: (1) Anchoring works: lightweight call/inheritance topology improves function-level localization (+2.2pp Func@5) and shortens trajectories (-1.6 interaction rounds); (2) Anchoring is scale-sensitive: the optimal granularity and directionality depend on repository characteristics, where denser semantics show diminishing returns and hub-heavy projects benefit from inverse-only links that expose "who-calls-me" without forward edges; (3) Anchoring stabilizes: tags raise link-following rate from 0.15-0.18 to 0.21-0.24, roughly halve run-to-run variance, and improve single-run reliability (Pass@1 +3.4 pp) on medium-scale repositories, at the cost of roughly 10% more input tokens. These observations suggest practical guidelines: default to lightweight topology on medium projects, prune forward edges in large repositories, and reserve dense tags for implicit-dependency cases.
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 26 of its 74 references that are in the map. First posted on arXiv 25 Jun 2026.
Builds on
26 of 74 references.
Closest ancestors · 6
Same direction, newest first
- 2025UTBoost: Rigorous Evaluation of Coding Agents on SWE-Bench10 Jun
- 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
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 20
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2024TheAgentCompany: Benchmarking LLM Agents on Consequential Real World Taskscited by 326
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 197
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 91
- 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
- 2023Large Language Models for Test-Free Fault Localizationcited by 67
8 more
- 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Javacited by 34
- 2024Hybrid Automated Program Repair by Combining Large Language Models and Program Analysiscited by 22
- 2024STALL+: Boosting LLM-based Repository-level Code Completion with Static Analysiscited by 21
- 2021PyCG: Practical Call Graph Generation in Pythoncited by 17
- 2025Reflections on the Reproducibility of Commercial LLM Performance in Empirical Software Engineering Studiescited by 12
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
- 2025Improving LLM-Based Fault Localization with External Memory and Project Contextcited by 4
- 2017Software Engineers' Information Seeking Behavior in Change Impact Analysis - An Interview Studycited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026CodeCompass: Navigating the Navigation Paradox in Agentic Code Intelligence
- 2026ANCHOR: Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures
- 2026The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior
- 2026Formal Architecture Descriptors as Navigation Primitives for AI Coding Agents
- 2026LARGER: Lexically Anchored Repository Graph Exploration and Retrieval
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives
- 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving