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

WorktreeCreate

hook never mined documented JSON

A Claude Code hook event, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.

When a worktree is being created via --worktree, isolation: "worktree", or for a background session. Replaces default git behavior

Anthropic's own wording. Read off Hooks reference, captured 2026-10-22.

First seen — never in a mined build
Last seen — never in a mined build
Builds0 / 149on this box, as of v2.1.308
Written about v2.1.50 first named in a changelog, 20 Feb 2026

In the changelogs

14

Releases whose published page names WorktreeCreate.

  1. v2.1.300
    Plugin WorktreeCreate hooks now run when you start with --worktree

    Claude Code now loads plugins' WorktreeCreate hooks before creating a --worktree, so a plugin can handle worktree creation

    found in this entry's text, named in this entry

  2. v2.1.300
    Plugin WorktreeCreate hooks now run when starting with --worktree

    Starting with --worktree now sets up plugin worktree hooks first, so a plugin's WorktreeCreate hook can run

    found in this entry's text, named in this entry

  3. v2.1.295
    A new setting limits what your own skills, agents and hooks can do

    Setting CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG stops your own skills, agents and hooks from widening permissions, and makes key hooks required

    found in this entry's text

  4. v2.1.284
    claude remote-control --help now describes the trust prompt and worktree needs

    The claude remote-control help no longer says to run claude first to trust a folder, and notes what worktree mode needs

    found in this entry's text

  5. v2.1.281
    /batch works outside a git repository when a WorktreeCreate hook is configured

    /batch now runs outside a git repository when a WorktreeCreate hook is configured, publishing through the project's own version control

    found in this entry's text, named in this entry

  6. v2.1.265
    WorktreeCreate hook failure no longer throws when no hook is configured

    Creating a worktree no longer errors when no WorktreeCreate hook is configured at all

    found in this entry's text, named in this entry

  7. v2.1.265
    Hook engine reworked into explicit core/managed layering with unified result merging

    Hook execution engine rebuilt with a clearer core/managed split and unified result merging

    found in this entry's text, named in this entry

  8. v2.1.265
    WorktreeCreate hook path now conditionally used via Cwt() instead of hX()

    The condition for using a WorktreeCreate hook instead of git's default was renamed and restructured

    found in this entry's text

  9. v2.1.265
    New hook events: WorktreeCreate / WorktreeRemove now gate feature availability via eE()

    Worktree create/remove UI now also checks a broader capability gate, not just whether hooks are registered

    found in this entry's text, named in this entry

  10. v2.1.242
    Managed hook skip message now says SDK callback hooks still run

    The disableAllHooks notice now says SDK callback hooks still run while configured hooks are skipped.

    found in this entry's text

  11. v2.1.229
    Hooks are handed a session object instead of reading globals

    Hooks now get an explicit session with id, working directory and project root instead of guessing from globals.

    found in this entry's text

  12. v2.1.85
    Worktree Support for Non-Git VCS

    found in this entry's text

  13. v2.1.84
    WorktreeCreate Hook Output

    found in this entry's text

  14. v2.1.50
    VCS-Agnostic Worktree Isolation via Hooks

    found in this entry's text

First cited

12

The earliest release whose published evidence quoted WorktreeCreate was v2.1.50, 20 Feb 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.

ReleaseDateThe span that was quoted
v2.1.5020 Feb 2026Configure WorktreeCreate/WorktreeRemove hooks
v2.1.5020 Feb 2026WorktreeCreate
v2.1.8425 Mar 2026Hook-specific output for the WorktreeCreate event
v2.1.8526 Mar 2026Configure a WorktreeCreate hook
v2.1.24224 Aug 2026"WorktreeCreate hook failed: hook is configured but did not run (workspace not trusted or matcher mismatch)"
v2.1.2658 Sep 2026Ere() || sbe("WorktreeCreate")

6 further spans in the ledger name it. The list above is the earliest first and stops at 6.

Presence across releases

0

The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.

Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the hook event does. All hook events.

Feedback