{"name":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING","slug":"claude-code-dir-sync-disable-anchoring","family":"env","title":"Environment variables","noun":"environment variable","description":"Cloud file sync writes through directory handles so a swapped symlink can't redirect it, and says when that's unavailable.","description_source":"entry","described_by":{"version":"2.1.239","anchor":"directory-sync-places-files-without-following-symlinks-and-t"},"presence":{"first_seen":"2.1.239","removed_in":"2.1.284","in_current_build":false,"newest_mined":"2.1.308","builds":36,"mined_builds":149,"first_cited":{"version":"2.1.239","released_at":"2026-08-21 17:18:54","spans":3}},"aliases":[],"entries":[{"version":"2.1.285","anchor":"directory-sync-dir-sync-feature-removed","heading":"Directory sync for cloud sessions and its environment variables removed","line":"The directory-sync machinery for cloud sessions is gone, and its `CLAUDE_CODE_DIR_SYNC_*` and `CLAUDE_CODE_DISABLE_DIR_SYNC` variables no longer do anything","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.283","anchor":"directory-sync-no-longer-falls-back-to-unanchored-by-name-fi","heading":"Directory sync refuses to place files on machines that cannot anchor folders","line":"Directory sync now gives up instead of placing files by name when folder anchoring is unavailable, unless CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING is set","released_at":"2026-09-25 18:46:11","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"dir-sync-windows-anchoring-via-a-win32-handle-backend","heading":"dir-sync: Windows anchoring via a win32 handle backend","line":"On Windows, dir-sync can now anchor its root folder through a native Windows handle, with fallbacks when that is not possible","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.242","anchor":"archive-sync-explains-conflicts-deletes-and-skipped-files-in","heading":"Archive sync explains conflicts, deletes and skipped files in plain language","line":"Archive sync now tells you plainly about conflicts, restored deletes and files too large to sync.","released_at":"2026-08-24 19:16:14","reason":"found in this entry's text"},{"version":"2.1.239","anchor":"directory-sync-places-files-without-following-symlinks-and-t","heading":"Directory sync places files without following symlinks, and tells you when it can't","line":"Cloud file sync writes through directory handles so a swapped symlink can't redirect it, and says when that's unavailable.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"},{"version":"2.1.239","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","line":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"}],"entries_total":6,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_DIR_SYNC_ARCHIVE","slug":"claude-code-dir-sync-archive","description":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes."},{"name":"CLAUDE_CODE_DIR_SYNC_CHAIN","slug":"claude-code-dir-sync-chain","description":"A new 'chained' directory-sync mode exists behind an undocumented CLAUDE_CODE_DIR_SYNC_CHAIN env var"},{"name":"CLAUDE_CODE_DIR_SYNC_ENGINE","slug":"claude-code-dir-sync-engine","description":"Set CLAUDE_CODE_LEGACY_BUNDLE to true to go back to the old single-file build shape."},{"name":"CLAUDE_CODE_DIR_SYNC_FFWD","slug":"claude-code-dir-sync-ffwd","description":"Set CLAUDE_CODE_LEGACY_BUNDLE to true to go back to the old single-file build shape."},{"name":"CLAUDE_CODE_DIR_SYNC_GIT","slug":"claude-code-dir-sync-git","description":"You can set CLAUDE_CODE_DIR_SYNC_GIT to pick a git-based engine for syncing your directory to a cloud session."},{"name":"CLAUDE_CODE_DIR_SYNC_OVERLAY","slug":"claude-code-dir-sync-overlay","description":"CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes."},{"name":"CLAUDE_CODE_DIR_SYNC_STREAM","slug":"claude-code-dir-sync-stream","description":"More environment variables get carried into remote sessions; none are set by default."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-dir-sync-disable-anchoring","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}