OpenRouter tests context rot across five 1M-context models and offers a compaction fix
Context Rot: Why Your AI Agent Gets Worse in Long Sessions
OpenRouter ran the same synthetic coding-agent session on five 1M-context models and found that single-fact recall stayed at 100% up to about 900K tokens, while counting three failed test runs fell from 67% correct at about 20K tokens to 27% at about 600K. Dropping old turns to shrink the prompt cut accuracy at 2M characters from 49/60 to 9/60, and one run invented a ticket ID that never appeared in the session. Chunked compaction with scaledown/summarize raised accuracy to 54/60, cut the average prompt from 605K to 112K tokens, and lowered average request cost from $0.224 to $0.041.
OpenRouter's own five-model test shows single-fact recall holding to 900K tokens while cross-session counting decays, and offers a chunked compaction recipe with measured cost and accuracy tradeoffs.
Source:OpenRouter Announcements · openrouter.ai