OpenRouter finds AI can recall facts but lose count in a long-session test
A synthetic coding-agent study separated reliable fact retrieval from weaker session-wide counting. Summarizing older messages helped, but did not eliminate mistakes.
Loading page…
A synthetic coding-agent study separated reliable fact retrieval from weaker session-wide counting. Summarizing older messages helped, but did not eliminate mistakes.
Listen to this story
OpenRouter’s long-session benchmark found that models could still retrieve specific facts while losing track of events spread across a conversation: all scored fact-retrieval answers remained correct through sessions approaching 900,000 tokens, but failed-run counts deteriorated as histories grew. In two-million-character tests, summarizing older context raised counting accuracy to 9 of 15 answers, versus 4 with full history, though GPT-6 Luna’s overall score slipped and summaries cost $0.023 and 88–124 seconds per session. The practical takeaway is to keep counts and other operational state outside the conversation history.
The synthetic coding-agent test used five models, low reasoning effort and three randomized sessions per model at each length; OpenRouter cautioned that the small samples show direction, not precise failure rates.
At two million characters, retaining only the system prompt, first user message and recent history cut total accuracy from 49 of 60 to 9, and one answer invented a ticket number.
Compaction summarized older messages in roughly 16,000-character chunks, preserving the system prompt and last eight messages; ScaleDown Summarize generated the summaries in parallel.
OpenRouter published a study on December 1 showing that AI models with roughly million-token context windows could retrieve specific facts yet struggle to count events across long sessions. In its synthetic coding-agent test, counting accuracy fell as histories grew, exposing a reliability problem before the models ran out of room.
The clearest split concerned three failed test runs planted throughout a session. Across five models and three randomized versions, correct counts dropped from 10 of 15 answers at about 20,000 tokens to six at about 80,000 and four at about 600,000. Questions about a ticket number, a setting’s latest value and an early user rule stayed correct in every scored case, including sessions approaching 900,000 tokens.
OpenRouter ran the experiment on October 22, 2026, using Claude Haiku 5.5, GPT-6 Luna, Gemini 3.8 Flash, DeepSeek V4.1 Flash and MiniMax M3.1 Flash, with reasoning effort set to low. The generated conversations resembled a coding agent’s work: file reads, search results, configuration files and test logs followed a request to fix a flaky refund test and tidy a worker configuration.
Each conversation ended with the same four questions, scored against exact answers. OpenRouter tested five lengths, with three randomized sessions per model at each length, and cautions that the small samples show direction rather than precise failure rates. At the longest length, only three models ran: Claude rejected the oversized request, and Gemini was not tested.
At two million characters, OpenRouter compared the full history with two shorter alternatives. Simply retaining the system prompt, first user message and recent history cut the total score from 49 of 60 correct answers to nine. None of the truncated-history answers recovered the ticket, current setting or failed-run count. One response invented a ticket number that had never appeared.
The other approach, called compaction, replaced older messages with summaries while preserving the system prompt and last eight messages. OpenRouter split the older material into roughly 16,000-character chunks and summarized them in parallel with ScaleDown Summarize. Instructions told the summarizer to retain goals, decisions, files, commands, failures and confirmed facts—and copy identifiers, paths and numbers exactly. The joined summaries went before the recent messages.
Compaction preserved all three fact-based answers and improved counting from four correct answers out of 15 to nine. It was not a universal gain: four models matched or improved their overall scores, while GPT-6 Luna slipped from 10 of 12 to nine. Creating the summaries also carried an upfront cost: $0.023 per session and 88–124 seconds with eight calls running in parallel.
OpenRouter’s practical recommendation goes beyond shortening prompts: keep running counts and lists of edited files in a separate state record, rather than asking the model to reconstruct them from conversation history. Its context-compression plugin addresses a different problem. That tool removes or truncates messages only when a prompt exceeds the model’s window; it does not address declining accuracy inside a history that still fits.
Loading discussion...
Join the conversation
Explain when convenience should give way to control over what gets kept.
Be the first to share a perspective or an experience.
Reader comments
Newest comments first. Replies stay oldest first.