Context Rot
A phenomenon observed during long-running AI agent tasks in which the context window becomes filled with logs, error messages, and intermediate results, causing the model's ability to effectively utilize key information to degrade over time.
Core Facts
Timeline (last 90 days)
Context rot refers to the phenomenon of systematic degradation in large language model output quality as the conversation context keeps growing, because the attention mechanism does not allocate attention evenly and key instructions get diluted.
The context window is a hard constraint of Claude Code; the fuller the window, the more easily the model loses key information, a phenomenon known as context rot.
"Context rot" refers to the phenomenon where many models nominally offer a 1M window but show a marked drop in recall in the middle of the sequence or under extremely long inputs.
The Cognition coding agent team described the phenomenon of 'context rot': models make weaker decisions at longer context lengths.
Engineering strategies for dealing with context forgetting include compressing conversation history via summarization, using external memory storage (such as vector databases Pinecone and Weaviate), and clearing already-read messages.
All Facts (8)
Cascading failure refers to a situation where a single tool call error contaminates subsequent context, causing the model to continue reasoning from an incorrect intermediate state and ultimately derailing the entire task.
65%UnverifiedContext Rot encompasses two distinct failure modes: Distraction (attention dilution) and Poisoning (causal chain contamination)
85%Unverified"Context rot" refers to the phenomenon where many models nominally offer a 1M window but show a marked drop in recall in the middle of the sequence or under extremely long inputs.
60%UnverifiedContext rot refers to the phenomenon of systematic degradation in large language model output quality as the conversation context keeps growing, because the attention mechanism does not allocate attention evenly and key instructions get diluted.
50%UnverifiedThe context window is a hard constraint of Claude Code; the fuller the window, the more easily the model loses key information, a phenomenon known as context rot.
50%UnverifiedThe Cognition coding agent team described the phenomenon of 'context rot': models make weaker decisions at longer context lengths.
50%UnverifiedEngineering strategies for dealing with context forgetting include compressing conversation history via summarization, using external memory storage (such as vector databases Pinecone and Weaviate), and clearing already-read messages.
50%UnverifiedToo much irrelevant information, poor structure, or missing data can lead to worse reasoning and more hallucinations, a phenomenon known as 'Context Rot.'
50%