Claude Code v2.1.334 · Anthropic · GitHub release notes, December 1, 2026
Claude Code v2.1.334 compacts long sessions near 400K tokens, headless runs included
The release notes, posted at 22:12 UTC, say Anthropic "Changed auto-compact's per-model auto setting to near 400K on most current 1M models, -p and SDK runs too". The change is still rolling out; the notes say it is on now with third-party providers or with telemetry off. A new Auto-compact window row in /config shows the size that /autocompact sets and lets you change it.
Four other entries bear on unattended work. Resuming an unchanged worktree could drop "an unpushed commit that only its branch still had"; that is fixed. On self-hosted runners, a runner or orchestrator could hang on a call that never finished, and "each call now ends after 60 seconds by default". Subagents in Code Mode had started "failing again in 2.1.333 with 'Agent stalled'" when a script ran for more than 10 minutes; that is fixed too. And /code-review, which began following a root REVIEW.md in the previous release, now also follows REVIEW.md files in folders above a committed change. The notes list more than 280 entries, many of them for the VS Code extension and Claude Code on the web.
Why it matters: Compaction decides what a long-running agent still holds about its task, so if your factory runs long -p or SDK sessions on a 1M model, check the window /autocompact now gives you instead of assuming it is unchanged. On self-hosted runners, a stuck call now ends after 60 seconds by default instead of hanging, which changes how that failure shows up in your logs.