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 on cpu. 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:

On the protocol (chapter 65):

RecordSchemaCarriageToday
A subagent and its parentopenagents.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 envelopeSpec sketch; no .proto file
Tier rubric and the AI-call ledgerNone yet (compliance plan, step C6)Files on one machineHand-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. tree shows three cards, each with its name, what it was asked, its tier and the model it ran on. After clock advances past the last recorded reply, each child reports done and the parent prints one report.
  • Refusal: tap fleet.stop on 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