docs(tui): describe live agent dock and controls

This commit is contained in:
Teknium
2026-09-07 21:28:11 -07:00
parent 1c55bc92fa
commit 19ee48bb4b
+20
View File
@@ -66,6 +66,26 @@ npm test # single run
npm run test:watch
```
## Live agents
The dock above the composer appears automatically while children are running. It shows
actual live-child counts, task names, elapsed time, and the latest activity. Its row budget
shrinks on short terminals; finished work remains in the existing `/agents` / `/replay` history
rather than permanently occupying composer space. Async completion units are not counted
as extra agents.
- **Ctrl+T** expands the roster without clearing your draft; **Esc** returns.
- **↑/↓** selects an agent, **Enter** opens its details (tools, output, files, usage).
- **t** opens its bounded live transcript tail; **g/G** moves to top/bottom.
- **e** opens a separate steering form. **Enter** queues guidance and **Esc** returns.
“Queued” means accepted for the next tool boundary, not confirmed delivery.
- **x** requests that the selected child stop; **X** requests a subtree stop.
- Existing sort/filter, spawn-pause, timeline, and replay controls remain available.
The roster hydrates from the session-scoped `subagent.list` RPC alongside streamed events.
Only an open tail view polls `subagent.tail`; steering uses the existing `subagent.steer` RPC.
No model tool schema or prompt-caching behavior changes.
## App model
`src/app.tsx` is the center of the UI. Heavy logic is split into `src/app/`: