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.300 ·

New CLAUDE_CODE_ATTACHMENTS_BY_PATH variable turns on by-path file sending

Setting CLAUDE_CODE_ATTACHMENTS_BY_PATH enables the send-file tool without its usual checks, skips uploads and counts the session as remote

Group of 3 Use it now Notable No documentation found New Features
JSON All of v2.1.300
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
AttachmentsArea: what it touches
New FeaturesKind: in v2.1.300,
What probably matters to youSection of the release

Unclear What Claude Code does with a file in place of uploading it is not stated.

What

CLAUDE_CODE_ATTACHMENTS_BY_PATH is a new environment variable, a setting handed to Claude Code when it starts. It was not in v2.1.299. When it is set:

  • preserveToolUseResultInSubagents on the send-user-file tool is forced on, so the tool's results are kept inside subagents (helper copies of Claude given part of a task). Before, only the remote switch tengu_lucky_whisper decided this. That switch is still read when the variable is not set, with a fallback of false.
  • The send-file tool's isEnabled() check skips the first-party provider check and the allow_send_file check, and the tool's availability check returns true, as it already did for CLAUDE_CODE_REMOTE.
  • The choice of where to upload attachments returns "none", so files are not uploaded.
  • The check for whether Claude Code runs in a remote environment returns true, alongside CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE and CLAUDE_CODE_REMOTE.
  • The variable is on several lists of environment variables Claude Code checks or allows at startup.

Why

Whatever sets this variable, typically a program hosting Claude Code, gets the send-file tool without the usual provider and permission checks, no attachment uploads, and remote-session behaviour. If you set it yourself, expect all of these together.

Read from
Feature flag
tengu_lucky_whisper Not enough to say

Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.

This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.300: off

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.

tengu_send_user_file Not enough to say

Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.

This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.300: 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.

Read once, for one account on one subscription tier, against v2.1.300. It isn't a statement about your account. What a flag value here can and cannot tell you

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 Claude Code does with a file in place of uploading it is not stated.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_ATTACHMENTS_BY_PATH

See this entry in the whole of v2.1.300 →

Feedback