Skip to content

AI Compass / News

Claude Code 2.1.334 to 2.1.337: compacting already at around 400K tokens

Automation Costs

On most current 1M models, Claude Code now compacts long sessions at around 400,000 tokens, adjustable with /autocompact. Also new: REVIEW.md in parent folders, remote MCP servers from the terminal and plugins via Git address.

Source: Claude Code Changelog, versions 2.1.334 to 2.1.337,

Note: I use Claude and Claude Code for my own work. Anthropic does not pay me, and the links are not affiliate links.

Technical drawing: a bar for 1M tokens with a mark at 400K labelled /autocompact.Technical drawing: a bar for 1M tokens with a mark at 400K labelled /autocompact.

What happened: four versions of Claude Code came out between 1 and 4 December 2026: 2.1.334 on 1 December, 2.1.335 and 2.1.336 on 3 December, and 2.1.337 on 4 December. Version 2.1.333 came out on 30 November: since then, local /code-review runs follow the REVIEW.md in a repository’s root folder. Versions 2.1.331 and 2.1.332 are covered in Claude Code 2.1.331 and 2.1.332.

What’s new:

What this means for you: long sessions get compacted sooner. The context stays smaller, which saves tokens, but details from early in the conversation get lost sooner.

What you can do:

  1. Check your version: claude --version.
  2. Check the limit: /autocompact shows which limit applies. If a task needs a lot of context in one go, you can raise it there.
  3. Save what matters: before a long session gets compacted, write the current state and open points to a file. The card Keeping context clean shows how.
  4. Check your hooks: if you use plugins in cloud sessions, check whether any hook reaches outside its folder with ../.
  5. Check your plugins: only install plugins via Git address from sources you trust.

Context: everything here comes from the changelog. The four entries are long; a lot of it only affects VS Code, self-hosted runners, mods or the display, so I’ve left that out. The changelog doesn’t say explicitly what the limit was before 2.1.334. I haven’t tested the new versions myself.

My workshops show you how to bring AI into your team. See the workshops