You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.300,
ImprovementsSection of the release
What
--worktree starts Claude Code in a separate git worktree, a second working copy of your repository. You can branch it from a pull request or merge request. Claude Code now passes on both the request number and the forge, meaning the code-hosting service it came from, instead of the number alone.
The "Created worktree:" message now shows the head commit instead of the base branch in two cases:
The worktree setup now knows which hosting service a request belongs to, which points to requests from hosts other than GitHub being handled. The message also shows the exact commit you started from.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up --worktree, on Desktop application.| Session isolation | [`--worktree`](/docs/en/cli-reference) flag | [Run a session in its own worktree](#run-a-session-in-its-own-worktree) |desktopsee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up --worktree, on Desktop application.
Anthropic's release notes agreeFixed plugin WorktreeCreate and WorktreeRemove hooks not running when Claude Code starts with --worktree (not yet with --tmux)