[BUG] Claude Code App does not run WorktreeCreate hook. Works with CLI.

Resolved 💬 3 comments Opened Mar 25, 2026 by mctrafik Closed Mar 29, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

We have WorktreeCreate hook created and it works great when used through CLI, but it does not seem to be called when using worktrees through the Claude App.

What Should Happen?

Claude App should be executing WorktreeCreate hook to create worktrees.

Error Messages/Logs

None. Worktrees are essentially unusable through the Claude App.

Steps to Reproduce

<img width="649" height="267" alt="Image" src="https://github.com/user-attachments/assets/60ea4d06-fefb-42bf-844c-632d532a912d" />

<img width="680" height="297" alt="Image" src="https://github.com/user-attachments/assets/b1207ba5-8f2f-4beb-a511-c8c62d980cfe" />

And the obvious thing to look for is whether the worktree created was in .agents/worktrees.

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Claude 1.1.7714 (3bd6f6) 2026-03-19T14:50:53.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Proof it works in CLI:

<img width="386" height="188" alt="Image" src="https://github.com/user-attachments/assets/7cf4c34e-723f-44fc-851a-e4fbff67c5a1" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗