Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.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

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaBash Toolwhat it touches
KindImprovementsin v2.1.271,
You'll notice

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

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