Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.321 ·

--worktree startup errors now go through Claude Code's shared exit routine

When --worktree fails outside a git repository, or cannot find the repository root, Claude Code now exits through its shared exit routine

Under the hood Internal Changes
JSON All of v2.1.321
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Internal ChangesKind: in v2.1.321,
Internal ChangesSection of the release
What

--worktree starts Claude Code in a separate git worktree, a second working copy of a repository. It fails in two cases: when the folder is not a git repository, and when the top folder of the repository cannot be found. Both errors used to print a message and quit straight away. They now go through the shared routine Claude Code uses to exit, and each carries its own code: worktree_not_git and worktree_no_repo_root.

Why

Routing these errors through the shared routine likely means the failure is recorded before Claude Code quits.

Read from
Names in the bundle--worktree
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeImproved the agent view's row for a claude --bg --worktree session that couldn't set up its worktree: it now shows the error from its…

See this entry in the whole of v2.1.321 →

Feedback