Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Worktrees are refused when the shell is outside the session's folders

Claude Code now refuses to create a worktree when the shell is outside the session's working folders, or in a repository the session only partly holds

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

Unclear It is not clear whether the switch for the second check is on.

What

A worktree is a second copy of a git repository checked out in its own folder. Claude Code now refuses to create one in two cases:

  • The shell is in a folder outside the session's working folders.
  • The shell is in a repository that the session only holds part of. The message says: "A worktree would open that repository's whole git folder to writes, so no worktree was made."

The second check is behind a switch.

Why

This is a new guard on creating worktrees. Creating one could open a whole repository's git folder to changes, beyond the folders the session was given.

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 doubtIt is not clear whether the switch for the second check is on.

See this entry in the whole of v2.1.333 →

Feedback