What
A worktree is a separate working copy of your project that Claude Code can work in. Two things changed:
- Entering by path: when you enter an existing worktree by its path, Claude Code first checks whether a mod made it as a copy. If so, the session uses hooks (programs that run at set points) to manage it.
- Taking over: when creating a worktree, Claude Code now refuses to take over one marked as made by a mod. It says a mod made the worktree, so Claude Code will not take it over, and asks you to choose a different worktree name.
A marker file named CLAUDE_MOD_MADE records that a mod made the worktree. Before, Claude Code only accepted plain git worktrees.
Why
This changes which worktrees a session can enter or reuse. If you see the takeover refusal, pick another worktree name.