ACN · Presented by Levr
ACN WIRE

Coding tools

Claude Code now compacts at 400K tokens

Long sessions get summarized sooner on 1M-context models

Written with AI assistance, reviewed by the ACN desk.

“Your later requests are smaller when compaction runs sooner, so long sessions use fewer tokens.”
Anthropic, Claude Code documentation, Anthropic
0:00 / 0:00

Image: Anthropic

The quick hit

  • Anthropic has lowered the point at which Claude Code automatically summarizes long sessions.
  • On 1M-context models, compaction now runs near 400K tokens instead of about 967K.
  • The change arrived in version 2.1.334 and is rolling out progressively, The New Stack reports.

Anthropic has changed Claude Code so that long sessions are summarized sooner by default. According to Anthropic’s documentation, sessions on models with a native 1M-token context window now compact near 400K tokens. Compaction summarizes the earlier conversation to free up room.

The documentation lists the affected models as the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later. Users who want the full window can run the /autocompact 1M command. Compaction then runs at about 967K tokens, the documentation says. Cloud environments can set the CLAUDE_CODE_AUTO_COMPACT_WINDOW variable to 1000000 instead.

Anthropic says later requests are smaller when compaction runs sooner, so long sessions use fewer tokens. The New Stack reports that the change shipped in Claude Code version 2.1.334 and is rolling out progressively. Users see a one-time message that reads “Autocompact now defaults to 400k tokens,” according to the outlet. Anthropic did not respond to The New Stack by publication time.

“Your later requests are smaller when compaction runs sooner, so long sessions use fewer tokens.”
Anthropic, Claude Code documentation, Anthropic
“Autocompact now defaults to 400k tokens.”
Claude Code, one-time notice to users, as reported by The New Stack, Anthropic

Sponsor

Sources

  1. Anthropic (Claude Code docs) · Dec 4, 2026
  2. The New Stack · Dec 4, 2026

Spot an error? Email corrections@aicodingnews.si. Fixes are logged on the corrections page.

From our sponsors

Sponsor

Sponsor

Also in

Sponsor

Sponsor