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.229 ·

The built-in commit and PR command now blocks risky flags

The built-in commit-and-PR command can no longer use flags that rewrite history.

You'll notice Improvements
JSON All of v2.1.229
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Slash CommandsArea: what it touches
ImprovementsKind: in v2.1.229,
What probably matters to youSection of the release
What

The built-in "Commit, push, and open a PR" command ships an explicit deny list, so Claude cannot reach for the flags that would rewrite history or redirect a PR while running it.

Details
  • Covers git commit message and --amend and --no-verify flags, force pushes and branch deletions, git add --force and --chmod, git checkout -f, and gh pr create/gh pr edit flags that change the repo, base, head or body.
  • Every pattern is registered for both Bash(...) and PowerShell(...).
Evidence

gh pr edit --body-file

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundle/commit-push-pr
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeChanged /commit-push-pr so git/gh commands with dangerous flags (--force, --amend, --no-verify, etc.) are no longer auto-approved

See this entry in the whole of v2.1.229 →

Feedback