What Is Context Rot? Why AI Gets Worse in Long Chats

By
Jan Meinecke
・
・
8
Min
What Is Context Rot? Why AI Gets Worse in Long Chats

By
jan Meinecke
8
Min
Context rot is the drop in an AI model’s accuracy as the amount of text it has to read grows. The longer the conversation, and the more files, tool results and old drafts it has piled up, the more likely the model is to miss a detail, mix up two versions of something or confidently give the wrong answer. If you’ve ever had ChatGPT or Claude ignore an instruction it followed perfectly an hour earlier, you’ve seen it. This guide explains what context rot is, what the research behind the term actually found, why it happens, and the habits that prevent it in everyday work.
What is context rot?
The term took hold after a July 2025 report by Chroma, the company behind the open-source vector database of the same name. Its researchers tested 18 models, including GPT-4.1, Claude 4 and Gemini 2.5, on deliberately simple tasks and changed only one thing: How much text the model had to read. Their conclusion was that “model performance degrades as input length increases, often in surprising and non-uniform ways.”
That matters because the headline numbers suggest otherwise. Models now advertise context windows of a million tokens or more, and they score close to perfectly on the standard long-context test, which hides one sentence in a long document and asks the model to find it. Chroma’s point was that this test mostly checks for word-for-word matches. Real work asks the model to find what’s relevant, ignore what isn’t and reason across both, and that gets harder with every extra page it has to hold.
Anthropic, which builds Claude, now cites the research in its own guidance on context engineering. “While some models exhibit more gentle degradation than others,” it writes, “this characteristic emerges across all models.” Context rot is a property of how today’s models work, then, so it shows up in every tool built on them.
What the research found
Chroma ran several experiments, each one kept simple on purpose so that the only thing changing was the length of the input. Five findings are worth knowing, because each one maps onto something you’ll recognise from real work.
Longer inputs mean worse answers, even on easy tasks. Across every experiment, accuracy fell as the input grew. That held even when the task was simply to copy out a list of repeated words.
Vague questions degrade faster. When the question and the answer were less closely related in meaning, so the model had to make a looser connection, performance dropped off more quickly as the text got longer.
Similar but wrong information misleads. Adding “distractors”, passages close to the right answer without being it, hurt accuracy, and the effect grew with length. The models also failed differently. Claude models were the most likely to say no answer could be found, while GPT models showed the highest rates of confident, incorrect answers.
Neatly organised text made things worse. Surprisingly, models did better when the background text was shuffled into random sentences than when it flowed logically. The researchers suggest the structure of the input may affect how the model spreads its attention.
Irrelevant history costs accuracy. In a test built on real chat histories, models answered well when given only the relevant parts of the conversation, then got consistently worse when given the full history of around 113,000 tokens.

The report ends with the line that matters most for anyone using these tools at work: “Whether relevant information is present in a model’s context is not all that matters; what matters more is how that information is presented.”
Why context rot happens
The short answer is attention. Anthropic describes models as having an “attention budget” that they draw on when reading. Under the hood, every token in the context is compared with every other token, which, in Anthropic’s words, “results in n² pairwise relationships for n tokens.” Double the length of the conversation and the number of relationships the model has to keep track of roughly quadruples, so its focus gets spread thinner with every page you add.
There’s a training effect too. Models learn their attention patterns from data in which shorter texts are far more common than very long ones, so they have less practice at connecting a detail on page one with a question on page eighty. Anthropic’s conclusion is that context “must be treated as a finite resource with diminishing marginal returns.”
That’s why a bigger context window doesn’t solve the problem. The window sets how much a model can take in, while context rot is about how well it uses what’s there.
What context rot looks like at work
You’ll rarely see an error message. Context rot shows up as quality quietly slipping, usually in one of these ways.
What you notice | What’s probably happening | What to do |
|---|---|---|
It ignores an instruction it followed earlier | The instruction is buried far back in a long session | Put standing instructions in project instructions or a skill, and start a fresh session |
It mixes up old and new versions | Last month’s file and this month’s are both in context | Remove outdated files so only the current version is there |
It confidently gives a wrong figure | A similar but wrong passage is acting as a distractor | Cut near-duplicates and ask it to quote its source |
It repeats work it has already done | The record of that work is lost in the history | Ask for a summary of progress, then continue from the summary |
Answers drift away from the question | The task is competing with unrelated earlier topics | Keep one task per session |
The mixed-versions problem is the one I’d watch most closely. Chroma’s distractor results are a fair description of what happens when a project holds last year’s price list next to this year’s, or three drafts of the same proposal: The model finds something that looks right and runs with it.
Is context rot still a thing?
Yes. Model makers keep improving how their models handle long inputs, and some degrade more gently than others, but Anthropic’s view is that the effect shows up across all of them. Million-token windows haven’t changed the underlying maths of attention. A long, cluttered conversation is still more likely to go wrong than a short, focused one, which is why the tools themselves increasingly manage context for you. Claude Code, for example, compacts a long session into a structured summary as it approaches the limit, and lets you run that summary yourself with a note on what to keep.
How to prevent context rot
Preventing context rot is the practical side of context engineering: Giving the model what the task needs and keeping everything else out. These are the habits that do most of the work.
Start a fresh session for each new task. It’s the simplest fix there is. A new job doesn’t need the history of the last one.
Keep projects lean. Give a project only the files the work needs, and archive old versions, so the model can’t confuse them with the current ones.
Move standing instructions out of the chat. Instructions typed at the top of a long conversation get buried. In project instructions or a skill, they’re loaded fresh every time.
Summarise before you continue. When a long task has to carry on, ask for a summary of decisions and progress, then start a new session from that summary.
Fetch information when it’s needed. Connectors let the agent pull the current record at the moment it needs it, so you don’t have to paste everything in up front.
Split big reading jobs. In Claude Cowork, sub-agents can read large batches of documents in their own separate context and report back a short summary, so your main conversation stays clean.
If you’d like these habits built in, a context engineering skill can check the brief, pick the few files a task needs and suggest a fresh session before any work starts. Our context engineering examples show the same habits applied to seven real tasks.
The skills, prompts and project setups we use at 9x are free in the 9x community, along with the live workshops where we build them. Join, and use them to keep your next long task focused from start to finish.
Common questions
What is context rot in simple terms? It’s the drop in an AI model’s accuracy as the amount of text it has to read grows. The more files, history and tool results pile up in a conversation, the more likely the model is to miss a detail or give a wrong answer.
Who coined the term context rot? It was popularised by a July 2025 research report from Chroma, which tested 18 models including GPT-4.1, Claude 4 and Gemini 2.5. Anthropic and others now use the term in their guidance on building with AI.
Does a bigger context window fix context rot? No. The context window sets how much a model can read, while context rot is about how well it uses what it reads. A model with a huge window still gets less reliable as that window fills with irrelevant material.
Does context rot affect ChatGPT and Claude? Yes. Chroma’s tests included models from OpenAI, Anthropic, Google and Alibaba, and every one lost accuracy as inputs grew, though some degraded more gently than others. It applies to any tool built on these models.
How do you prevent context rot? Start a fresh session for each task, keep projects to the files the work needs, remove outdated versions, keep standing instructions in project instructions or skills, and summarise long tasks before continuing. For big reading jobs, use sub-agents so the main conversation stays short.
FREE LIVE SESSIONS
What’s the best way to learn AI?
With 9x Live! Join a free session and learn the skills that’ll get you ahead of the 99%.
What to do next
1
Start learning free
Take our AI starter course and apply the latest technologies to your first use case. Completely free. Get started today.
2
Learn it live
Join a free weekly 9x Live session, watch work get automated in real time, and get your questions answered by leading educators. Sign up for the next session.
3
Watch our videos on YouTube
With one of the fastest growing channels in the industry, hundreds of thousands of people watch our tutorials every week. Subscribe here so you never miss a video.

ChatGPT
Context rot is the drop in an AI model’s accuracy as the amount of text it has to read grows. The longer the conversation, and the more files, tool results and old drafts it has piled up, the more likely the model is to miss a detail, mix up two versions of something or confidently give the wrong answer. If you’ve ever had ChatGPT or Claude ignore an instruction it followed perfectly an hour earlier, you’ve seen it. This guide explains what context rot is, what the research behind the term actually found, why it happens, and the habits that prevent it in everyday work.
What is context rot?
The term took hold after a July 2025 report by Chroma, the company behind the open-source vector database of the same name. Its researchers tested 18 models, including GPT-4.1, Claude 4 and Gemini 2.5, on deliberately simple tasks and changed only one thing: How much text the model had to read. Their conclusion was that “model performance degrades as input length increases, often in surprising and non-uniform ways.”
That matters because the headline numbers suggest otherwise. Models now advertise context windows of a million tokens or more, and they score close to perfectly on the standard long-context test, which hides one sentence in a long document and asks the model to find it. Chroma’s point was that this test mostly checks for word-for-word matches. Real work asks the model to find what’s relevant, ignore what isn’t and reason across both, and that gets harder with every extra page it has to hold.
Anthropic, which builds Claude, now cites the research in its own guidance on context engineering. “While some models exhibit more gentle degradation than others,” it writes, “this characteristic emerges across all models.” Context rot is a property of how today’s models work, then, so it shows up in every tool built on them.
What the research found
Chroma ran several experiments, each one kept simple on purpose so that the only thing changing was the length of the input. Five findings are worth knowing, because each one maps onto something you’ll recognise from real work.
Longer inputs mean worse answers, even on easy tasks. Across every experiment, accuracy fell as the input grew. That held even when the task was simply to copy out a list of repeated words.
Vague questions degrade faster. When the question and the answer were less closely related in meaning, so the model had to make a looser connection, performance dropped off more quickly as the text got longer.
Similar but wrong information misleads. Adding “distractors”, passages close to the right answer without being it, hurt accuracy, and the effect grew with length. The models also failed differently. Claude models were the most likely to say no answer could be found, while GPT models showed the highest rates of confident, incorrect answers.
Neatly organised text made things worse. Surprisingly, models did better when the background text was shuffled into random sentences than when it flowed logically. The researchers suggest the structure of the input may affect how the model spreads its attention.
Irrelevant history costs accuracy. In a test built on real chat histories, models answered well when given only the relevant parts of the conversation, then got consistently worse when given the full history of around 113,000 tokens.

The report ends with the line that matters most for anyone using these tools at work: “Whether relevant information is present in a model’s context is not all that matters; what matters more is how that information is presented.”
Why context rot happens
The short answer is attention. Anthropic describes models as having an “attention budget” that they draw on when reading. Under the hood, every token in the context is compared with every other token, which, in Anthropic’s words, “results in n² pairwise relationships for n tokens.” Double the length of the conversation and the number of relationships the model has to keep track of roughly quadruples, so its focus gets spread thinner with every page you add.
There’s a training effect too. Models learn their attention patterns from data in which shorter texts are far more common than very long ones, so they have less practice at connecting a detail on page one with a question on page eighty. Anthropic’s conclusion is that context “must be treated as a finite resource with diminishing marginal returns.”
That’s why a bigger context window doesn’t solve the problem. The window sets how much a model can take in, while context rot is about how well it uses what’s there.
What context rot looks like at work
You’ll rarely see an error message. Context rot shows up as quality quietly slipping, usually in one of these ways.
What you notice | What’s probably happening | What to do |
|---|---|---|
It ignores an instruction it followed earlier | The instruction is buried far back in a long session | Put standing instructions in project instructions or a skill, and start a fresh session |
It mixes up old and new versions | Last month’s file and this month’s are both in context | Remove outdated files so only the current version is there |
It confidently gives a wrong figure | A similar but wrong passage is acting as a distractor | Cut near-duplicates and ask it to quote its source |
It repeats work it has already done | The record of that work is lost in the history | Ask for a summary of progress, then continue from the summary |
Answers drift away from the question | The task is competing with unrelated earlier topics | Keep one task per session |
The mixed-versions problem is the one I’d watch most closely. Chroma’s distractor results are a fair description of what happens when a project holds last year’s price list next to this year’s, or three drafts of the same proposal: The model finds something that looks right and runs with it.
Is context rot still a thing?
Yes. Model makers keep improving how their models handle long inputs, and some degrade more gently than others, but Anthropic’s view is that the effect shows up across all of them. Million-token windows haven’t changed the underlying maths of attention. A long, cluttered conversation is still more likely to go wrong than a short, focused one, which is why the tools themselves increasingly manage context for you. Claude Code, for example, compacts a long session into a structured summary as it approaches the limit, and lets you run that summary yourself with a note on what to keep.
How to prevent context rot
Preventing context rot is the practical side of context engineering: Giving the model what the task needs and keeping everything else out. These are the habits that do most of the work.
Start a fresh session for each new task. It’s the simplest fix there is. A new job doesn’t need the history of the last one.
Keep projects lean. Give a project only the files the work needs, and archive old versions, so the model can’t confuse them with the current ones.
Move standing instructions out of the chat. Instructions typed at the top of a long conversation get buried. In project instructions or a skill, they’re loaded fresh every time.
Summarise before you continue. When a long task has to carry on, ask for a summary of decisions and progress, then start a new session from that summary.
Fetch information when it’s needed. Connectors let the agent pull the current record at the moment it needs it, so you don’t have to paste everything in up front.
Split big reading jobs. In Claude Cowork, sub-agents can read large batches of documents in their own separate context and report back a short summary, so your main conversation stays clean.
If you’d like these habits built in, a context engineering skill can check the brief, pick the few files a task needs and suggest a fresh session before any work starts. Our context engineering examples show the same habits applied to seven real tasks.
The skills, prompts and project setups we use at 9x are free in the 9x community, along with the live workshops where we build them. Join, and use them to keep your next long task focused from start to finish.
Common questions
What is context rot in simple terms? It’s the drop in an AI model’s accuracy as the amount of text it has to read grows. The more files, history and tool results pile up in a conversation, the more likely the model is to miss a detail or give a wrong answer.
Who coined the term context rot? It was popularised by a July 2025 research report from Chroma, which tested 18 models including GPT-4.1, Claude 4 and Gemini 2.5. Anthropic and others now use the term in their guidance on building with AI.
Does a bigger context window fix context rot? No. The context window sets how much a model can read, while context rot is about how well it uses what it reads. A model with a huge window still gets less reliable as that window fills with irrelevant material.
Does context rot affect ChatGPT and Claude? Yes. Chroma’s tests included models from OpenAI, Anthropic, Google and Alibaba, and every one lost accuracy as inputs grew, though some degraded more gently than others. It applies to any tool built on these models.
How do you prevent context rot? Start a fresh session for each task, keep projects to the files the work needs, remove outdated versions, keep standing instructions in project instructions or skills, and summarise long tasks before continuing. For big reading jobs, use sub-agents so the main conversation stays short.
FREE LIVE SESSIONS
What’s the best way to learn AI?
With 9x Live! Join a free session and learn the skills that’ll get you ahead of the 99%.
What to do next
1
Start learning free
Take our AI starter course and apply the latest technologies to your first use case. Completely free. Get started today.
2
Learn it live
Join a free weekly 9x Live session, watch work get automated in real time, and get your questions answered by leading educators. Sign up for the next session.
3
Watch our videos on YouTube
With one of the fastest growing channels in the industry, hundreds of thousands of people watch our tutorials every week. Subscribe here so you never miss a video.

ChatGPT
read next
ChatGPT Work Course: Free 3-Hour Training for Beginners
A free 3-hour ChatGPT Work course for beginners: Setup, plugins, skills, context engineering and four real builds. Full curriculum, timestamps and free files.
How to Brief ChatGPT Work (With a Prompt Template)
How to brief ChatGPT Work so it gets the job right first time: The goal, context, output and boundaries, a copy-and-paste template, and three worked examples.
read next
Your new home for learning AI.
Weekly live workshops, on-demand courses, and plug-and-play downloadables. Get started for free today.
Your new home for learning AI.
Weekly live workshops, on-demand courses, and plug-and-play downloadables. Get started for free today.
Your new home for learning AI.
Weekly live workshops, on-demand courses, and plug-and-play downloadables. Get started for free today.

