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](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents)). 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](https://tokenrip.com) 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](https://research.trychroma.com/context-rot)). 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:

- **Look-alikes hurt.** Text that's related to the answer but isn't it, which Chroma calls distractors, cut accuracy even when there was only one, and the damage grew with input length. A long chat is full of these: last week's numbers, the draft before the current one, an option you dropped.
- **Thinking modes help but don't close the gap.** Models with a thinking mode did better on both prompts with it on, but still did worse on the long one.

## How do you know it's happening?

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

- It ignores an instruction you gave near the start.
- It mixes old and new decisions, or brings back an option you ruled out.
- It repeats a suggestion it already made.
- Its answers get vaguer and more hedged.

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](https://support.claude.com/en/articles/14552983-models-usage-and-limits-in-claude-code)). 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](https://support.claude.com/en/articles/8606394-how-large-is-the-context-window-on-paid-claude-plans)), 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](https://tokenrip.com/blog/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.

- A new chat loads the pinned decisions and open tasks, not the whole history.
- Agents pull a file when the task needs it, instead of carrying it in every message.
- When a chat starts to rot, you open a new one without losing anything, because the decisions were saved as you went.

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

Related reading:

- [Context engineering is replacing prompt engineering](https://tokenrip.com/blog/context-engineering)
- [Claude Code memory: how it works, and why we turned auto memory off](https://tokenrip.com/blog/claude-code-memory)
- [Claude hit the maximum length for this conversation](https://tokenrip.com/blog/claude-conversation-length-limit)
- [ChatGPT conversation too long? How long a chat can be on each plan](https://tokenrip.com/blog/chatgpt-conversation-too-long)
