CLAUDE_CODE_DIR_SYNC_GIT
A Claude Code environment variable, read out of the shipped bundle. It has been in the build since v2.1.239, including the newest one read.
What it is
You can set CLAUDE_CODE_DIR_SYNC_GIT to pick a git-based engine for syncing your directory to a cloud session.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.239.
Presence across releases
| Releases | Reading | Declared type | Default |
|---|---|---|---|
| 2.1.245 – 2.1.250 5 releases | never mined | — | — |
| 2.1.239 – 2.1.243 5 releases | in the build | bool | — |
A row reading never mined is a release with no archived bundle behind it. Nothing was read out of it, so nothing here says whether the name was in it. A declared type or a default is only ever what that release's own bundle stated.
Changelog entries naming it
-
v2.1.242Git-aware directory sync for cloud sessions, off unless an env var is set
A git sync engine keeps a cloud container's checkout in step with yours, off unless an env var is set.
named in this entry
-
v2.1.239
CLAUDE_CODE_DIR_SYNC_GITselects a git-based engine for cloud file syncYou can set CLAUDE_CODE_DIR_SYNC_GIT to pick a git-based engine for syncing your directory to a cloud session.
named in this entry
-
v2.1.239Directory-sync anchoring can be switched off, plus seven dir-sync variables now stripped from child processes
CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes.
named in this entry
-
v2.1.239Sync and hook-forwarding switches now survive into remote sessions
Seven more environment variables you export locally now carry into remote and worker processes.
named in this entry
Documentation pages
None of Anthropic's documentation pages this site has a copy of carries this name.
Names beside it
Every environment variable in the inventory starting claude_code_dir_sync, up to twelve of them.
CLAUDE_CODE_DIR_SYNC_ARCHIVECLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes. 2.1.242
CLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORINGCloud file sync writes through directory handles so a swapped symlink can't redirect it, and says when that's unavailable. 2.1.239
CLAUDE_CODE_DIR_SYNC_ENGINESet CLAUDE_CODE_LEGACY_BUNDLE to true to go back to the old single-file build shape. 2.1.242
CLAUDE_CODE_DIR_SYNC_FFWDSet CLAUDE_CODE_LEGACY_BUNDLE to true to go back to the old single-file build shape. 2.1.242
CLAUDE_CODE_DIR_SYNC_OVERLAYCLAUDE_CODE_DIR_SYNC_DISABLE_ANCHORING turns off path anchoring, and seven sync variables are now stripped from child processes. never mined
CLAUDE_CODE_DIR_SYNC_STREAMMore environment variables get carried into remote sessions; none are set by default. never mined
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the environment variable does. All environment variables.