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.191 Home All releases olderv2.1.190 v2.1.193newer
Claude Code v2.1.191

Worktree Lock Check Improvement

What changed: The worktree entry check now parses the git lock reason string rather than calling a generic lock-owner function, so it correctly identifies lock entries written by Claude Code agents specifically. A locked worktree from a different tool no longer prevents entry.

Details
  • Pattern matched: claude agent <name> (pid <N>[ start <time>])
  • Only if the matching PID is running and confirmed to be a Claude Code process is the Cannot enter worktree error raised.
Evidence

Worktree lock parsing (search for "claude agent .+ \\(pid")

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.191 →