Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Bash tool instructions gain git rules on committing only when asked and on secrets

Claude's Bash instructions now group git advice under a header, say to commit or push only when asked, and warn against committing secret files

Group of 4 You'll notice Improvements
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release

Unclear Which sessions include this Git section is not settled.

What

The Bash tool is how Claude runs shell commands, and it comes with written instructions that Claude reads. The git part of those instructions changed:

  • "- For git commands:" is a new header line ahead of the git bullet points.
  • "Commit or push only when the user asks. If on the default branch, branch first." is a new rule in the git section.
  • "Do not commit files that likely contain secrets (.env, credentials.json, .claude/settings.local.json, etc). Warn the user if they specifically request to commit those files." now appears as new text in the instructions Claude Code actually sends.

The secrets line shows up as new in the instructions captured from both the command line and the SDK, across many model arms, and also in the prompt used when a command starts up (the command-init prompt).

Why

These lines are what Claude reads before running git. In practice Claude should commit or push only when you ask, create a branch first when it is on the default branch, and warn you before committing files that may hold secrets.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich sessions include this Git section is not settled.

See this entry in the whole of v2.1.327 →

Feedback