[Feature Request] Add PostWorktreeCreate hook and matcher support for selective worktree hook execution

Open 💬 0 comments Opened Jul 9, 2026 by sebastian-dix-flaerobotics-ai

Bug Description
[FEATURE] Additive PostWorktreeCreate hook + matcher support for worktree hooks ▎ WorktreeCreate currently must own creation entirely — no fallback, no opt-out, no matcher — so to customize setup for one repo you have to reimplement git worktree add and re-emulate the default for every other repo, in a hook that fires globally. Two asks: (1) a PostWorktreeCreate hook that runs after the built-in creation (path passed in) purely for setup like uv sync/npm install; (2) matcher support on worktree hooks to scope by repo. Either one removes the need to re-emulate the default.

Environment Info

  • Platform: linux
  • Terminal: tmux
  • Version: 2.1.204
  • Feedback ID: 5e23ee36-8d37-447e-8ee7-3641e72dae9b

Errors

[]

View original on GitHub ↗