What's wrong with this entry?
Both ExitWorktree and EnterWorktree now validate that they are not being called from a subagent with a cwd override (e.g., isolation: "worktree" or explicit cwd). This prevents subagents from mutating the parent session's working directory.
- Error: "ExitWorktree cannot be called from a subagent with a cwd override — it would mutate the parent session's process-wide working directory."
- Directs subagents to use Bash with
cdfor directory changes
Worktree validation (search for "ExitWorktree cannot be called from a subagent")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.