Abstract
Long context windows were supposed to make agents better. The literature says otherwise: across retrieval, reasoning, coding and multi-turn tasks, performance degrades as input grows. This often happens well within the advertised window, and even when the model retrieves the right evidence perfectly.
For coding agents the damage is specific. The task’s intent (the goal, the constraints, the acceptance criteria) is written once, early, and then buried under logs, diffs, tool output and retries. We argue that context should not be accumulated at all. It should be compiled for each step from validated intents and the verified inputs and outputs of past actions.
The accumulation pattern
Most agents run one long loop. Each turn appends the model’s reasoning, every tool call and every tool result to the transcript. After an hour of work on a real repository, the transcript easily holds hundreds of thousands of tokens. The instruction that started it all is a few hundred of them.
Watch the intent drown
Left: one loop that appends every turn. Right: Chad rebuilds a small context for every loop. Illustrative animation.
Three things happen as that loop runs:
- Dilution. The fraction of tokens that carry the intent shrinks with every turn.
- Contamination. Dead ends, failed attempts and wrong hypotheses stay in context and keep steering the model.
- Degradation. Independent of content, longer inputs alone make models less reliable, as the next section shows.
What the research shows
The headline numbers below are each paper’s own reported results. They come from different models, tasks and setups, so they are not directly comparable. They all point the same way.
Reported performance drop as context grows
Relative drop vs. short-context baseline, as reported by each paper. Hover for details.
Sources: NoLiMa [5]: GPT-4o 99.3% → 69.7% at 32K tokens (relative drop ≈ 30%). Lost in Conversation [8]: 39% average drop in multi-turn vs. single-turn across six generation tasks. Context Length Alone Hurts [7]: 13.9% to 85% drop, inputs well within claimed context lengths.
The most striking result: Du et al. show performance still falls when the model retrieves all the evidence correctly, and even when distracting tokens are masked out. Length itself is the problem, not just finding the needle. [7]
Timeline of findings
Lost in the Middle
Liu et al. find a U-shaped curve: models use information at the start and end of the context far better than information in the middle. In some multi-document settings, mid-context performance falls below answering with no documents at all. [1]
Same Task, More Tokens
Levy, Jacoby & Goldberg pad the same reasoning task with irrelevant text and observe significant degradation at input lengths far shorter than the models’ technical maximum. [2]
RULER
Hsieh et al. show that the usable context of most long-context models is much smaller than claimed; many models that ace needle-in-a-haystack fail as tasks get more complex and inputs longer. [3]
NoLiMa
Modarressi et al. remove literal word overlap between question and evidence. At 32K tokens, most models fall below half of their short-context performance; even GPT-4o drops from 99.3% to 69.7%. [5]
Context Rot
Chroma evaluates 18 models, including GPT-4.1, Claude 4, Gemini 2.5 and Qwen3, and finds performance grows less reliable as input length increases, even on simple tasks. [6]
Context Length Alone Hurts
Du et al. report 13.9%–85% drops within claimed context lengths, despite perfect retrieval. Reciting the evidence before answering partly helps. [7]
LLMs Get Lost in Multi-Turn Conversation
Laban et al. split a task’s requirements across turns, which is exactly how intent arrives in real work. Average performance falls 39%, mostly from unreliability: once a model takes a wrong turn, it does not recover. [8]
Intelligence Degradation in Long-Context LLMs
Reports a sharp performance cliff once context passes a critical threshold, placed around 40–50% of the model’s window in the studied setting. [9]
Classifier Context Rot
Monitors built on recent frontier models lose recall as the transcripts they watch grow longer. The same decay hits the models we use to supervise agents. [10]
Context Rot in Long-horizon Search
In long agentic searches, models terminate prematurely or give uncertain wrong answers well before filling their context; context management is studied as a mitigation. [11]
Why intent goes first
Set model quality aside and look at pure arithmetic. A task’s intent is written once: say 800 tokens of goal, constraints and acceptance criteria. Each agent turn then appends reasoning, tool calls and results, say 4,000 tokens. The share of context that carries the intent after n turns is:
After 10 turns the intent is 2% of the context. After 50 turns, 0.4%. Combine that with the degradation above and the outcome is predictable: the model keeps working, but on a drifting idea of the task.
0
100%
Each dot is ~100 tokens. Violet dots carry the intent. Plays automatically. Drag the slider to explore. Illustrative model, not a benchmark.
Intent share of context over turns
Accumulating loop (I = 800, T = 4,000) vs. a compiled context of ~6k tokens with ~900 tokens of intent.
Computed from the formula above; illustrative.
Compiling context instead
Chad never carries a transcript from one step to the next. Each agent loop starts empty, and a context compiler assembles exactly what the step needs from durable memory:
- Global best practices for the domain, on top of everything and always present.
- The validated intent and its acceptance criteria, distilled from human input, Slack, Granola and issues, and confirmed by a person or by an AI reviewer.
- Related changes, found by querying ClickHouse: every git change is stored as rows of additions and deletions linked to its intent, so related work is found in milliseconds instead of having an LLM re-read history.
- Validated actions as input → output pairs: only what was actually done and then validated, by a human reviewer or an AI verifier agent. Dead ends never enter memory.
- The atomic task and its target files.
The result is many more LLM loops than a classic agent, but each one has a small, sharp context and a single task. Intent stays in the first few hundred tokens of every loop, where the research says models use it best [1]. Unlike memory-paging approaches that swap transcript chunks in and out of a single long-lived context [4], nothing is ever carried over implicitly. And because recent work argues that attention competition between distractors, more than raw length, predicts context rot [13], small contexts with few competitors are the most direct fix.
Context engineering, not context accumulation. Anthropic’s guidance for agents describes context as a finite resource with diminishing returns, and recommends the smallest possible set of high-signal tokens. [12]
Limits & next steps
The studies above test different models and tasks, and newer models keep improving at long context, as the NoLiMa authors note themselves [5]. Our argument does not depend on any single number: as long as intent is a shrinking fraction of a growing input, compiled contexts keep the advantage.
We are preparing our own benchmark on real repositories, comparing accumulated and compiled contexts on intent adherence, task success and cost. Results will be published here.
References
- Liu, N. F. et al. Lost in the Middle: How Language Models Use Long Contexts. TACL, 2024.
- Levy, M., Jacoby, A., Goldberg, Y. Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of LLMs. ACL, 2024.
- Hsieh, C.-P. et al. RULER: What's the Real Context Size of Your Long-Context Language Models?. COLM, 2024.
- Packer, C. et al. MemGPT: Towards LLMs as Operating Systems. arXiv, 2023.
- Modarressi, A. et al. NoLiMa: Long-Context Evaluation Beyond Literal Matching. ICML, 2025.
- Hong, K., Troynikov, A., Huber, J. Context Rot: How Increasing Input Tokens Impacts LLM Performance. Chroma technical report, July 2025.
- Du, Y. et al. Context Length Alone Hurts LLM Performance Despite Perfect Retrieval. Findings of EMNLP, 2025.
- Laban, P., Hayashi, H., Zhou, Y., Neville, J. LLMs Get Lost In Multi-Turn Conversation. ICLR, 2026.
- Intelligence Degradation in Long-Context LLMs. arXiv:2601.15300, January 2026.
- Classifier Context Rot: Monitor Performance Degrades with Context Length. arXiv:2605.12366, 2026.
- Diagnosing and Mitigating Context Rot in Long-horizon Search. arXiv:2606.29718, 2026.
- Anthropic. Effective context engineering for AI agents. 2025.
- Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval. arXiv:2611.04169, 2026.