Skip to content

Does summarizing old context lose details? We measured it

On Gemma 4 31B, with histories of about 1.2 million tokens, our own note-rewriting loop got 17 of 60 and the engine got 38 of 60. Most of the loop's misses were answers saying the detail wasn't in its notes (29 of 43). The engine version is not recorded in the public rows.

Neil Luo ·

A record from October 2026. We don't update this post, so its numbers are the ones from then. The newest results are in the 12-hour head-to-head.

Update, November 2026: the LongMemEval_M numbers in this post are from October 2026, on older engine builds, and we have not rerun them. The note-rewriting loop is ours, not an agent SDK.

When an agent's context fills up, the usual fix is to have the model summarize the old part and carry on. We built that loop and ran it against the engine on very long histories to see what the summaries lose.

The test

Same 60 LongMemEval_M questions as our truncation test: histories of about 1.2 million tokens, Gemma 4 31B as agent and judge. The summarizing loop reads the sessions in order. Whenever its notes plus unsummarized sessions pass 100,000 tokens, the model rewrites its notes from everything except the newest quarter of the window. The prompt told it to keep dates, numbers, names, purchases, plans, preferences and corrections. It never sees the question while compacting.

What happened

  • In one Gemma run on 60 questions, the summarizing loop got 17 right. A loop that just truncates got 5 in each of its two runs, so summarizing beat truncation in this setup.
  • The engine got 38 of 60, in two runs. (The engine version is not recorded in the public rows.) In the first run it was right on 28 questions the summarizer missed (27 in the second run), and the summarizer was right on 7 the engine missed (6 in the second).
  • Of the summarizer's 43 misses, 29 say the detail isn't in the notes ("not mentioned", "no record"). By the time it reached the end it had rewritten its notes about 15 times, and the specific numbers and dates were what disappeared.
  • By type, the summarizer scored 3 of 19 on multi-session questions against the engine's 13, and 3 of 20 on temporal against 8.

What it cost

The summarizing loop read about 1.13 million prompt tokens per question over 16 model calls, and wrote about 47,000 output tokens. The engine read about 10,000 to 12,600 tokens.

What this doesn't show

  • 60 questions, one free model, and a summarizer prompt we wrote ourselves. A different prompt or a larger notes budget might do better.
  • On Claude Haiku 5.5 we ran Anthropic's server-side compaction on 40 LongMemEval_M questions, with its default prompt and a 40,000 token trigger. It got 2 of 40 against the engine's 21. Our harness compacted whenever history passed 40,000 estimated tokens, about 29 times a question. That is below the 150,000 default of Anthropic's threshold mode (our 40,000 estimate was about 58,000 real tokens, just over its 50,000 minimum), and we used the default prompt untuned, so it is not a best-effort setup. Our own summarizer and Anthropic's ran with different models and settings, so the two numbers say nothing about each other.
  • Dollar figures are estimates from token counts, not an invoice.

Every number, the by-type breakdown and the method are on the study page.

To see your own prompt grow before you pick a fix, try the long-session guide.

Sources and method: Ten times the history, still 38 of 60.

More posts.

  1. Updated

    Argentic vs Mem0: a Mem0 alternative for agents that run for hours?

    Mem0 is a memory layer your code calls with add and search. Argentic is an engine that runs the loop and keeps the agent accurate for hours and days. What each does, where Mem0 is the better pick, whether to use both, and a one-week test.

  2. Updated

    Argentic vs Zep: a Zep alternative for agents that run for hours?

    Zep is a context layer that builds a graph of facts your code fetches from. Argentic is an engine that runs the loop and keeps the agent accurate for hours and days. What each does, where Zep is the better pick, whether to use both, and a one-week test.

  3. Updated

    Migrating from Letta: why not a graph memory library, and what to use instead

    What Letta's repository and docs now say, why a graph memory library is the wrong move for a long-running agent, a dated run of Argentic beside Letta, and how a Letta agent, memory and tools map to Argentic.

  4. Updated

    How to run a LangChain agent for hours without it forgetting older facts

    Keep your LangChain or LangGraph tools and let Argentic run the loop: a ready-made engine, no memory layer of your own to build, and a record you can read. The code is checked against the npm client, with what carries over, what does not, what Python gets and where Argentic is the wrong pick.

  5. Updated

    Agent memory without compaction: Memvid, Empecta, Letta, Deep Agents and Argentic compared

    Which tools keep an agent's memory without summarizing it: Memvid and Empecta Agent Memory as stores your code calls, Letta, LangChain Deep Agents and Argentic as engines that run the loop, what each does when a fact changes, read from each project's own docs, with where Argentic is the worse pick.

  6. Updated

    Compaction or full history for a long-running agent? A benchmark over 12 hours and 5 days, with accuracy and cost

    What a long-running agent scores and costs when it has to cut its history by compaction or summarization and when it runs on Argentic: Argentic beside Letta over 12 hours, Argentic's own run over 5 working days, and the rows where Argentic lost. The results for LangChain Deep Agents and the Claude Agent SDK are withdrawn, so there is no standing number for keeping the whole history.

  7. Updated

    My agent forgets details after compaction or summarization: what each stack does, and what to do

    What the Claude Agent SDK, Deep Agents, LangChain's summarization middleware and the OpenAI Agents SDK do when the context window fills, why a detail goes missing, five fixes that work inside any of them, where our own results stand, and when to change who runs the loop.

  8. Updated

    Claude Agent SDK compaction loses context: what survives, what to move out, and when it is not enough

    What the Claude Agent SDK's docs say automatic compaction keeps and drops, five fixes in order (CLAUDE.md, summary instructions, a PreCompact archive, logging the boundary, subagents), how to tell compaction is the cause, and where our own results stand.

  9. Updated

    LangChain Deep Agents summarization forgets details: what it keeps and where the rest goes

    How Deep Agents handles a full window in layers (offloading large tool results, truncating older calls, then a model-written summary with the originals saved to a file), why a detail can still go missing, three fixes inside Deep Agents, and where our own results stand.

  10. Updated

    Why does my long-running agent cost more every turn? Token cost, and five fixes

    Why a long-running agent's bill grows faster than its run, five ways to bring it down (prompt caching, offloading large tool results, subagents, a spend cap, an engine that manages the context) with where each one stops helping, and what a long run cost when we measured it.

  11. Updated

    My LangChain agent is losing the plot on long tasks: forgets its goal, loops, contradicts itself

    Seven ways a LangChain agent loses the plot on a long task, each with its usual cause, the cheapest fix and when the answer is a tracing, evaluation or memory tool instead, then what a long run cost when we measured it.

  12. Updated

    LangChain alternatives for long-running agents: Pydantic AI, LangGraph, Letta, Mem0 and more, by the problem you have

    What it costs to keep a LangChain agent right over a long run, then what to switch to when it gets worse over hours: Pydantic AI, the OpenAI Agents SDK, LangGraph, Mastra and LlamaIndex as loops, Mem0, Zep, Cognee, Supermemory, Hindsight and Letta as memory, and Argentic, each read from its own docs.

  13. Updated

    How to fix context rot in a LangChain agent

    Confirm it is the prompt, find what the agent forgot with a five-fact test, fix what you can inside LangChain, and change who runs the loop when that is not enough.

  14. Updated

    Best tools for long-running AI agents in 2026, sorted by the job each does

    Argentic, Letta, LangGraph, Hindsight, Mem0, Zep and the agent SDKs sorted by whether they run the loop, build the graph, add memory or trim history, with each read from its own docs and Argentic measured beside Letta on a 12-hour shift.

  15. Updated

    Hindsight alternatives for long-running agents, by why you are leaving

    Mem0, Zep and Graphiti, Letta, LangGraph and Argentic next to Hindsight, matched to the four reasons teams look elsewhere, read from each tool's own docs and pricing page, with where Hindsight stays the better pick.

  16. Updated

    Argentic vs Hindsight: which should a team with a long-running agent use?

    Hindsight is an open-source memory system your code calls, and it helps recall. Argentic is an engine that runs the loop and keeps the agent accurate for hours and days. What each does, where Hindsight is the better pick, whether to use both, and a one-week test.

  17. Updated

    Should you combine memory tools for a long-running agent?

    Four jobs keep an agent right over hours: the record, the state, search and building each prompt. Why a stack of four tools usually costs more than it gives, what one engine covers, and when combining is the right call.

  18. Updated

    What to buy when your agent gets less accurate after hours: a memory tool or an engine?

    A memory tool helps recall, but an agent that runs for hours still drifts and its prompt keeps growing. Which kind of product fixes which problem, what each costs, and when Argentic is the wrong call.

  19. Updated

    My LangGraph agent gets worse after hours: what should I use?

    Why a LangGraph agent loses accuracy as a run grows, four things to change (three keep LangGraph), how to tell which problem you have, and when moving off LangGraph is the wrong call.

  20. Updated

    How to stop an agent's context degrading over a 12-hour run

    Keep a record of the run outside the model. The seven parts to build, a test that plants facts at hour one and asks at hour eleven, and when to buy instead.

  21. Updated

    Context degradation (context rot) in AI agents: what it is, what causes it and how to stop it

    Context degradation, often called context rot, is an agent getting less accurate as a run gets long. The six causes, what each fix gives up, a test you can run on your own agent, and what we have and have not measured.

  22. What happens to a long-running LangChain agent after hour 6 (measured on three stacks)

    One simulated 12-hour shift with every model call logged: when LangChain's, Letta's and Argentic's prompts crossed 100K tokens, what each spent, where it stopped and what it scored. Argentic did not win on score. The results for LangChain Deep Agents and the Claude Agent SDK are withdrawn.

  23. Context degradation: what rewriting an agent's history costs over hours

    Summarizing, compacting and truncating an agent's history all lose facts it once had. What that looks like, what our 12-hour benchmark did and did not show about it, and a test you can run on your own agent.

  24. Updated

    My agent gets worse as the run gets long: what Lossless Claw, Hindsight, Mem0, Letta and Argentic each do about it

    What Lossless Claw is, and how it, Hindsight, Mem0, Letta, Zep, LangGraph, the OpenAI Agents SDK's compaction and Argentic each handle a long-horizon agent whose window fills up. Read from their docs, with where each is ahead of us.

  25. LangChain Deep Agents or Argentic: what each does when a run outgrows the window

    Deep Agents offloads big tool results to files and summarizes old history. Argentic keeps a record of the whole run. How they differ, where Deep Agents is ahead of us, and what we have and haven't measured.

  26. Does a growing transcript hurt a long agent run? Our early test, and the part we retracted

    An early September test of Argentic's context handling against a growing transcript. The study reports it found more in all three cells, by less than we first claimed, and the claim that a growing context makes an agent worse did not survive our own re-test.

  27. Why an agent juggling many tasks loses track of what's done, pending and blocked

    Six reasons one agent working through many tasks reopens finished ones, forgets blocked ones and reports done too early, what fixes each, and the one underneath. We have no orchestration benchmark yet, and the post says so.

  28. Why an agent's own memory skips things

    Six reasons notes an agent writes for itself leave out the one detail that mattered, what to do about each, and the one underneath. On our shop shift, stock answers were exact on 22 of 28 with the engine keeping the counts and 4 of 28 with the model writing them (Claude Haiku 5.5, engine 0.51.0, 2 November, one run each).

  29. Why your agent forgets things after compaction

    Six reasons an agent loses details when its context is summarized and restarted, what you can do about each, and the one underneath. Includes our one-run shop-shift numbers and what they don't show.

  30. Why long-running agents lose track of counts

    Six reasons an agent's running totals drift, what to do about each, and the one underneath. On our own 900-event shop shift, stock questions were exact on 22 of 28 with the engine keeping the counts and 4 of 28 with the model writing them (Claude Haiku 5.5, engine 0.51.0, 2 November, one run each). Six answers were still wrong.

  31. Why your agent repeats an action it already took

    Six causes of a repeated refund or email, from a missing stop condition to a record the agent lost, what fixes each, and the one underneath most of them. Our November rerun had no refund applied twice, with a key on the tool in both runs.

  32. Where Argentic fits next to the agent SDKs and the tools around them

    A table-by-table read of the Claude, OpenAI and Amazon agent SDKs, then Mem0, Zep, LangGraph and Letta, from their own docs, with where each is ahead of us.

  33. A plain transcript loop or an engine like ours: when each is the right call

    What the plain loop does well, where it runs out, and what the engine costs you.

  34. Why your agent forgets things from a long history

    On Gemma 4 31B, with histories of about 1.2 million tokens, a loop that keeps only about the newest 100,000 tokens got 5 of 60 right and the engine got 38. What we ran and what it doesn't show. The engine version is not recorded in the public rows.

  35. Checking what your agent was shown on each turn

    Replay re-checks every prompt against what was recorded: 1,754 of 1,754 turns matched. It checks the prompt side only. The engine version is not recorded in the public rows.

  36. Run your first long-running agent with an API key

    Sign in to the Argentic dashboard, make an API key and run an agent that remembers. What you get, what we've measured and what isn't there yet.

  37. Undoing what a bad source caused, from the record alone

    When a source was flagged after the run, the engine undid what it could have caused, using undo functions the host supplies, and finished without it, in 156 of 156 runs: 120 scripted, and 36 live Haiku 5.5 runs, 24 of them with the compromise forced. The live runs were rerun after an engine fix; the first 12 had 2 worlds missing benign effects. The engine version is not recorded in the public rows.

  38. Why we keep a record of the run instead of a transcript

    What keeping a record of the run instead of a transcript changes, in plain terms, and the limits of what we have measured so far.