Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

Bash-tool git command parsing hardened for path/permission extraction

Bash-tool permission logic parses git commands more carefully before approving them

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

When Claude Code decides whether a git command in the Bash tool can be auto-approved, it now parses the command line more carefully. New internal helpers correctly:

  • split combined short options (like -abc meaning -a -b -c)
  • extract --work-tree and -C values, which change which directory a git command operates on
  • recognize glob bracket-expression syntax, including character classes with an embedded ]
  • exclude commands that use GIT_CONFIG or other environment-based redirection, since those could make it unsafe to reason about the command just by looking at its text
Why

Git commands can change their target directory or configuration through options and environment variables in ways that are easy to misparse. Handling these cases correctly avoids auto-approving a git command whose real effect isn't what a simple text scan would suggest.

See this entry in the whole of v2.1.271 →

Feedback