Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 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 Internal Changes
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
SettingsArea: what it touches
Internal ChangesKind: in v2.1.311,
What probably matters to youSection of the release

Unclear It is not stated what the condition is, so it is unclear when DISABLE_COMPACT set in settings takes effect.

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
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up DISABLE_COMPACT, on Model configuration. * If the ID resolves to a model Claude Code recognizes, the variable takes effect only when you also set [`DISABLE_COMPACT`](https://code.claude.com/docs/en/env-vars), which disables all compaction. model-config see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not stated what the condition is, so it is unclear when `DISABLE_COMPACT` set in settings takes effect.
Anthropic's documentation agreesAnthropic's documentation has since written up DISABLE_COMPACT, on Model configuration.
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