Skip to content

Troubleshooting

Quick Fixes

ProblemCauseFix
Agents spawn in-process instead of tmux panesNot inside a tmux sessionStart tmux first: tmux new -s dev
Garbled pane output with 4+ agentstmux send-keys race conditionUse shipwright session (uses new-window instead of split-window)
Agents fall back to in-process modetmux not detectedRun inside a real tmux session (echo $TMUX should show a path)
Context window overflowToo many tasks per agentKeep tasks focused (5-6 per agent)
Panes don’t show agent namesPane titles not setUse shipwright session which sets titles automatically
White/bright pane backgroundsNew panes not inheriting themeRun shipwright init or shipwright upgrade --apply

tmux send-keys Race Condition

Severity: Medium — affects sessions with 4+ agents

When Claude Code spawns 4+ agent panes simultaneously using split-window + send-keys, tmux can deliver keystrokes to the wrong pane. This happens because tmux processes these operations asynchronously.

Symptoms:

  • Agent commands appear in the wrong pane
  • Panes start with garbled or partial commands
  • Some panes sit empty while others received duplicate input

Fix: The shipwright CLI uses new-window instead of split-window for spawning, which avoids the race. If spawning panes manually, add a small delay:

Terminal window
tmux split-window -t "$session" -h
sleep 0.1
tmux send-keys -t "$session" "claude" Enter

Silent Fallback to In-Process Mode

Severity: Low — agents work but without separate panes

Agent teams can silently fall back to in-process mode if tmux isn’t detected properly.

Verify tmux is active:

Terminal window
echo $TMUX # Should show the tmux socket path
tmux list-panes # Should show multiple panes if agents are running

Fix: Make sure you’re inside a real tmux session (not nested) and launch Claude from within it.

Terminal Compatibility

Split-pane agent teams require a terminal emulator with proper tmux support.

TerminalStatus
iTerm2 (macOS)Supported (recommended)
AlacrittySupported
KittySupported
WezTermSupported
macOS Terminal.appSupported
VS Code terminalNot supported
GhosttyNot supported

Context Window Pressure

With 3+ agents running complex tasks, individual agents can hit context limits faster than expected.

Mitigations:

  1. Limit teams to 2-3 agents — more agents means more coordination overhead
  2. Keep tasks focused — 5-6 specific tasks per agent
  3. Set aggressive auto-compactCLAUDE_CODE_AUTOCOMPACT_PCT_OVERRIDE=70
  4. Use haiku for subagent lookupsCLAUDE_CODE_SUBAGENT_MODEL=haiku
  5. Assign different files to each agent

Orphaned Panes After Shutdown

When teammates shut down, the Claude process exits but the tmux pane remains open.

Fix: Use the pane reaper:

Terminal window
shipwright reaper # One-shot cleanup
shipwright reaper --watch # Background auto-cleanup every 5s
shipwright reaper --dry-run # Preview what would be reaped

Or press prefix + R for a quick cleanup.

TPM Plugins Not Loading

After installation, tmux plugins don’t load until TPM is initialized.

Fix: Press prefix + I (capital I) after starting tmux. This only needs to be done once.

If TPM isn’t installed:

Terminal window
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Getting Help

  • Run shipwright doctor to diagnose common setup issues
  • Check the FAQ for common questions
  • Open an issue on GitHub