Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.251 ·

Git instructions in the Bash tool prompt can be switched off

You can turn off the Bash tool's git instructions via env var or setting.

Use it now Notable Improvements
JSON All of v2.1.251
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
System PromptArea: what it touches
ImprovementsKind: in v2.1.251,
What probably matters to youSection of the release
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.

Read from
Since it was published

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
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesA small documentation edit on Environment variables touched a line naming CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS after this was published.

See this entry in the whole of v2.1.251 →

Feedback