⌨️CLAUDE_CODE_DISABLE_ATTACHMENTS
Also known as CLAUDE_CODE_DISABLE_FILE_MENTIONS
Set to 1, an @ mention is sent as text, not as the file.
Think of it like
It is like you write a book's name on a note. You do not tape the book to it.
Example
Jack's @ mentions kept pulling in huge log files and filling the chat. He sets this, and Claude reads only the parts it needs.
Why it matters
A big file pasted in whole can fill the chat fast. A plain name lets Claude read just what it needs.
Definition
Example code
bash
export CLAUDE_CODE_DISABLE_ATTACHMENTS=1
claudeCommon mistake
Key takeaways
- 1@ stays text. No file pasted.
- 2A twin. Sends the path to read.
- 3Not in project settings. Ignored there.