Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.311 ·

DISABLE_COMPACT now covers teammates and gets special settings handling

Teammates now respect DISABLE_COMPACT, and the settings environment filter treats DISABLE_COMPACT specially

Group of 2 Use it now Improvements
JSON All of v2.1.311
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
CompactionArea: what it touches
ImprovementsKind: in v2.1.311,
What probably matters to youSection of the release

What

DISABLE_COMPACT is an environment variable that turns off compaction, which is summarising the conversation to free space. It is now handled in two more places:

  • Teammates that run inside the same process now check that DISABLE_COMPACT is not set before compacting their history. Before, they compacted whenever the conversation passed the auto-compact size limit.
  • The filter that sorts environment variables supplied through settings now treats DISABLE_COMPACT specially, depending on a condition that was not resolved. It also checks against a new set of names.
  • DISABLE_COMPACT is added to a list that already holds CLAUDE_CODE_DISABLE_PROACTIVITY, CLAUDE_CODE_DISABLE_FILE_MENTIONS and CLAUDE_CODE_DISABLE_WEB_FETCH.

Why

If you set DISABLE_COMPACT to stop compaction, teammates now respect it too. Whether a DISABLE_COMPACT set in your settings takes effect may depend on the new condition.

Read from
Names in the bundleDISABLE_COMPACT
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed agent teammates compacting their history when DISABLE_COMPACT is set

See this entry in the whole of v2.1.311 →

Feedback