Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TUI

pitboss-tui is the live floor view: a tile grid of all workers in the current run, with live log tailing, budget and token counters, and a full control plane for cancellation, pause, reprompt, and approval management.

Opening the TUI

pitboss-tui                # open the most recent run
pitboss-tui 019d99         # open a run by UUID prefix
pitboss-tui list           # print a table of runs to stdout

The TUI polls the run directory at 250ms intervals. It can open a run while dispatch is in progress (most useful) or after the fact for post-mortem review.

Grid view

The main view is a tile grid. Each tile represents one actor (lead, sub-lead, or worker). Tiles show:

  • Actor role and ID (with for leads, for workers)
  • Current state: Running, Done, Failed, Paused, Frozen, Cancelled, etc.
  • Model family color swatch (opus = magenta, sonnet = blue, haiku = green)
  • Partial token count and cost estimate
  • KV/lease activity counters when non-zero (kv:N lease:M)

In depth-2 runs, sub-trees render as collapsible containers with a header showing the sub-lead ID, budget bar, worker count, and approval badge.

Detail view

Press Enter on a tile to open the Detail view. It’s a split pane:

  • Left — identity, lifecycle, token totals + cost, activity counters (tool calls / results / top tools), and a one-shot git diff --shortstat summary.
  • Right — scrollable log with semantic color coding (assistant text = white, tool use = cyan, tool results = green, rate limits = yellow, result events = magenta, system = gray).

Scroll the log:

KeysScroll
j / k / arrows1 row
J / K5 rows
Ctrl-D / Ctrl-U / PageDown / PageUp10 rows
g / GJump to top / bottom (G re-enables auto-follow)
Scroll wheel5 rows/tick
KeyAction
h j k l / arrowsNavigate tiles in grid view
EnterOpen Detail view for focused tile
oRun picker (switch to another run)
?Help overlay (full keybinding reference)
q / Ctrl-CQuit
EscClose any overlay or modal
TabCycle focus across sub-tree containers (depth-2 runs)

Control plane keybindings

KeyAction
xCancel focused worker (with confirm modal)
XCancel entire run (cascades to all workers)
pPause focused worker (requires initialized session)
cContinue paused worker
rOpen reprompt textarea (Ctrl+Enter to submit, Esc to cancel)

Approval pane

Press 'a' to focus the approval list pane (right-rail, 30% width). Pending approvals queue here as they arrive.

KeyAction
Up / DownNavigate the approval queue
EnterOpen detail modal for selected approval

In the approval modal:

KeyAction
yApprove
nReject (optionally add a reason comment)
eEdit the summary (Ctrl+Enter to submit, Esc to cancel)

Mouse support

ActionEffect
Left-click tileFocus + open Detail
Left-click run in pickerOpen that run
Right-click inside DetailExit back to grid
Scroll wheel inside DetailScroll log 5 rows/tick

pitboss attach — single-worker follow mode

For a terminal-only follow view on one worker without the full TUI:

pitboss attach <run-id> <task-id>
pitboss attach <run-id> <task-id> --raw       # stream raw stream-JSON jsonl
pitboss attach <run-id> <task-id> --lines 200 # larger backfill

Run-id is resolved by prefix (first 8 chars are enough when unique). Exits on Ctrl-C or when the worker emits its terminal result.