AIJun 21

Code Isn't Memory: A Structural Codebase Index Inside a Coding Agent

arXiv:2606.2241718.1
Predicted impact top 28% in AI · last 90 daysOriginality Incremental advance
AI Analysis

For practitioners building coding agents, this paper provides evidence that structural indexing improves performance without increasing cost, though the benefit is workload-dependent.

The paper investigates whether adding a structural codebase index to a coding agent improves cost and resolve. Results show a large localization gain and statistically separated resolve gain with no cost penalty, and lower cost per solve compared to agentic grep.

Coding agents now interleave LLMs with retrieval over the working repository, and retrieval implementations vary widely across deployed harnesses. Inside a fixed coding-agent harness on a fixed model, does adding a structural codebase index actually change cost or resolve? We ran three arms (the harness with the index, the same harness without it, and an agentic-grep comparator) on SWE-PolyBench Verified and SWE-bench Pro with Claude Opus 4.7 held fixed throughout, across three seeds, inside a leak-audited per-task sandbox. The within-harness ablation produces a large localization gain and a statistically separated resolve gain, with no cost penalty per cell and lower cost per solve. The cross-harness check shows that the index does not regress against an agentic-grep baseline on resolve or localization, again at no cost penalty. We release the per-cell exclusion ledger, the leak-audit script, the localization extractor, and the results database. The deployment question for a structural codebase index is thus not whether it is too expensive to run (across seeds, the index lands at a lower $/solved than agentic grep) but whether the workload includes multi-file changes where structural ranking pays off.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes