Skip to content
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.

From plugin
worktrunk
9.7k5 skills3 hooks

Claude Code

> /plugin marketplace add max-sixty/worktrunk
> /plugin install worktrunk@worktrunk

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
Read hooks/hooks.json
@max-sixty
Ships withworktrunk

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Stars on GitHub

Momentum

stars in total
9.7k
Star history of max-sixty/worktrunk on GitHub, a chart by star-history.com

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.