{"version":"2.1.335","anchor":"attachments-by-path-mode-now-requires-uploadsbesidepath-and","canonical_anchor":"claude-code-attachments-by-path-now-disables-the-sdk-hosted","heading":"CLAUDE_CODE_ATTACHMENTS_BY_PATH now works with uploads beside the path","tier":"use","area":"Attachments","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/attachments-by-path-mode-now-requires-uploadsbesidepath-and","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### CLAUDE_CODE_ATTACHMENTS_BY_PATH now works with uploads beside the path\n\nWith CLAUDE_CODE_ATTACHMENTS_BY_PATH set, attachments can upload beside the path under conditions, SDK-hosted attachments turn off, and a message is shorter\n\n**Unclear.** It is not clear what the option for uploading beside the path is or how a reader turns it on.\n\n**What**\n\n`CLAUDE_CODE_ATTACHMENTS_BY_PATH` is an environment variable, a named value you set in your shell before starting Claude Code, that makes attachments be handled by their file path. It now changes more than before:\n\n- Uploads: with it set, the attachment upload choice used to always be \"none\". It is now \"none\" only unless `uploadsBesidePath` is set, a session check passes and the `tengu_atomic_whale` flag is on. The flag's built-in default is on.\n\n- When those conditions pass, the environment-based upload routes (`env_brief_upload`, `env_ccr`, `env_byoc`) are skipped, while the `repl` route is still allowed.\n\n- SDK-hosted attachments: the `sdk_hosted` attachment source is now only used when the variable is unset. With it set, that check returns false.\n\n- Skill message: when a file is refused because claude.ai would not save it as a skill, the message with the variable set drops the \"not sent:\" prefix and the \"Fix the file and send it again\" advice.\n\n**Why**\n\nIf you set this variable, attachments can now be uploaded next to their path in hosted sessions where that was not possible before, and SDK-hosted attachment handling is switched off.\n\n- Flag `tengu_atomic_whale`: Not enough to say (read for one account on one subscription tier against v2.1.335; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Attachments\n- Names: `CLAUDE_CODE_ATTACHMENTS_BY_PATH`, `tengu_atomic_whale`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes\n- Present in the build but not switched on"}