Claude Code now writes scripts to run its tools
Experimental Code Mode reaches Amazon, Google and Microsoft clouds
Coding tools
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 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.”
“Autocompact now defaults to 400k tokens.”
Sponsor
Spot an error? Email corrections@aicodingnews.si. Fixes are logged on the corrections page.
Sponsor
Sponsor
Experimental Code Mode reaches Amazon, Google and Microsoft clouds
Anthropic blames overcaution on long tasks
Skills, background tasks and user prompts
Claude blog · Addy Osmani · Nov 16
Sponsor
Sponsor