{"version":"2.1.84","anchor":"worktreecreate-hook-output","canonical_anchor":"worktreecreate-hook-output","heading":"WorktreeCreate Hook Output","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.84\/e\/worktreecreate-hook-output","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.84","markdown":"### WorktreeCreate Hook Output\n\n**What**\n\nThe `WorktreeCreate` hook event now supports hook-specific output providing the absolute path to the created worktree directory.\n\n**Details**\n\n- JavaScript hooks return `{ hookEventName: \"WorktreeCreate\", worktreePath: \"<path>\" }`\n- Command hooks print the path on stdout instead\n- Enables custom worktree workflows via hooks\n\n**Evidence**\n\nWorktreeCreate hook output (search for `\"Hook-specific output for the WorktreeCreate event\"`)"}