Claude Code Integration

Worktrunk includes a Claude Code plugin that automatically tracks which worktrees have active Claude sessions. When Claude starts working in a worktree, the plugin sets a status marker; when Claude waits for input, the marker updates. This makes it easy to monitor multiple parallel agents from wt list.

Status tracking

The plugin adds status indicators to wt list:

$ wt list
  Branch       Status         HEAD±    main↕  Path                Remote⇅  Commit    Age   Message
@ main             ^                          ./repo                       b834638e  1d    Initial commit
+ feature-api        🤖              ↑1      ./repo.feature-api           9606cd0f  1d    Add REST API endpoints
+ review-ui      ?   💬              ↑1      ./repo.review-ui             afd3b353  1d    Add dashboard component
+ wip-docs       ?_                           ./repo.wip-docs              b834638e  1d    Initial commitShowing 4 worktrees, 2 ahead

Installation

$ claude plugin marketplace add max-sixty/worktrunk
$ claude plugin install worktrunk@worktrunk

Manual status markers

Set status markers manually for any workflow:

$ wt config var set marker "🚧"                   # Current branch
$ wt config var set marker "" --branch feature  # Specific branch
$ git config worktrunk.marker.feature "💬"        # Direct git config

Statusline

wt list statusline --claude-code outputs a single-line status for the Claude Code statusline. This fetches CI status from the network (1-2 seconds), making it suitable for async statuslines but too slow for synchronous shell prompts. If a faster version would be helpful, please open an issue.

~/w/myproject.feature-auth !🤖 @+42 -8 ↑3 ⇡1 | Opus

Add to ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "wt list statusline --claude-code"
  }
}