Claude Code Integration

The worktrunk Claude Code plugin provides two features:

  1. Configuration skill β€” Documentation Claude Code can read, so it can help set up LLM commits, hooks, and troubleshoot issues
  2. Activity tracking β€” Status markers in wt list showing which worktrees have active Claude sessions (πŸ€– working, πŸ’¬ waiting)

Installation

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

Configuration skill

The plugin includes a skill β€” documentation that Claude Code can read β€” covering worktrunk's configuration system. After installation, Claude Code can help with:

Claude Code is designed to load the skill automatically when it detects worktrunk-related questions.

Activity tracking

The plugin tracks Claude sessions with status markers in wt list:

$ wt list
  Branch       Status        HEADΒ±    main↕  Path                 Remoteβ‡…  Commit    Age   Message
@ main             ^⇑                        .                     ⇑1      33323bc1  1d    Initial commit
+ feature-api      ↑ πŸ€–              ↑1      ../repo.feature-api           70343f03  1d    Add REST API endpoints
+ review-ui      ? ↑ πŸ’¬              ↑1      ../repo.review-ui             a585d6ed  1d    Add dashboard component
+ wip-docs       ? –                         ../repo.wip-docs              33323bc1  1d    Initial commit

β—‹ Showing 4 worktrees, 2 with changes, 2 ahead

Manual status markers

Set status markers manually for any workflow:

$ wt config state marker set "🚧"                   # Current branch
$ wt config state marker set "βœ…" --branch feature  # Specific branch
$ git config worktrunk.state.feature.marker '{"marker":"πŸ’¬","set_at":0}'  # Direct

Statusline

wt list statusline --claude-code outputs a single-line status for the Claude Code statusline. This may fetch CI status from the network when the cache is stale (often ~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

Claude Code statusline demo

Add to ~/.claude/settings.json:

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