TRANSMISSION // 2611.39334v1
AI Agents Forget Details When Their Context Shrinks. Searchable Records May Help
Source published
A study of coding-agent sessions finds that compaction summaries often preserve the current state but lose exact details. Searching the full record improved recall in tests, though broader task benefits remain unproven.

When an AI coding agent compresses its conversation to make room for more work, what happens to the details it leaves out? A preprint tests whether agents can recover those details by searching a complete record of past sessions.
Long-running AI agents often compress their conversation when it grows too large. This process, called compaction, leaves the model with a shorter summary and space to continue. Earlier benchmark research found that agents could sometimes keep performing tasks with compact contexts. But completing a task is different from answering questions about what happened earlier: a summary may preserve the current state while dropping a command, error message or number.
In You Don’t Need Long Context, You Need the Record, Adarsh Srivastava asks whether agents can recover such missing details from a searchable record. The study compares compaction summaries with access to full session transcripts, using a retrieval system called CtrlB Recall as well as plain transcript files searched with grep.
Testing recall from real coding sessions
The researchers collected session records from four engineers who used Claude Code or Codex over six weeks. The records included 72 real compaction points, all from Claude Code sessions. The team created questions about earlier work: some required exact details, such as a path, command or error line; others asked for a gist, such as a decision or result. Agents were tested with different combinations of summaries, searchable records and memory tools. In many tests, a short standing instruction told the agent to search the record before answering historical questions.
The study also tested questions about earlier sessions by the team, and whether agents could make a plan to resume work after compaction. These tests measure recall and planning—not whether an agent can successfully complete a long coding task.
Summaries preserved the gist more than the details
Across the 309 questions in the detail-recall set, the post-compaction context contained just 6% of exact answers, but 40% of gist answers. It retained current-state information more often than commands, error lines and numbers. When agents had only the post-compaction context, their scores on detail questions ranged from 22% to 35% across the tested models.
Searchable records made a substantial difference in these experiments. With CtrlB Recall and an instruction to search, the four models scored 81%–94% on detail questions. On a separate set of 50 questions, one model scored 56% when given the conversation since the previous compaction, compared with 90% when it could search the record. A searchable transcript also let agents answer some questions about the team’s earlier sessions—questions no single-session summary could address.
Keeping a record was not enough by itself. Without a clear instruction to search, agents often relied on what was already in their summary and skipped retrieval, particularly on questions where the summary offered a plausible but incomplete answer. The study also found that plain transcript files could work well: grep scores ranged from 77% to 94% in reported comparisons, though CtrlB Recall did better on gist questions for three of the four models. In a synthetic test using records scaled to 100 times their original size, completed grep searches took minutes, while CtrlB searches remained near one second. That is a constructed scaling test, not a measurement of routine use at that scale.
What the results do—and don’t—show
The paper also tested removing the compaction summary while keeping a searchable record. In the configurations tested, observed recall was similar, and answering costs were lower. But the authors caution that the results do not establish that summaries are unnecessary in general: some statistical intervals allow meaningful declines, and resumption plans sometimes benefited from orientation notes. The planning tests were small and did not run the proposed coding tasks to completion.
The evidence has important limits. The sample comes from four engineers at one company, spans six weeks, and includes proprietary session data that the paper says cannot be released. Each question was run once, some answers were judged by AI models rather than people, and the study examines recall at individual compaction points—not how losses build over many compactions. It does not test whether searchable records improve completed long-horizon tasks.
The paper is a preprint, so its findings should be treated as preliminary. The author works for the company that builds CtrlB Recall. The study reports that a plain-file search backend returned identical rows on replayed calls, but broader comparisons across teams, tools and real task outcomes are still needed. The central result is narrower but useful: in these tests, access to a complete record—and a prompt to search it—helped agents answer questions that their compressed context could not.
- AI agents
- context compaction
- agent memory
- information retrieval
- coding agents
- large language models
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
When AI Agents Summarize, Their Rules Can Disappear
Supporting evidence: Both studies report information omitted during compaction: Srivastava found that post-compaction contexts in four engineers’ sessions retained few exact answers, while Salle et al. found that summaries dropped constraints in ProgramBench and real user-agent sessions. Together they support the bounded point that compaction can lose details needed later; the studies use different settings and measure different kinds of information, so their rates are not directly comparable.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.39334v1 — Original paper
Excerpt reference:
static/papers/2611.39334v1.md:25-43
Basis: Paper text
Source file SHA-256:ce99168107cfd11e21f22260eec6e98e7b08ffd6f7d0f4905ea765f961520e1a2610.31778v2 — Original paper
Excerpt reference:
static/papers/2610.31778v2.md:15-71
Basis: Paper text
Source file SHA-256:9eb347a9f5e74a1280e03e29adda1c1b655acec7e161c7ab67c65d5b2428c9872610.31778v2 — Original paper
Excerpt reference:
static/papers/2610.31778v2.md:653-697
Basis: Paper text
Source file SHA-256:9eb347a9f5e74a1280e03e29adda1c1b655acec7e161c7ab67c65d5b2428c987
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Teaching AI Agents What to Keep in a Summary
Source published
Shared keywords: agent memory, ai agents, context compaction
When AI Agents Summarize, Their Rules Can Disappear
Source published
Shared keywords: agent memory, ai agents, context compaction
SumOne Trains a Small Model to Condense AI Agent Histories
Source published
Shared keywords: agent memory, ai agents
MemForest aims to make AI memory updates faster
Source published
Shared keywords: ai agents, information retrieval, large language models
When should AI agents expand memory searches?
Source published
Shared keywords: information retrieval, large language models