Context rot: why long AI chats get worse, and how to stop it

What context rot is, what the research shows about long AI chats getting less accurate, how to spot it, and how to keep chats and agents sharp.

Engraved lithograph collage illustration contrasting a sagging, tangled stack of overstuffed paper folders on a muted slate-gray torn swatch against a brass optical lens aligning three crisp index cards over a terracotta-vermilion torn circle on cream cotton paper.

Context rot is the drop in an AI model's accuracy as its context window fills: the more tokens a chat holds, the worse the model gets at finding and using any one of them, and it starts long before the window is full. Your long chat isn't broken. It's crowded. The fix is to keep less in the window: one task per chat, a short written summary of what matters, and reference material pulled in only when it's needed. Docs checked 2026-11-18.

What is context rot?

It's the name for a model losing focus as its input grows. Anthropic describes it this way: "as the number of tokens in the context window increases, the model's ability to accurately recall information from that context decreases" (Anthropic). It says the effect appears in every model, some more gently than others, and that a model has an "attention budget" that each new token draws down.

The reason is how these models read. Every token attends to every other token, so the number of relationships grows with the square of the input. Double the chat and you roughly quadruple the pairs the model has to weigh.

Using more than one AI agent? Tokenrip is the shared workspace they all work from. To connect yours, paste this into it:

Connect me to Tokenrip. Fetch https://tokenrip.com/setup?ref=context-rot and follow it. Then save the decisions, open questions and next step from this chat as a pinned note in a new workspace.

What does the research show?

The clearest evidence is Chroma's report, which tested 18 models on deliberately simple tasks and changed only the length of the input (Chroma). Performance dropped as input grew, and it dropped unevenly, model by model and task by task.

The test closest to a real chat used LongMemEval, a benchmark of questions about long conversations. Each model answered the same questions twice: once with a focused prompt of about 300 tokens holding only the relevant parts, and once with the full history of about 113,000 tokens. Every model did much better on the focused version. The answer was in both prompts. Only the clutter around it changed.

Two other findings matter if you work in long chats:

How do you know it's happening?

You notice the chat getting worse at things it did well an hour ago:

Anthropic's own Claude Code guide describes the same thing: when the context window fills up, Claude "can no longer see the oldest parts of the conversation clearly and quality drops" (Claude help). You don't need to hit a length error for this to start. That error is the end of the slide, not the beginning.

Does a bigger context window fix it?

No. A bigger window lets you fit more in before a hard stop, but it doesn't stop the model losing focus on the way. Anthropic says it's likely that "context windows of all sizes will be subject to context pollution and information relevance concerns" for the foreseeable future. Claude's newest chat models already have 1M-token windows on paid plans (Claude help), and the advice still applies.

Automatic summarizing helps with the hard stop, and it has its own cost. Anthropic warns that compaction that's too aggressive "can result in the loss of subtle but critical context whose importance only becomes apparent later." A summary keeps the gist. Rot is about the details.

How do I stop context rot?

Keep the window small and the signal high. Anthropic's version is to find "the smallest possible set of high-signal tokens" for the task. In practice:

  1. One chat per task. When the topic changes, start a new chat. In Claude Code, Anthropic calls /clear "the single most effective lever for both quality and cost."
  2. Carry a short note, not the transcript. End a long chat by asking for the decisions, open questions and next step, and start the next chat from that. Anthropic calls this structured note-taking: notes written outside the context window and pulled back in when needed.
  3. Keep reference material out of the chat. Put documents in a project's files, where the model can pull in the relevant parts instead of carrying all of them in the chat.
  4. Clear out the dead weight. Old tool results, abandoned drafts and connectors you aren't using all take room. Anthropic calls clearing old tool results one of the safest forms of compaction.
  5. Keep standing instructions short. Every line of custom or project instructions is in every message.

We learned the last one the hard way in Claude Code. We had auto memory on, then turned it off: it applied stale decisions to current work, nothing in it decayed, and it bloated context. Our CLAUDE.md is now about 150 lines and works as a router that points to task files, with a nested one per folder, so each session loads only what its task needs. Claude Code memory has the details.

Keep the context outside the window

The fixes above all come down to one move: the important context lives somewhere other than the chat, and each chat loads only what it needs. Tokenrip is our product: a shared workspace that Claude, ChatGPT, Grok and other agents connect to. Decisions, notes and files sit in the workspace, so a fresh chat starts small and still knows where the work stands.

The Free plan is $0 with no credit card: unlimited workspaces and agents and 2,500 agent actions a month.

Related reading:

Questions

Is context rot the same as hallucination?

No. Context rot is accuracy falling as the input grows, so a model misses or misreads something that is in its context. Hallucination is a model stating something nothing supports. A long, cluttered chat can make both more likely, but they're different problems.

Does a thinking or reasoning mode reduce context rot?

It helps but doesn't remove it. In Chroma's tests, turning thinking on improved results on both short and long inputs, but the gap between the focused and the full input remained.

Do some models rot less than others?

Yes, but none are immune. Anthropic says some models degrade more gently than others and that the effect shows up across all models, and Chroma found the drop was uneven from one model to the next.

Already running more than one agent? Connect them to one workspace →