Stratum: Repository Memory for Coding Agents Beyond the Context Window
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Context windows have grown a thousand-fold, yet coding agents still start every session with no memory of their past work. They re-read files, retry failed approaches, and forget root causes they established hours earlier. This is not a context-length problem but a memory-architecture problem. Our hypothesis: coding agents need persistent, experience-aware repository memory, so that knowledge survives from one session to the next. Three measurements on real repositories motivate the design. First, mid-size projects already exceed the largest production context windows, and storing knowledge inside the model's key-value (KV) cache costs 104 to 105 times more bytes than storing it as indexed text. Second, across 752 real bug-fix commits, the median fix edits two files, and these files plus their direct imports amount to less than 10% of the repository; the bottleneck is selection, not capacity. Third, even with transitive import reachability and test links, 47% of co-edited file pairs remain structurally disconnected; the knowledge needed for selection must be mined from history and experience. We sketch Stratum, a tiered memory that lives with the repository and serves it through page-safe tools: every response states what was returned, what remains, and what it cost. Retrieval over a store of one million nodes takes 1.7 ms at the median. In a multi-session experiment on eight real bugs, a fresh agent that inherited a prior session's memory, written by a different model, identified the root-cause file in 21 of 24 trials versus 6 of 24 for a retrieval-only baseline (Fisher p<10-4), at 4.5x lower median token cost. With the notes of all eight investigations pooled in one store, success remained 8/8.
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 27 of its 31 references that are in the map. Submitted 26 Oct 2026.
Builds on
27 of 31 references.
References · 27
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 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
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 1,003
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 893
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 610
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 581
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 272
15 more
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 262
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 223
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 220
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 214
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttentioncited by 184
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 162
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 152
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 146
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 139
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 133
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 70
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 18
- 2025KVSwap: Disk-aware KV Cache Offloading for Long-Context On-device Inferencecited by 6
- 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inferencecited by 6
- 2026ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMscited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026VibeMemBench: Evaluating Memory Systems for Coding Agents on Real Repository Coding Tasks
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents
- 2026Learning to Commit: Generating Organic Pull Requests via Online Repository Memory
- 2026FastContext: Training Efficient Repository Explorer for Coding Agents
- 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents
- 2026REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents
- 2026Can Coding Agents Solve Repository-Level Issues with Rendered Code? An Exploratory Study of Visual Representations
- 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents