pi-orchestra

Browsing

/orchestra in a TUI session opens a full-screen browser. The widget above the editor is not focusable, so this is the surface for scrolling and searching when a run has more rows than fit on screen.

orchestra — value-millions (run_64219)
tasks · workers · runs    / search
→ ? question 12s   W4 — Report pages (awards, market, spend, budget…)
  ● running 3m     W2 — Complex project surfaces
  ⏱ timeout 15m    W1 — Lite product surfaces
  ✗ failed         T1 — Lite tag manager matches the handoff
  ◌ ready          W5 — Compare page
  ✓ 9 settled · 3 timed out — /orchestra browse
↑↓ · ⏎ · j join · d log · D diff · space mark · x stop · r retry · c copy · s/t · tab · q

Keys

Key Action
↑ ↓ move the cursor (one row)
PgUp PgDn page
home end, g G first / last row
ctrl+d ctrl+u half page down / up
/ search: typing filters live (field terms supported, see below)
space mark the row (▣); bulk actions then apply to every mark
s / t sort by cost / by time (default: urgency)
esc in search: clear it; otherwise close
tab cycle scope: tasks → workers → runs
enter open the detail view
j join the worker's chat (see Joining)
d full transcript of the worker, opening at the tail
D diff of what the worker changed since it started
m message the worker (editor prefilled empty)
x stop the worker, or every marked one (one confirmation)
r retry a worker, or every marked one (retryOf, failure prepended)
c put the marked (or current) ids in the prompt editor
f follow the worker's transcript in the widget
o make the highlighted run active
q close

Filters

The search box (and filter= on task_list/worker_list) accepts field terms combined with free text:

Term Matches
status:failed substring of the status (status:run finds running)
agent:reviewer, model:sonnet agent / model string
kind:worker exact kind: task, worker or run
run:ab12, id:9c4e, task:port run id, any id, task title
cost:>0.1, turns:>=8 numeric comparisons on spend and turns

Terms are ANDed: status:failed agent:reviewer cost:>0.1. An unknown field name is treated as plain text, so fix: the bug still searches.

Ordering

Rows sort by urgency by default (s and t switch to spend and recency):

  1. ? question — blocked, waiting on you
  2. ● running / ◌ starting
  3. ⏱ timeout / ✗ failed / ☠ lost
  4. ◌ ready — startable now
  5. · pending, ⊘ blocked
  6. ✓ done / settled

A task's status comes from its dispatch whenever one exists. If a worker settled, the task is done even if the task row was written as failed first; if the worker timed out, the row keeps ⏱ and the widget reports how many timed out.

Detail view

enter shows metadata (status, agent, model, pid, usage, timestamps), the worker's report, and the tail of its transcript; a run's detail adds the Cost & turns table with its spend sparkline. ↑ ↓ PgUp PgDn home end scroll; esc, q or h go back to the list with the search and cursor preserved.

d opens the full transcript (up to 5000 entries) and starts at the end. It follows the file live while it stays open: f toggles following, and scrolling pins the view where you left it.

Joining

j (or /orchestra join <id>) opens that worker's conversation full-screen: your brief, its replies, thinking, tool calls and results, newest at the bottom. Typing goes to the worker — a steer while it runs, a follow-up turn once it has settled (with keepOpen). /stop, /retry, /resume, /diff, /open, /back and /exit are available in the composer (/back returns to the list, /exit to your own session); ctrl+e opens the full editor, ctrl+t toggles thinking, ctrl+o expands tool output, PgUp/PgDn and Home/End scroll (scrolling pauses the tail; End resumes it), enter sends.

Leaving: esc returns to the browser, ctrl+g to the main session. Joining never changes the worker or the run.

Bulk actions

space marks rows. With marks present, x stops them after a single confirmation, r starts a repair dispatch for each, and c writes their ids into the prompt editor (e.g. dispatch_ab12cd34ef dispatch_99ff00aa11) so they can be pasted into orchestra_send or a shell command. Saving a search, a sort and a mark set is per open browser, not persisted.

Scope

Scope Rows
tasks The active run's tasks, with their worker when one exists.
workers Dispatches, including free-form ones with no task.
runs All runs, ● marking the active one; o switches.

Outside the TUI

pi -p, RPC and JSON modes print the same data as text:

/orchestra browse            → task table (40 rows)
/orchestra find <query>      → matching tasks
/orchestra open <id>         → detail text for one item

The model-facing equivalents are orchestra action=task_list and action=worker_list with filter, limit and offset.

Widget vs browser

Widget Browser
Focusable no yes
Rows widgetMaxLines (8) + +N more all, scrollable
Search no yes
Actions no message, stop, follow, switch run
Always visible yes only while open

The widget stays the glanceable map; the browser is where you act.