Skip to main content

orun tui

orun tui opens the Orun Cockpit — an interactive terminal UI for browsing components, generating plans, and watching runs.

Launch

orun tui

The command takes no positional arguments. It auto-discovers the nearest intent.yaml and .orun/ directory the same way orun plan and orun status do.

Layout

The cockpit is a three-pane shell with an optional bottom information band:

┌─ Orun Cockpit ────────────────────────────────────────────────────────────┐
│ repo: sourceplane/orun plan: latest a1b2c3d run: running │
├──────────────┬────────────────────────────────────────┬───────────────────┤
│ SIDEBAR │ MAIN │ INSPECTOR │
│ │ │ │
│ Components │ mode-specific view │ selected item │
│ Environments │ (browse / plan studio / activity / │ field list │
│ Plans │ logs / history) │ one-line previews │
│ Runs │ │ │
│ Logs │ │ │
├──────────────┴────────────────────────────────────────┴───────────────────┤
│ BOTTOM PANEL (toggle with `b`) — level-aware overview │
└───────────────────────────────────────────────────────────────────────────┘

The inspector auto-opens when the terminal is at least 100 columns wide. Below that, toggle it manually with i.

Modes

ModePurpose
BrowseLists components, environments, compositions, and per-component metadata.
Plan StudioCompose intent, generate plans, drill into jobs and steps, dry-run or real-run from the TUI.
ActivityDrilldown across runs, jobs, and steps with live status.
LogsStreaming log explorer scoped to a run, job, or step.
HistoryPast runs and plans, sorted by recency.

Global keys

KeyAction
tabSwitch between components and activity
iToggle inspector
bToggle bottom panel
?Help
:Command palette
/Search
ctrl+oNavigate back (mode history)
ctrl+iNavigate forward (mode history)
escBack / pop drilldown level
qQuit
g aGo to Activity
g pGo to Plan Studio
g rGo to Run dashboard
g lGo to Logs
g hGo to History
g cGo to Components

Plan Studio (Compose)

Plan Studio is a three-level drilldown:

  1. Jobs list — every job in the current plan, listed by full GitHub-style job ID. The inspector shows job metadata (deps, env, profile, path) and a flat list of step names.
  2. Steps list — every step in the selected job. The inspector shows one-line previews per step.
  3. Step detail — the full step body: phase, use, shell, workdir, timeout, retry, and the run block.

Press (Enter) to drill in, esc to pop a level.

KeyAction
gGenerate plan
RReal run
dDry run
sSave current draft
cClear draft
eCycle environment
tCycle trigger
/ Move selection
Drill in / open
escPop one level (or pop mode at root)

The bottom panel (toggle b) is level-aware:

LevelBottom panel shows
JobsN jobs, N envs, N components + plan checksum
StepsN steps, use / run counts, phase breakdown
Stepcapability, phase, timeout, retry, shell

Job step bodies live in the drill-in view rather than the inspector — the inspector only shows a flat list of step names, so jobs with large bodies don't overflow.

Activity

Activity is a four-level drilldown:

  1. Index — all recent runs.
  2. Run — jobs in the selected run.
  3. Job — steps in the selected job.
  4. Step — full step detail.

The bottom panel changes per level:

LevelBottom panel shows
IndexOVERVIEW ( / / live counts + recent runs sparkline)
RunRUN PROGRESS (per-job status bar)
JobJOB status (steps, timing, exit)
StepSTEP detail (phase, capability, exit, duration)

Live jobs pulse via a four-frame wall-clock spinner. Step rows show jump-back chips so deep drilldowns can be popped quickly:

◀ esc · back to job
◀◀ esc esc · back to run

Preferences

The TUI persists inspector visibility, bottom panel visibility, sidebar collapsed state, and sticky per-component overrides (env / trigger) to:

~/.orun/cockpit.json

Writes are best-effort and silent — a missing or corrupt prefs file falls back to defaults.

See also