# 26. Subagents you can see

> **Status: partly implemented.** Claude-Code-parity subagents and swarm
> coordination ([`openagents/core/subagent.coax`](../../openagents/core/subagent.coax),
> [`openagents/core/agents.coax`](../../openagents/core/agents.coax),
> [`openagents/core/swarm.coax`](../../openagents/core/swarm.coax),
> [`coder/tui/oa-subagent.coax`](../../openagents/runtime/oa-subagent.coax), `#14096`),
> model tier selection ([`coax/lib/agent/tier.coax`](../../coax/lib/agent/tier.coax)),
> and Desktop visibility panes ([`apps/openagents-desktop/page/dashboard.coax`](../../apps/openagents-desktop/page/dashboard.coax),
> [`apps/openagents-desktop/page/chats.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](../../docs/transcripts/249.md) 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/subagent.coax), [`openagents/core/agents.coax`](../../openagents/core/agents.coax), and [`openagents/core/swarm.coax`](../../openagents/core/swarm.coax) (CC-parity subagent spawn, `SendMessage`, `TaskStop`, `TaskOutput`, and worktree isolation, `#14096`)
- [`coder/tui/oa-subagent.coax`](../../openagents/runtime/oa-subagent.coax)
- [`apps/openagents-desktop/page/dashboard.coax`](../../apps/openagents-desktop/page/dashboard.coax) and [`apps/openagents-desktop/page/chats.coax`](../../apps/openagents-desktop/page/chats.coax)
- [`coax/lib/agent/tier.coax`](../../coax/lib/agent/tier.coax)
- [`coax/lib/agent/observe/processes.coax`](../../coax/lib/agent/observe/processes.coax)
- [`coax/lib/agent/observe/claude-history.coax`](../../coax/lib/agent/observe/claude-history.coax)

On the protocol ([chapter 65](ch065-one-schema-three-carriages.md)):

| Record | Schema | Carriage | Today |
| --- | --- | --- | --- |
| A subagent and its parent | `openagents.session.v1` `ChildSession` ([spec 18.3](../../docs/protocol/openagents-protocol-spec.md#183-openagentssessionv1)); a claim on a task is `openagents.coordination.v1` `Claim` ([spec 22.2](../../docs/protocol/openagents-protocol-spec.md#222-openagentscoordinationv1)) | Nostr: private records in a kind 3188 envelope | Spec sketch; no `.proto` file |
| Tier rubric and the AI-call ledger | None yet ([compliance plan](../../docs/protocol/2026-11-11-compliance-plan.md), 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. `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/`](../../coax/lib/agent/observe) and
[`coax/lib/agent/tier.coax`](../../coax/lib/agent/tier.coax).

## Sources

- **Episodes:**
  - [Episode 289, *OpenAgents*](../../docs/transcripts/289.md): 0:30, subagents it can delegate to
  - [Episode 191, *Project Tricoder*](../../docs/transcripts/191.md): phone control of a desktop agent
  - [Episode 249, *Subagent UI Design*](../../docs/transcripts/249.md)
  - [Episode 250, *Ready the Fleet*](../../docs/transcripts/250.md)
  - [Episode 278, *Coder Commands Codex & Claude*](../../docs/transcripts/278.md): bounded concurrent delegation
- **Old code at `coder-v1.0.0`, crates:** `agent-fleet`, `supervise`, `coder-scheduler`, `background`, `coder-lease`
- **NIPs:** [NIP-COORD](../../nostr/nips/openagents/NIP-COORD.md), [NIP-SESS](../../nostr/nips/openagents/NIP-SESS.md), [NIP-ATIF](../../nostr/nips/openagents/NIP-ATIF.md), [NIP-WORK](../../nostr/nips/openagents/NIP-WORK.md)
- **Also:**
  - `programs/delegate-fan-out.json` at `coder-v1.0.0`
  - [Coder book, chapter 14: Forks, subagents and jobs](../../coder/book/ch014-forks-subagents-and-jobs.md)
- **Promises covered** ([audit](../../docs/audits/2026-11-10-episode-289-port-audit.md#1-what-episode-289-promised)): P3, P4
