What
Whether the Bash tool's system prompt carries the Git safety and commit instructions now goes through one explicit check that honours the CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS environment variable and an includeGitInstructions setting. The default is unchanged: the instructions are included.
Details
- Both the variable and the setting existed before; what is different is that a single helper now decides, so every prompt path respects them the same way.
Evidence
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleCLAUDE_CODE_DISABLE_GIT_INSTRUCTIONSincludeGitInstructions
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up includeGitInstructions, on All settings.
| [`includeGitInstructions`](#includegitinstructions) | Remove the built-in commit and PR instructions from Claude's context | Git and attribution | Any file |settings-reference see the edit
Added since
A small documentation edit on Environment variables touched a line naming includeGitInstructions after this was published.
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | Set to `1` to remove built-in commit and PR workflow instructions and the git status snapshot from Claude's context. Useful when using your own git workflow skills. Takes precedence over the [`inc…env-vars see the edit
Added since
A small documentation edit on Environment variables touched a line naming CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS after this was published.
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | Set to `1` to remove built-in commit and PR workflow instructions and the git status snapshot from Claude's context. Useful when using your own git workflow skills. Takes precedence over the [`inc…env-vars see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Environment variables touched a line naming CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS after this was published.