Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.222 Home All releases olderv2.1.221 v2.1.223newer

Worktree creation validates the resulting root before use

You'll notice
Useful3 Signal0
Worktrees

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

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.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.222 →