Git & PRs
Hook
Hooks
What worktrunk runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
Claude Code
> /plugin marketplace add max-sixty/worktrunk> /plugin install worktrunk@worktrunk
Cursor
Cursor also runs Claude Code hooks from .claude/settings.json, so copy these hooks there to use them in Cursor.
What fires, and when
BeforeAgent
bash "${extensionPath}/plugins/worktrunk/hooks/wt.sh" config state marker set ๐ค || true
AfterAgent
bash "${extensionPath}/plugins/worktrunk/hooks/wt.sh" config state marker set ๐ฌ || true
SessionEnd
bash "${extensionPath}/plugins/worktrunk/hooks/wt.sh" config state marker clear || true
Ships withworktrunk
Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
9.7k5 skills
Questions about the hooks in worktrunk.
- Which coding agents can use the hooks in worktrunk?
- The hooks in worktrunk install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.

