# Stratum: Repository Memory for Coding Agents Beyond the Context Window

DevFeed: [Stratum: Repository Memory for Coding Agents Beyond the Context Window](<https://devfeed.tech/articles/stratum-repository-memory-for-coding-agents-beyond-the-context-window-103093.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36153>)

Author: Yuvraj Sehgal, Mahsa Panahandeh, Naser Ezzati-Jivan

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [context window](<https://devfeed.tech/topics/context-window.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [bug-fix](<https://devfeed.tech/tags/bug-fix.md>), [cache](<https://devfeed.tech/tags/cache.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [context](<https://devfeed.tech/tags/context.md>), [context-window](<https://devfeed.tech/tags/context-window.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [experience](<https://devfeed.tech/tags/experience.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [history](<https://devfeed.tech/tags/history.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-architecture](<https://devfeed.tech/tags/memory-architecture.md>), [pairs](<https://devfeed.tech/tags/pairs.md>), [repository](<https://devfeed.tech/tags/repository.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [root](<https://devfeed.tech/tags/root.md>), [selection](<https://devfeed.tech/tags/selection.md>), [text](<https://devfeed.tech/tags/text.md>), [token-cost](<https://devfeed.tech/tags/token-cost.md>)

## AI overview

Stratum proposes persistent, experience-aware memory stored with a repository to help coding agents carry knowledge across sessions. The motivation is that relevant files are a small share of a codebase, yet many co-edited files have no structural link, making selection--not context capacity--the key challenge. Its tiered memory uses page-safe tools that report what was returned, what remains, and the cost; retrieval over one million nodes had a 1.7 ms median. In an experiment on eight bugs, a fresh agent using another model's prior-session memory found the root-cause file in 21 of 24 trials, versus 6 of 24 with retrieval alone, at 4.5 times lower median token cost. Pooled investigation notes retained 8/8 success. These are abstract-reported results from a small experiment.

## Source excerpt

arXiv:2610.36153v1 Announce Type: cross Abstract: 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 $10^4$ to $10^5$ 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.