.claude/skills/tui-debug-in-pane/SKILL.md
Use when you need to reproduce or debug TUI rendering issues (garbled output, broken streaming, layout corruption) by running ralph in a tmux split pane and capturing live output.
npx skillsauth add mikeyobrien/ralph-orchestrator tui-debug-in-paneInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Debug TUI rendering bugs by launching ralph in a tmux split pane and capturing live output. The split keeps your main pane free for inspection commands.
| Task | Command |
|------|---------|
| Identify current pane | tmux display-message -p '#{session_name}:#{window_index}.#{pane_index}' |
| Create split pane | tmux split-window -h -t SESSION:WINDOW -c /path/to/repo |
| List panes | tmux list-panes -t SESSION:WINDOW |
| Fix shell in pane | tmux send-keys -t PANE "exec /path/to/fish" Enter |
| Send command | tmux send-keys -t PANE "command" Enter |
| Capture output | tmux capture-pane -t PANE -p -S -60 |
| Quit TUI | tmux send-keys -t PANE q |
| Force stop | tmux send-keys -t PANE C-c |
| Kill split pane | tmux kill-pane -t PANE |
tmux display-message -p '#{session_name}:#{window_index}.#{pane_index}'
tmux split-window -h -t SESSION:WINDOW -c /path/to/repo
tmux list-panes -t SESSION:WINDOW
Split panes inherit the tmux server's default shell (bash), not the parent's. Tools like pi need fish (mise/Node).
tmux send-keys -t PANE "exec /nix/store/km9w9r1p4nl92y5fp4vfwsjymjig4axl-fish-3.7.1/bin/fish" Enter
tmux send-keys -t PANE "which pi && pi --version" Enter
rm -f .ralph/loop.lock
git worktree prune
# Prefer release binary (faster startup)
tmux send-keys -t PANE "target/release/ralph run -c CONFIG.yml -p 'prompt' --max-iterations N" Enter
# Or with cargo (must specify --bin for this workspace)
tmux send-keys -t PANE "cargo run --bin ralph -- run -c CONFIG.yml -p 'prompt' --max-iterations N" Enter
sleep 20 # Pi/Kiro take 15-30s to start streaming
tmux capture-pane -t PANE -p -S -60
ls -lt .ralph/diagnostics/logs/ | head -5
tmux send-keys -t PANE q
tmux send-keys -t PANE C-c
tmux kill-pane -t PANE
exec /path/to/fish..ralph/loop.lock exists, ralph spawns worktree loops instead of running normally. Always delete it first.cli.backend: pi in the config, ralph uses claude regardless of hat settings.name field: HatConfig requires name; omitting it causes a config parse error.q prepends it to your next command. Check if the TUI is still running before sending quit keys.development
Introspect, explain, and improve Ralph Orchestrator using its published llms.txt doc map. Use this skill whenever the user asks questions about Ralph's behavior, wants to understand how a Ralph internal works (event loop, hats, memories, tasks, backends, presets), debug an unfamiliar failure mode, or propose a code change to the ralph-orchestrator repo. The skill teaches the agent to discover authoritative answers from the live docs via llms.txt before guessing, and to scope improvements through the published architecture rather than the local checkout alone.
development
Run, monitor, resume, merge, and debug Ralph loops. Use this skill whenever the user asks to operate `ralph run` or `ralph loops`, inspect loop state, recover suspended loops, analyze diagnostics, or unblock merge queue issues.
development
Create, inspect, validate, explain, and improve Ralph hat collections. Use this skill whenever the user asks to make or refine a `.ralph/hats/*.yml` workflow, debug hat routing, explain event topology, or tune a multi-hat Ralph run.
testing
A directory-style test skill for smoke testing