Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.309 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

More risky git commands and settings now need your approval

Bash permission checks treat git init, {} and ~ in arguments, and several more git config keys as needing approval

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

Unclear The new checks depend on an internal switch whose default is not stated, so it is unclear whether they apply for every reader.

What

Before Claude runs a shell command, Claude Code checks whether it is safe to run without asking you. For git commands, that check now asks for approval in more cases:

  • git init and git init-db in a command.
  • {} and ~ in arguments, which are treated as values only known when the command runs.
  • Config keys init.templatedir, core.sharedrepository, help.autocorrect and alias.*.

Before, only core.worktree, include.*, includeif.*, protocol allow settings, and ssh command or git proxy settings were treated this way. The new checks sit behind an internal switch.

Why

Git settings like these can make git run other programs. Treating them as needing approval stops a command that looks harmless from running code without you being asked.

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 doubtThe new checks depend on an internal switch whose default is not stated, so it is unclear whether they apply for every reader.

See this entry in the whole of v2.1.310 →

Feedback