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

Claude Code v2.1.300 ·

--worktree from a pull request now tracks its host and names the head commit

With --worktree and a pull request, Claude Code now passes on which host the request came from and shows the head commit in its message

You'll notice Improvements
JSON All of v2.1.300
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:

  • a pull request or merge request was used
  • the base ends with ^{commit}
Why

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.

Read from
Names in the bundle--worktree
Since it was published

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 since Anthropic'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) | desktop see 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)

See this entry in the whole of v2.1.300 →

Feedback