{"name":"CLAUDE_CODE_ATTACHMENTS_BY_PATH","slug":"claude-code-attachments-by-path","family":"env","title":"Environment variables","noun":"environment variable","description":"Setting `CLAUDE_CODE_ATTACHMENTS_BY_PATH` stops Claude Code uploading files it sends you, enables the send-file tool and keeps its results in subagents","description_source":"entry","described_by":{"version":"2.1.300","anchor":"claude-code-attachments-by-path-env-var-added-attachments-b"},"presence":{"first_seen":"2.1.300","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":9,"mined_builds":149,"first_cited":{"version":"2.1.300","released_at":"2026-10-14 14:27:26","spans":3}},"aliases":[],"entries":[{"version":"2.1.300","anchor":"claude-code-attachments-by-path-env-var-added-attachments-b","heading":"CLAUDE_CODE_ATTACHMENTS_BY_PATH turns off file uploads for files Claude sends","line":"Setting `CLAUDE_CODE_ATTACHMENTS_BY_PATH` stops Claude Code uploading files it sends you, enables the send-file tool and keeps its results in subagents","released_at":"2026-10-14 14:27:26","reason":"found in this entry's text, named in this entry"},{"version":"2.1.300","anchor":"claude-code-attachments-by-path-env-var-forces-the-send-file","heading":"New environment variable turns on file sending and keeps its results in subagents","line":"Setting CLAUDE_CODE_ATTACHMENTS_BY_PATH turns on the send-file tool, skipping its usual checks, and keeps its results in subagents","released_at":"2026-10-14 14:27:26","reason":"found in this entry's text, named in this entry"},{"version":"2.1.300","anchor":"claude-code-attachments-by-path-counts-as-a-remote-environme","heading":"Setting CLAUDE_CODE_ATTACHMENTS_BY_PATH makes Claude Code act as a remote session","line":"Claude Code now treats a session as remote whenever `CLAUDE_CODE_ATTACHMENTS_BY_PATH` is set","released_at":"2026-10-14 14:27:26","reason":"found in this entry's text, named in this entry"}],"entries_total":3,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA","slug":"claude-code-attachments-in-user-data","description":"Remote sessions can keep attachments in a user-data folder when `CLAUDE_CODE_ATTACHMENTS_IN_USER_DATA` is set, unless data retention rules apply"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-attachments-by-path","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}