OpenRouter tests long-session context rot and offers a compression solution
Understand this story
OpenRouter ran the same long coding agent session on five 1M-context models to test context rot in long sessions. OpenRouter says single-fact retrieval stays 100% correct up to about 900K tokens, but on the three failed test questions in the statistical session, accuracy dropped from 67% at about 20K tokens to 27% at about 600K. OpenRouter's tested chunked compression approach (scaledown/summarize, priced at $0.04 per million input tokens) raised accuracy on a 2M-character session from 49/60 to 54/60; a single 2M-character session requires 124 to 128 calls. The approach only takes effect when the prompt exceeds the window, so it cannot fix context rot within the window. OpenRouter says there were only three sessions per model per length, a small sample, so results should be treated as directional rather than precise ratios.
AI overview based on source reports · Updated 41 min ago
Coverage timeline
Follow the coverage to explore different perspectives.
- OpenRouter AnnouncementsFeaturedContext Rot: Why Your AI Agent Gets Worse in Long Sessions
Tests on five 1M-context models found that single-fact recall stayed at 100% up to about 900K tokens, but counting three failed test runs across a session fell from 67% correct at about 20K tokens to 27% at about 600K. Truncating old turns cut accuracy at 2M characters from 49/60 to 9/60, while chunked compaction with scaledown/summarize raised it to 54/60 and cut average prompt tokens from 605K to 112K and cost per request from $0.224 to $0.041.
Activity for this story
Not enough continuous observations to show a trend yet.