Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.299 ·

New environment variable CLAUDE_CODE_DISABLE_FILE_MENTIONS

Claude Code now recognises a CLAUDE_CODE_DISABLE_FILE_MENTIONS environment variable, listed with other variables that turn features off

Use it now Notable New Features
JSON All of v2.1.299
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
File MentionsArea: what it touches
New FeaturesKind: in v2.1.299,
What probably matters to youSection of the release

Unclear What the variable turns off when set is not stated; the name suggests @-mentions of files, but that is unconfirmed.

What

Claude Code now recognises a new environment variable (a named value a program reads when it starts), CLAUDE_CODE_DISABLE_FILE_MENTIONS. It sits in the same lists as other switches that turn features off, such as CLAUDE_CODE_DISABLE_WEB_FETCH and CLAUDE_CODE_DISABLE_PROACTIVITY.

Why

A switch like this matters most to managed or locked-down setups, where an administrator wants to turn a feature off for everyone.

Read from
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.

Added since A small documentation edit on Common workflows touched a line naming CLAUDE_CODE_DISABLE_FILE_MENTIONS after this was published. To stop `@` references from including file contents and directory listings, set [`CLAUDE_CODE_DISABLE_FILE_MENTIONS`](/docs/en/env-vars#variables) to `1` in your shell or in the [`env` block](/docs/en/env-vars#set-variables-in-settings-fil… common-workflows see the edit
Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_DISABLE_FILE_MENTIONS, on Hooks reference. > * **Turn the insertion off**: set [`CLAUDE_CODE_DISABLE_FILE_MENTIONS=1`](/docs/en/env-vars#variables) in your shell, user settings, or managed settings. Claude then gets the mentioned paths with a note to read them using its file tools.… hooks 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 doubtWhat the variable turns off when set is not stated; the name suggests @-mentions of files, but that is unconfirmed.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_DISABLE_FILE_MENTIONS, on Hooks reference.
Anthropic's release notes agreeAdded CLAUDE_CODE_DISABLE_FILE_MENTIONS environment variable: Claude gets the paths of @ file mentions to read with its file tools, not the…
The name it cites is new in this buildNew in this build: CLAUDE_CODE_DISABLE_FILE_MENTIONS

See this entry in the whole of v2.1.299 →

Feedback