Utility Commands¶
These are diagnostic and setup commands. Most are for initial setup or troubleshooting—you won't use them during normal hub conversations.
When you might use these directly:
- wt doctor — Debugging installation issues
- wt completion — Setting up shell completions (one-time setup)
- wt handoff — Claude runs this when you ask to hand off to a fresh instance
Diagnostics¶
wt doctor¶
Diagnose wt setup issues.
Checks:
- Git version and worktree support
- Tmux version
- Beads installation
- Configuration validity
- Project registrations
Output:
✓ Git 2.39.0 (worktree support)
✓ Tmux 3.3a
✓ Beads found at ~/.local/bin/bd
✓ Config file valid
✓ 2 projects registered
- myproject: ~/code/myproject
- other: ~/code/other
wt events¶
Show wt event log.
Options:
| Flag | Description |
|---|---|
--follow, -f |
Tail events in real-time |
--since <duration> |
Show events since duration (e.g., 1h, 30m) |
-n <count> |
Show last N events |
Examples:
Event log location: ~/.config/wt/events.jsonl
Shell Integration¶
wt completion <shell>¶
Generate shell completion script.
Setup:
wt keys¶
Output tmux keybinding configuration.
Setup:
Keybindings installed:
| Key | Action |
|---|---|
C-b W |
Session picker popup |
C-b N |
Create new session prompt |
C-b M |
Watch dashboard popup |
C-b H |
Jump to hub session |
C-b D |
Detach from hub |
Session Context¶
wt prime¶
Inject startup context for new Claude session.
Used internally when spawning sessions. Provides Claude with:
- Session information
- Bead details
- Project context
- Available commands
wt pick¶
Interactive session picker.
- Uses fzf if available
- Falls back to numbered prompt
Information¶
wt version¶
Show version information.
Output:
wt help¶
Show main help text.
Get help for specific commands:
Advanced¶
wt handoff¶
Hand off hub to fresh Claude instance.
wt handoff
wt handoff -m "Focus on bug fixes"
wt handoff -c # Auto-collect state
wt handoff --dry-run # Preview collection
See Hub Commands for details.
Environment Variables¶
wt respects these environment variables:
| Variable | Description |
|---|---|
EDITOR |
Editor for wt config edit |
WT_CONFIG_DIR |
Override config directory |
WT_DEBUG |
Enable debug logging |
Tmux Integration¶
Popup Commands¶
From within tmux, these commands open popups:
# Session picker
tmux display-popup -E "wt pick"
# Watch dashboard
tmux display-popup -E -w 80% -h 80% "wt watch"
# New session prompt
tmux command-prompt -p "bead:" "run-shell 'wt new %%'"
Status Line¶
Show current session in tmux status line: