checked on 18 Nov 2026
valid until 18 Dec 2026not rechecked since 18 Dec 2026
With no window set, Claude Code compacts sessions with a 1M window at about 967K tokens.
In the source's words
With no window set, Claude Code auto compacts at the model's context limit: about 967K tokens on 1M-context models and 200K on 200K models.
Card
When to compact a Claude Code session with a 1M window, and where the unanswered messages come from
Address
stacks.jakubdudek.com/claude-code-compaction-and-stalls/c1
In a document: [[claude-code-compaction-and-stalls#c1]]
JSON