Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.239 Home All releases olderv2.1.238 v2.1.240newer
Claude Code v2.1.239

Directory-sync anchoring can be switched off, plus seven dir-sync variables now stripped from child processes

Use it now
Useful3 Signal4
Directory Sync Notable not in their notes

CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes.

CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORINGCLAUDE_CODE_DIR_SYNC_ARCHIVECLAUDE_CODE_DIR_SYNC_GITCLAUDE_CODE_DIR_SYNC_OVERLAY
What

Directory sync, the mechanism that keeps a working directory tracked as it moves, normally anchors paths so it can follow a directory even if it is renamed. Setting CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns that off and falls back to resolving paths by name, and the same release adds seven Claude-managed directory-sync variables to the set that is removed from the environment handed to child processes, so they do not leak into tools and subprocesses Claude Code spawns. Two of those seven names are reserved but do nothing yet.

Details
  • CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING is unset by default and is recognised both as an environment variable and through the settings file; run it as CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING=1 claude.
  • When anchoring is off by this variable, the reason is reported as switched_off.
  • Windows already skips anchoring regardless of the variable, and reports the reason platform.
  • The seven stripped variables include CLAUDE_CODE_DISABLE_DIR_SYNC, CLAUDE_CODE_DIR_SYNC_GIT and CLAUDE_CODE_WORKER_EPOCH; five of the seven are actually read, covering dir-sync start decisions, hook forwarding and worker epoch.
  • CLAUDE_CODE_DIR_SYNC_ARCHIVE and CLAUDE_CODE_DIR_SYNC_OVERLAY are read nowhere in this build, so setting them has no effect; unlike their siblings they are absent from the typed environment accessor list and appear only in the filter set and the export map.
Evidence

CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING, CLAUDE_CODE_DIR_SYNC_OVERLAY

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.239 →