Skip to content
A row of five cream speech-bubble tiles on a dark wooden table, each sitting in its own carved slot. The middle slot is empty and glows warm amber from inside.

Revisit: What Context Is Still "Forever Gone"?

Once a long chat hit its limit, the oldest parts fell off a cliff. Now tools summarize instead, and a side fact I mentioned early still vanished right when it mattered. Who decides what gets carried forward, and how can it know what will matter before we get there?

Today's Focus

Every AI chat has a limit on how much it can hold in its head at once, and that limit is called the "context window". Back in May 2025 I wrote about it in First In, Forever Gone, and the picture in that post was a cliff: once a conversation got too long, the oldest parts just fell off the end. It was a neat story, maybe too neat, and a lot has changed since then, so this is a revisit.

It's hard to hit that wall anymore. When I was testing smaller local models on my very limited graphics card in 2025, they would end up in circular conversations after a few rounds because they couldn't hold more than a few turns. Some of the API models (Claude included) would just stop at the end of their window as a hard stop. Now the windows are massive, the hardware to run them has reached "the masses", and most tools quietly summarize the older parts of a chat, so what used to be a cliff is more of a "pause-to-summarize"... and I think a lot of people don't even picture the cliff anymore.

Even so, I still lose things. Something I said early in a long session, a side fact that wasn't a big deal at the time, comes up missing later. It goes missing right when the conversation finally reaches the part where it matters, and nothing "fell off" anything, it just got summarized away. What I keep wondering is who (or what) decides which details get carried forward, and how it can possibly know what will matter before we get there?

Learning Journey

What happens when a chat fills up

A context window is a hard limit on how much a model can take in at once. OpenAI defines it as "the maximum number of tokens that can be used in a single request" [1]. What happens at that limit is a choice made by the product or the developer, not the model. In APIs the usual default is an error: OpenAI's Responses API fails the request unless truncation is set to "auto" (a parameter OpenAI now marks as deprecated), which drops items from the beginning of the conversation [2], and Anthropic's API errors when the input alone is too long [3]. Summarizing arrived in developer tools first: Claude Code's changelog lists automatic compaction in version 0.2.47 [4], published March 18, 2025 (UTC) [5]. Claude's chat apps followed with Opus 4.5 in November 2025, when Anthropic wrote that "long conversations no longer hit a wall" [6].

The windows have grown too. As documented in October 2026, Anthropic lists 1M tokens for its current models [7], and OpenAI's GPT-6 Astra, Sol and Luna each list a 1,050,000-token window with 128,000 tokens of maximum output [8]. Google lists 1,048,576 input and 65,536 output tokens for Gemini 3.1 Pro (preview) and 3.8 Flash [9]. Gemini 4 Argon shares one 1,048,576-token window between input and output, and in "long decode" mode can generate up to that many output tokens minus whatever the input uses [10]. A 1M window was still new not long ago: Google offered it to a limited group of developers in February 2024 [11], and OpenAI's GPT-4.1 supported up to 1 million tokens in April 2025 [12].

A bigger window is not automatically a clearer one. A 2023 study found accuracy "significantly degrades when models must access relevant information in the middle of long contexts" [13]. That tested older models, so it shows a pattern, not a law. A 2025 vendor report found uneven degradation as input grows [14], and Google's guide says results vary widely with context [15].

Everybody compacts, in one way or another

Compaction replaces older parts of a conversation with a shorter, model-written version, and Anthropic's engineering team describes it as starting a new window with a summary [16]. Others document the same idea:

  • OpenAI compacts on the server once a token threshold is crossed. The result is an encrypted item that "is opaque and not intended to be human-interpretable" [17].
  • Gemini CLI has a /compress command that replaces the whole chat context with a summary, and compresses on its own at a configurable fraction of the window (default 0.5) [18] [19].
  • LangChain summarization middleware keeps recent messages (20 by default) and summarizes older ones, with settings for when to trigger and how much to keep [20].
  • Microsoft's SummarizingChatReducer summarizes older messages, keeps system messages, and excludes function-call and function-result messages from summarization [21].
  • Letta keeps about 70% of recent messages by default and summarizes the rest [22].

The shared idea is that older material becomes a model-written summary. What stays word for word differs by tool: LangChain [20] and Letta [22] keep recent messages, while Gemini CLI's /compress replaces the whole chat context [18].

What a summary keeps, and what it can't

Claude Code's documentation lists what its summary carries forward (requests, key concepts, files touched, errors and fixes, pending tasks, current work) and says full tool outputs and intermediate reasoning are gone [23]. It also warns that "detailed instructions from early in the conversation may be lost" [24]. Anthropic's engineering article names the underlying risk: "the loss of subtle but critical context whose importance only becomes apparent later" [16].

That risk comes from timing: a summarizer decides what matters before the next question exists. None of the vendor pages reviewed for this post list what a particular summary left out.

A session compacted twice summarizes a summary. The closest comparison is generation loss, which a telecom standards glossary defines for analog recording as "cumulative deterioration of signal quality" when each copy is made from the preceding copy [25]. That is an analogy from copying, and no measurement of repeated AI summarization turned up in this research.

Steering what survives

Some tools let the user shape the summary. In Claude Code, /compact accepts focus instructions [26], so a user who knows what will be needed can say so up front.

Anything that must always survive is safer outside the chat. Claude Code's docs advise putting persistent rules in a CLAUDE.md file instead of relying on conversation history [24], and Anthropic describes agents keeping notes "persisted to memory outside of the context window" [16].

In practice:

  • Put what must survive in project instructions or a notes file, not only in the chat.
  • If your tool accepts instructions when it compacts, name what you will need later.
  • After a summary, ask about a detail you gave early on. If it's missing, put it back.

My Take

Knowing how the window works is the reason I stopped trusting the chat itself to remember things for me, so I built my own memory outside of it. A handoff file carries a task from one session to the next, my saved transcripts can be searched with grep and by meaning (the thing people call RAG), and a vault of notes carries the long-term material across projects.

Even so, I still don't trust it to remember details beyond directionality, meaning where the work is heading. Anything beyond the handoff document is a lost detail, so I remind it what to go look for, and it finds my original descriptions again.

The reason any of this exists is last year's research. I remembered that maximum context blurs focus and that unclear compaction loses details and directionality, so I built layered memory solutions that, at least for me, have been successful, and I would not have had them if I hadn't understood how the system works first.

Where this goes next is memory, more than context. Two memory systems working together increasingly behave like human memory, where a single trigger can bring back a whole memory you didn't realize you knew. More kinds of triggers and more ways for stored information to connect are the future of context development. That won't necessarily make a more intelligent model, but it will make more intelligent results from any tool use, whatever the model.

Resource of the Day

Resource of the Day: Who Decides What Gets Kept? puts one invented chat in a box. You choose how the limit is handled: a hard stop, dropping the oldest messages, a generic compact, or a targeted compact where you say what you'll need later. Every message gets a line-by-line outcome, kept in the summary, kept word for word or left out. Then four more messages arrive and you compact again with the same instruction, so you can see what a second pass loses. You can run two methods side by side, and later questions are answered only from what survived. It's an illustration with invented rules.

⚙️ Behind the Cognitive Curtain

Excerpts from our exploration, in order. Some turns are cut down and some are left out, and every cut inside a turn is marked with "...". Matt's words have typos fixed, and Claude's are word for word. Compacting means an AI tool summarizes the older part of a long chat to free up space, and a handoff is a note one session writes for the next.

Matt: "...if there are MULTIPLE compacts, each one adds another minor fluctuation in detail-erasure until a many-compacted session is ALMOST like it 'fell off the cliff' because a summary of a summary of a summary of a summary has the effect (the copy of a copy of a copy effect which I cannot remember the scientific name for) of prioritizing details from the recent and not from the aged facts."

Claude: "The name. It’s generation loss: the photocopy of a photocopy ... Recency. You said repeated summaries favor recent details over old ones. That’s a hypothesis, not an established finding. ... Have you actually watched a detail drift after a compaction? What was it, and how did you notice?"

Matt: "...so we get a compact, then some of the details that existed of the early part of that conversation get summarized into a lossy component. And although I had said that detail early on because it wasn't an overly important detail in the discussion we had up to that point, we finally move on to the segment of the conversation where that additional component matters and it got forgotten because ... that particular side fact wasn't relevant in the previous conversation and therefore it wasn't included in the continuation notes."

Claude: "Your story is better evidence than the hypothesis it was meant to support. ... What you just described is different: an early side fact looked unimportant when the summary was written, then mattered an hour later. That is selection by the summarizer’s guess of importance, not by age. ... Are you willing to plant a deliberately unimportant side fact early in a principles discussion, compact, then ask something where it matters? Does it survive?"

Matt: "As far as doing a test, I don't know if I feel like there's any real benefit to that... I already know that I lose facts in compaction. And you're right, it's not time-based, it is attention-based. And even my handoffs that are being done deliberately ... don't solve it entirely because if you don't think it's important right now and the compaction agent doesn't think it's important later, that's two different people thinking it's not important and it can still get forgotten. But the key is that you as the working agent right now have an understanding of what we're working on and its directionality."

Claude: "Two independent “not important” judgments only help if they’re independent. Both are the same kind of model, so their blind spots correlate. Directionality still helps, because compaction can take a focus instruction (to verify), but it only covers needs you foresee."

Checked later: Claude Code's /compact does accept focus instructions [26].

Claude (a later turn): "...which thing do you still not trust a tool to carry, and what catches a forgotten fact when nothing generates a query for it?"

Matt: "I still don't trust it to remember details beyond directionality, though with the attached memory tools now, it's easier for me to just remind it what details to go look for and it can find my original descriptions again."

Claude: "...the detail is usually unfetched rather than lost, since the originals are stored. That makes you the index of last resort: you remember that you said it. A cheap fix ... is adding a “not carried, and where to find it” pointer section to every handoff, so the next agent has a card catalog and not just a summary."

References

1. OpenAI. (n.d.). "Conversation state". OpenAI API documentation (opened October 19, 2026).

2. OpenAI. (n.d.). "Create a model response". OpenAI API reference (opened October 31, 2026).

3. Anthropic. (n.d.). "Context windows". Claude API documentation (opened October 19, 2026).

4. Anthropic. (2025). "Claude Code changelog, version 0.2.47". GitHub.

5. npm. (2025). "@anthropic-ai/claude-code package record (version 0.2.47 published 2025-03-18 01:42 UTC)". npm registry.

6. Anthropic. (2025, November 24). "Claude Opus 4.5 announcement". Anthropic.

7. Anthropic. (n.d.). "Models overview". Claude API documentation (opened October 19, 2026).

8. OpenAI. (n.d.). "Models". OpenAI API documentation (opened October 19, 2026).

9. Google. (n.d.). "Gemini 3.1 Pro Preview" and "Gemini 3.8 Flash". Gemini API documentation (opened October 19, 2026).

10. Google. (n.d.). "Gemini 4 Argon" and "Long context". Gemini API documentation (opened October 19, 2026).

11. Google. (2024, February 15). "Our next-generation model: Gemini 1.5". The Keyword, Google.

12. OpenAI. (2025, April 14). "GPT-4.1 announcement". OpenAI.

13. Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F. & Liang, P. (2023). "Lost in the Middle: How Language Models Use Long Contexts". arXiv:2307.03172; accepted to Transactions of the Association for Computational Linguistics (TACL), 2023.

14. Chroma. (2025, July 14). "Context Rot". Chroma Research.

15. Google. (n.d.). "Long context". Gemini API documentation (opened October 19, 2026).

16. Anthropic. (2025, September 29). "Effective context engineering for AI agents". Anthropic Engineering.

17. OpenAI. (n.d.). "Compaction". OpenAI API documentation (opened October 19, 2026).

18. Gemini CLI. (2026, October 9). "Command reference". Gemini CLI documentation (page shows "Last updated: Oct 9, 2026").

19. Gemini CLI. (2026, May 14). "Settings". Gemini CLI documentation (page shows "Last updated: May 14, 2026").

20. LangChain. (n.d.). "Built-in middleware: Summarization". LangChain documentation (opened October 19, 2026).

21. Microsoft. (n.d.). "SummarizingChatReducer class". Microsoft Learn (opened October 19, 2026; preview documentation).

22. Letta. (n.d.). "Compaction". Letta documentation (opened October 19, 2026).

23. Anthropic. (n.d.). "Context window". Claude Code documentation (opened October 19, 2026).

24. Anthropic. (n.d.). "How Claude Code works". Claude Code documentation (opened October 19, 2026).

25. ATIS. (n.d.). "generation loss". ATIS Telecom Glossary (opened October 20, 2026).

26. Anthropic. (n.d.). "Commands". Claude Code documentation (opened October 19, 2026).

AI Collaboration Disclosure

This blog is written with Claude, Anthropic's AI, and I'd rather you know exactly how that works than have to guess.

Every post is a real conversation between the two of us, and this is how it gets from a question to a published post:

Tools used: Claude by Anthropic, currently its newest Sonnet and Opus models, going back to Claude 3 Opus in 2025. Some 2025 posts also used Perplexity.ai for research.

Share Ideas