26. Subagents you can see
Status: partly implemented. Claude-Code-parity subagents and swarm coordination (`openagents/core/subagent.coax`, `openagents/core/agents.coax`, `openagents/core/swarm.coax`, `coder/tui/oa-subagent.coax`,
#14096), model tier selection (`coax/lib/agent/tier.coax`), and Desktop visibility panes (`apps/openagents-desktop/page/dashboard.coax`, `apps/openagents-desktop/page/chats.coax`) pass oncpu. Remaining: cross-device NIP-COORD sync and mobile fleet cards.
Premise
One task goes to one engine. This chapter splits a request into several tasks that run at once, and shows every one of them: who is working, on what, and what each has said.
Draft
Some requests are many tasks. "Fix these ten issues" is ten pieces of work that don't depend on each other. The agent hands each to a subagent and reports when they finish.
Episode 289 promises that the subagents are visible, and the archive explains why that is hard. In Episode 249 child conversations were missing from the screen. In [Episode 250](../../docs/transcripts/250.md) a fleet reported the wrong models and invented commands. A fleet you can't inspect is a fleet you can't trust. So each subagent has a name, a card that says what it was asked and why, its own full history, and the model it actually ran on.
Today's tree has the first version. Golemancy gives each issue a model tier, so a small fix goes to a small model and a hard one to a strong model. The Golems board shows each agent's card with its latest message. Chapter 72 puts the same agents in the world.
Three rules keep a fleet useful. A subagent ends by reporting done or blocked, never in the middle of a wait. Agents don't send each other courtesy replies. And a parent can stop a child at any time.
The Coder book covers forks, subagents and jobs inside one coding session. This chapter covers the fleet a general agent runs across tasks.
What we build
A plan for what this chapter ships once the draft is approved:
- Fan-out in the plan: one request, several member calls, one report.
- A card and a full history for every subagent, on every surface.
- Tier selection per task, and a stop that reaches every child.
It builds on what exists today:
- `openagents/core/subagent.coax`, `openagents/core/agents.coax`, and `openagents/core/swarm.coax` (CC-parity subagent spawn,
SendMessage,TaskStop,TaskOutput, and worktree isolation,#14096) - `coder/tui/oa-subagent.coax`
- `apps/openagents-desktop/page/dashboard.coax` and `apps/openagents-desktop/page/chats.coax`
- `coax/lib/agent/tier.coax`
- `coax/lib/agent/observe/processes.coax`
- `coax/lib/agent/observe/claude-history.coax`
On the protocol (chapter 65):
| Record | Schema | Carriage | Today |
|---|---|---|---|
| A subagent and its parent | openagents.session.v1 ChildSession (spec 18.3); a claim on a task is openagents.coordination.v1 Claim (spec 22.2) | Nostr: private records in a kind 3188 envelope | Spec sketch; no .proto file |
| Tier rubric and the AI-call ledger | None yet (compliance plan, step C6) | Files on one machine | Hand-written JSON with two encoders. Step C6 leaves one |
The chapter's check
- Source: fan-out in the plan and the fleet view in
coax/lib/agent/observe/, with fake engines that replay recorded sessions. - Trace: "fix these three issues" starts three child calls.
treeshows three cards, each with its name, what it was asked, its tier and the model it ran on. Afterclockadvances past the last recorded reply, each child reports done and the parent prints one report. - Refusal:
tap fleet.stopon the parent stops every child. Each card shows stopped, and the fake engines record no further calls. - Independent check: the model on each card matches the model the fake engine recorded serving that call. The tier for each issue matches a table written by hand from the tier rubric.
Planned paths: none. The fleet view extends `coax/lib/agent/observe/` and `coax/lib/agent/tier.coax`.
Sources
- Episodes:
- Episode 289, *OpenAgents*: 0:30, subagents it can delegate to
- Episode 191, *Project Tricoder*: phone control of a desktop agent
- Episode 249, *Subagent UI Design*
- Episode 250, *Ready the Fleet*
- Episode 278, *Coder Commands Codex & Claude*: bounded concurrent delegation
- Old code at
coder-v1.0.0, crates:agent-fleet,supervise,coder-scheduler,background,coder-lease - NIPs: NIP-COORD, NIP-SESS, NIP-ATIF, NIP-WORK
- Also:
programs/delegate-fan-out.jsonatcoder-v1.0.0- Coder book, chapter 14: Forks, subagents and jobs
- Promises covered (audit): P3, P4