Claude Code now condenses long sessions much earlier
Claude Code version 2.1.334, released December 1, changed when it automatically summarizes a long session. On most current models that offer a one-million-unit memory window, it now summarizes near 400,000 units instead. The change is rolling out in stages, and you can set your own limit from a settings menu.
Claude Code's release notes for version 2.1.334 (December 1) say the automatic summarizing setting, called auto-compact, now defaults to roughly 400K tokens on most current models that support a 1M-token window. It also applies to non-interactive runs (the -p flag) and to SDK runs.
The notes say the change is rolling out, and that it is already on for people using third-party model providers or with telemetry turned off. A new Auto-compact window row in /config shows and changes the size, and the /autocompact command sets it.
Versions 2.1.335 and 2.1.336 (December 3) fixed related display bugs. The status line's used and remaining percentages now count against the auto-compact window, the same way /context does. To measure against the full window, divide total_input_tokens by context_window_size.
The release notes do not explain why 400K was chosen, and they give no cost or quality numbers. If your sessions relied on the assistant remembering details from very early in a long run, expect it to forget them sooner.
New to this? The key idea
An AI assistant can only hold so much text in view at once, called its context window. When a session gets long, the tool shrinks the old part into a short summary, a bit like replacing a thick meeting transcript with minutes. Doing that earlier keeps the assistant focused and cheaper to run, at the cost of losing some detail.
Use it at work
Use it for: Anyone who runs long Claude Code sessions or scripted runs, such as engineers on big refactors or teams running it in CI. Expect summaries to kick in earlier, so earlier details may be compressed.
Try it: Update to version 2.1.336 or later. Run /autocompact to see the current setting, or open /config and look at the Auto-compact window row. Raise it if a task needs more raw history, lower it if long sessions drift. In scripts, check how often your -p runs now summarize.
Before you roll it out: The change is rolling out in stages, so teammates on the same version may see different defaults. Cost impact is not stated. If you read the status line percentages in dashboards, note that they now count against the auto-compact window, not the full window.
Summaries are written by AI from the linked source. Always check the original.