{"version":"2.1.239","anchor":"directory-sync-anchoring-can-be-switched-off-plus-seven-dir-","canonical_anchor":"directory-sync-anchoring-can-be-switched-off-plus-seven-dir-","heading":"Directory-sync anchoring can be switched off, plus seven dir-sync variables now stripped from child processes","tier":"use","area":"Directory Sync","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239\/e\/directory-sync-anchoring-can-be-switched-off-plus-seven-dir-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239","markdown":"### Directory-sync anchoring can be switched off, plus seven dir-sync variables now stripped from child processes\n\nCLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes.\n\n**What**\n\nDirectory 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.\n\n**Details**\n\n- `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`.\n- When anchoring is off by this variable, the reason is reported as `switched_off`.\n- Windows already skips anchoring regardless of the variable, and reports the reason `platform`.\n- 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.\n- `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.\n\n**Evidence**\n\n`CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING`, `CLAUDE_CODE_DIR_SYNC_OVERLAY`\n\n- Area: Directory Sync\n- Names: `CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING`, `CLAUDE_CODE_DIR_SYNC_ARCHIVE`, `CLAUDE_CODE_DIR_SYNC_GIT`, `CLAUDE_CODE_DIR_SYNC_OVERLAY`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 4\/5"}