Follow Discord
Sweep 12 Nov 2026 · 23:00Z Build v2.1.323 540 read Stable v2.1.311 Latest v2.1.323 Next v2.1.323 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.323 ·

Worktree sessions refuse git commands that look like git's internal helpers

In worktree-restricted sessions, git commands whose subcommand contains -- are now refused, because some of git's helpers write outside the worktree

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

A worktree is a separate working copy of a git repository. When a session is limited to one, Claude Code checks git commands before they run. That check now refuses a command whose subcommand contains -- in its name. Names like that belong to git's internal helper programs, and some of those helpers write files outside the worktree.

The refusal message suggests what to do instead:

  • Run the ordinary git command rather than the helper.
  • Add the missing space if -- was meant to start an option.
  • Write a file path as ./name so it is not read as a command.

The message for words that cannot be checked before a command runs was also reworded. It now says such a word may expand when the command runs, or is an option the check does not know.

Why

Some git commands that were accepted before in worktree-restricted sessions are now refused. The new message explains how to rewrite them.

See this entry in the whole of v2.1.323 →

Feedback