Terminal dashboard
The cockpit's layout, its three views, every key, and what the gauge and the phase rail tell you during a run.
Bare yokai opens the cockpit when stdout is a terminal. It watches the supervisor and does not pace it. For plain text, use --headless. Cockpit and headless compares the two.
Use a crisp monospace font, such as SF Mono on macOS. The cockpit draws in the terminal's cell grid and cannot load fonts.
Layout
| Region | Shows |
|---|---|
| Header | Active agent and model, cumulative cost and tokens, theme |
| Left column | Phases with their tiers, and recent ledger rows with outcome and cost |
| Gauge | Context window use for the current session, green to amber to red |
| Phase rail | plan → coder → sensors → judge → seal → gate, with the live station marked; quiet during recovery |
| Body | The current view |
| Footer | Setup, stop or resume, View, Theme, Quit |
Wide terminals show Plan, Build and Seal cards above the live activity, with the Build iteration count. Narrow ones stack the summary above the stream. A tool label shows the latest call the agent reported, not proof that it is still running. A dash means the agent did not report that number.
Views
w, or the View chip, cycles three views.
- Cockpit: the agent stream for the current phase: its text, thoughts, tool calls, file edits and act banners. It clears at each new phase and keeps a bounded amount of text.
- Sessions: every turn the phase opened (Plan, each coder and judge turn, Seal), grouped by phase, each with its session's context bar. Up and down, Page Up and Page Down or the wheel scroll; End returns to live. On tall terminals, left and right select a turn for the inspector.
- Deliverable: the commit range a finished phase produced, as a file tree and a highlighted patch. Tab switches between tree and patch, Enter opens a file's patch, left and right scroll it, Escape returns to the tree. Verification status is shown separately from whether a commit exists.
The stream is not a log. The durable record of every turn is .koi/run/sessions.jsonl.
Keys
| Key | Action |
|---|---|
| any key on the splash | Skip to the cockpit |
w |
Cycle views |
t |
Cycle themes |
p |
Open setup while stopped; during a phase it waits for the phase to end |
x |
Stop the running phase: kills the agent and shows STOPPED |
r |
Resume a STOPPED run from the same files |
q, Esc |
Ask to quit; y confirms and kills the agent, n cancels |
↑ ↓ ← → |
Scroll the stream or the deliverable |
PgUp PgDn |
Page |
| Shift + wheel | Scroll sideways |
The chips in the footer are clickable. Stop shows only while a phase runs and Resume only while stopped. A HALT shows neither: r cannot continue a broken contract. Fix the cause and launch again.
Context gauge
The gauge updates live when the agent sends ACP usage updates, as Claude Code does. OpenCode reports usage at the end of each turn, so the gauge may read usage at turn end. Cursor sends none; the gauge shows the model's declared window size. The header total and the ledger are the authority on cost.
With token savings, several turns share a session. Every row for that session shows its latest reading. Compaction can lower it. A new session starts unknown.
Themes
terminal (the default) uses your terminal's own colours. yoru (night) and hiru (day) bring their own backgrounds so the cockpit reads well on any terminal. yoi and asa are aliases for yoru. Set the starting theme with --theme or YOKAI_THEME; t cycles terminal → yoru → hiru. Themes never change what the supervisor does.
What can go wrong
- The stream is quiet with
waiting on sensors…. A long check is running and the cockpit lowers its frame rate while it waits. Raisesensor_timeout_secsif checks legitimately need more than 15 minutes. HALT: agent turn … timed out. The turn exceededagent_timeout_secs(30 minutes by default). Raise it, or find out why the agent hung.- The phase list shows an old tier after you changed launch settings. Tier labels use the same resolved settings as execution and keep them through progress updates. Restart Yokai to pick up new launch settings.