Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.222 ·

Worktree creation validates the resulting root before use

New worktrees are checked before use, and creation fails loudly if the directory is unusable.

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

After creating a worktree, Claude Code checks that the new directory is acceptable as an isolation root and fails loudly if it is not.

Details
  • applies to every creation path: interactive, agent, hook-based and resumed
  • throws on rejection and records telemetry git_worktree_create_root_rejected
Evidence

git_worktree_create_root_rejected

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

See this entry in the whole of v2.1.222 →

Feedback