CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents
Reading guide · Based on sections of the original paper
Why read this
Read it if you build agent tooling and need measured guidance on when cached code indexes, static navigation, and context-retirement policies hold up, and how much they save.
What the authors found
- On 200 SWE-bench Verified tasks with Claude Haiku 4.5 under a USD 1 stop rule, giving the agent ten dense candidates and dropping them after its first source read resolved 79 tasks. On-demand exploration resolved 66 and Aider's repo map 56. The authors attribute the gain to more submissions (98 vs 81), not better accuracy, since both resolved 0.81 of what they submitted. The gain over plain eager delivery was not significant after Holm adjustment. Resolution and retention.
- Static navigation reproduced the live LSP's normalized locations on 75.0% of path/start requests (705/940) across five language groups. Agreement varied by backend and capability, so the authors admit static serving only per backend and capability, using a 0.80 threshold set after the replay. Where admitted, the static route was ready about 5.9× sooner (median per-snapshot ratio). Compatibility by capability and backend.
- On a held-out cohort, incremental symbol repair completed on every Go/Python change but matched an independent rebuild on only 13 of 24. Execution success is therefore not proof that the output is correct, and the authors admit repair per repository. The comparison admits graph repair per repository, not per language.
Main limitation
The repair result rests on one hosted model and 200 Python tasks, 92 of them Django, with unknown benchmark exposure. The provider-substitution study covers only 30 tasks. External validity.
Where to start
Resolution and retention. · Check the paired disagreement test, the comparison of retirement against eager delivery, and the compaction audit before adopting the context policy.
Abstract
Coding agents repeatedly search, navigate, and retain context from evolving repositories, but disconnected indexes, language servers, and task-local histories force repeated discovery and obscure lifecycle costs. CodeNib builds reusable lexical, dense, and structural views per repository commit, maps outputs to repository-relative source ranges, maintains selected views across edits, and serves ranked search, symbol navigation, and bounded context through one runtime. Across 100 snapshots, we map quality-cost frontiers across the repository-context lifecycle. When outputs match an independent rebuild, graph and vector updates are 8.7times and 25.4times faster at the median. On the static-navigation subset matching normalized live-server locations (63% of 1,000 requests), the median per-request live/static latency ratio is 4.7times. Across five models, selected context policies preserve localization with 50--87% fewer trajectory tokens than paired grep/read. Together, these results support multi-view repository-context serving with explicit, operation-specific validity boundaries.