5 pages for claude_code_disable_file_mentions.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…ns still arrive. To stop only `@` file mentions from expanding, set [`CLAUDE_CODE_DISABLE_FILE_MENTIONS=1`](/docs/en/env-vars#variables) instead, on Claude Code v2.1.299 or later. Claude then gets the…
Claude Code changelog
Claude Code CLI · in the page
changelog
…it and links the Git providers page **2.1.299** **Added** * Added `CLAUDE_CODE_DISABLE_FILE_MENTIONS` environment variable: Claude gets the paths of `@` file mentions to read with its file tools, n…
Common workflows
Claude Code CLI · in the page
common-workflows
…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#se…
Hooks reference
Claude Code CLI · in the page
hooks
…issions#read-and-edit) for them > * **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…
All settings
Claude Code CLI · in the page
settings-reference
…/en/env-vars#variables), which turns off attachment processing. * [`CLAUDE_CODE_DISABLE_FILE_MENTIONS`](/docs/en/env-vars#variables), which stops Claude Code from expanding `@` mentions of files and…