Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.324 ·

Plugin worktree hooks are ready before --worktree creates the worktree

With --worktree, Claude Code now sets up plugins' WorktreeCreate and WorktreeRemove hooks before it creates the worktree

You'll notice Bug Fixes
JSON All of v2.1.324
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Bug FixesKind: in v2.1.324,
Bug FixesSection of the release
What

When you start Claude Code with --worktree, it creates a git worktree for you. A git worktree is a separate working folder linked to the same repository. Plugins are add-ons that extend Claude Code, and they can respond to the WorktreeCreate and WorktreeRemove hooks. A hook is an event a plugin can react to.

Claude Code now registers these plugin hooks before it creates the worktree. It also registers seed marketplaces first. Marketplaces are the catalogues plugins are installed from. Before this, Claude Code could create the worktree before the plugin hooks were in place, and it logged that they had not been registered in time.

This early setup is skipped when CLAUDE_CODE_SYNC_PLUGIN_INSTALL is set.

Why

A plugin's worktree hooks are now more likely to run, including on a fresh install where the plugins were not yet set up.

Read from
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 WorktreeCreate, on Intercept and control agent behavior with hooks. | `WorktreeCreate` | No | Yes | Claude Code needs a worktree, and the hook creates it instead of git | Create the worktree and return its path in [`hookSpecificOutput.worktreePath`](https://code.claude.com/docs/en/hooks#worktreecreate-outp… agent-sdk/hooks see the edit
Confirmed since Anthropic's documentation has since written up --worktree, on Explore the .claude directory. **When it loads**: Read when Claude creates a [git worktree](https://code.claude.com/docs/en/worktrees.md) via `--worktree`, the `EnterWorktree` tool, or subagent `isolation: worktree` claude-directory see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up --worktree, on Explore the .claude directory.

See this entry in the whole of v2.1.324 →

Feedback