Skip to main content
Case studies

Personal project Private repository 2026

What it cost to coordinate an AI agent fleet

In a small sample of fleet session trees, at list prices, the main session was 26% to 47% of recorded cost; what one agent cost against the fleet was never measured.

  • TypeScript
  • Bash
  • Claude Code plugins
  • git worktrees
  • GitHub GraphQL API

Case study - fcf, my private Claude Code plugin.

Problem

On 2026-11-05 I switched one of my projects to solo mode, one session with no subagents, and wrote down why: “the fleet multi agent is spending too much”. This study asks what coordinating that fleet cost, and what one agent gave up.

Constraints

  • One human owner, me, for every decision the fleet could not make itself.
  • Cost data only where Claude Code transcripts still carry usage records.

My responsibility

I designed and wrote fcf with AI coding assistants. I ran every fleet in this study, on four of my personal projects.

The fleet

flowchart TB %% One orchestrator, specialist agents %% Default model and effort per role at plugin v0.8.0; projects overrode some of them %% edges: --> flow (hand-off); -.->|back| sent back; -.->|uses| reads or uses; -.->|loop| repeats; -.- undirected hq["HQ, the main session / runs the loop, launches each agent, asks the owner to decide; by rule writes no code"] state["state.md"]:::artifact folder["project folder"]:::artifact design["Design artifact"]:::artifact owner["Owner"]:::actor merge["Merge / the owner, or HQ with standing permission"] subgraph cards["Agent cards"] planner["Planner / writes the task brief / Opus · xhigh"] checker["Plan-checker / checks brief against code / Sonnet · high"] implementer["Implementer / builds in a git worktree / Sonnet · low or medium or Codex, Cursor, GLM"] reviewer["Reviewer / internal review / Opus · high"] external["External review / one tool, by remaining usage / Claude Code · xhigh / Codex, Cursor, GLM · medium"]:::external surgeon["Surgeon / fixes a bug outside the plan, then the same review path / Opus · high"] end hq -.->|"loop: main loop"| hq hq -.-|"uses"| state hq -.-|"uses"| folder owner -.->|"uses"| hq owner -.->|"uses"| merge planner -.->|"uses"| design planner --> checker checker -.->|"back"| planner checker --> implementer implementer --> reviewer reviewer -.->|"back"| implementer external -.->|"back"| implementer reviewer --> external external --> merge reviewer -.->|"back"| surgeon surgeon --> reviewer surgeon --> external external -.->|"back"| surgeonOne orchestrator, specialist agentsDefault model and effort per role at plugin v0.8.0; projects overrode some of themmain loopHQ, the main sessionruns the loop, launches each agent,asks the owner to decide;by rule writes no codestate.mdproject folderDesign artifactOwnerAgent cardsPlannerwrites the task briefOpus · xhighPlan-checkerchecks brief against codeSonnet · highImplementerbuilds in a git worktreeSonnet · low or mediumor Codex, Cursor, GLMReviewerinternal reviewOpus · highExternal reviewone tool, by remaining usageClaude Code · xhighCodex, Cursor, GLM · mediumMergethe owner, or HQ withstanding permissionSurgeonfixes a bug outside the plan, then the same review pathOpus · highhand-offsent back with findingsreads, writes or decides

HQ, the main session, runs as a self-paced /loop. Each tick checks the fleet’s state and launches the next agent.

HQ writes a row to the ledger, .fleet/metrics.md, after a merge. Rows began with plugin 0.6.0 on 2026-10-11. I verified 53 entries against merged GitHub PRs across the four projects; that does not show whether every fleet merge has a row.

Of the 51 entries with a round count, 27 passed the first internal review round, 12 took two, and 12 took three or more, up to six. The internal reviewers are the fleet’s own agents, and a first-round pass can include non-blocking fixes. The ledger does not record the external round’s findings consistently enough to count.

Four switches on one project

The 2026-11-05 switch was the third of four on that project. The review caps in the timeline name P0 and P1, the two highest severities.

Four mode switches on one project2026-10-25single-agent mode2026-11-04HQ back on2026-11-05solo mode2026-11-28fleet modeMain sessiondoes the work(Opus, as surgeon)orchestrates onlydoes the workorchestrates onlySubagentsSonnet reviewer;external roundplanner andplan-checker;others not recordednone; externalround keptup to fourat onceOwner's note"opus 5.5 xhighone agent""HQ loop on, doRelease 10 checks...""spendingtoo much"testing Antigravityas HQReview caps set 2026-10-25, restated when HQ came back on 11-04 and 11-28:one round per review generally, at most two; P0 and P1 fixed, P2 trackedNever measured: what one-agent mode cost against fleet mode

Single-agent and solo mode wrote no ledger rows, so there is no per-task unit to compare their cost with the fleet’s. This project’s transcripts with usage data end on 2026-11-07. I also have no measure of what one agent gave up in review or parallel work.

What the transcripts show

I priced the Claude Code transcripts still on disk at API list rates. An HQ session counts if it started with /fcf:fleet-hq and launched at least one subagent. That rule could also catch single-agent mode, which kept a reviewer, so the split below is a share of recorded cost in sampled session trees and only approximates the cost of coordination.

On the mode-switch project, 11 of 130 main session files still carry usage data. Its two HQ sessions overlap the orchestrating window: one started 7 minutes before the 2026-11-04 order that turned HQ back on, and the other ran 16 minutes past the 2026-11-05 solo order, which said “after this round of agents”.

How a fleet session's cost splitsShare of recorded list-price cost in sampled session trees, not the billMode-switch project2 main sessions, 15 subagentsmain 47%subagents 53%Second project6 main sessions, 170 subagentsmain 33%subagents 67%Third project3 main sessions, 50 subagentsmain 26%subagents 74%0%50%100%Small sample: transcripts still carrying usage data. Both main sessions in themode-switch project straddle a mode-change order. Codex, GLM, and Cursor excluded.The fourth project has no HQ session left in its transcripts.

I re-simulated both cache lifetimes from the same transcripts.

Which cache lifetime was cheaperBoth lifetimes re-simulated from request timings, an approximationMode-switch projectSecond projectThird projectHQmain session1 hour cheaperran on 1 hour1 hour cheaperran on 1 hour1 hour cheaperran on 1 hourSubagents5 minutes cheaperran on 1 hour5 minutes cheaperran on 5 minutes5 minutes cheaperran on 5 minutesOnly 5% to 6% of HQ's request gaps fell between 5 and 60 minutes,but under a 5-minute lifetime each of those rewrites its whole context.

The mode-switch project’s subagents ran on one hour because its fleet settings asked for it (subagent_cache_ttl: 1h). Plugin 0.9.0, merged and tagged on 2026-11-30, removed that setting; as of that day the project’s files still set it.

The builder trial

Before any of the switches, on 2026-10-10, I tested whether cheaper builders could replace Opus: 11 graded builds on Claude Managed Agents across three mechanical tasks and one judgment task. A build counted as acceptable when no P0 or P1 finding was left open. Sonnet with an Opus advisor produced an acceptable build on two of the three mechanical tasks. No build was acceptable on the third mechanical task or on the judgment task.

Graded Sonnet runs against Opus baselinesList cost per build, one graded run per tested configurationMechanical task AOpus figure: an earlierbuild, outside the trial$0.49 Sonnet with advisor, plus $0.30 false start$2.82 OpusMechanical task BSonnet failed 9 of 44hidden tests Opus passed$0.77 Sonnet with advisor$3.81 Opus$0$1$2$3$4Task B's 9 failures all assert a release mechanism the brief left open.Third mechanical task and the judgment task: no setup produced an acceptable build.

The Opus advisor tool was 42% of the spend on the Sonnet builds that consulted it and 40% on the Haiku ones, so I cut it to one call per build. Because Haiku sessions used 3 to 8 times Sonnet’s tokens on the same task, I moved mechanical builds from Haiku to Sonnet.

Results

  • Mechanical builds moved from Haiku to Sonnet, with one advisor call.
  • One project dropped to one agent and later returned to fleet mode.
  • Still unknown: what one agent costs against the fleet, and what the external review round finds.

Stack

TypeScript · Bash · Claude Code plugin hooks, skills, and agents · git worktrees · GitHub GraphQL API · Codex, Cursor, GLM, and Antigravity

What I’d change today

I’d write a ledger row in every mode, single-agent and solo included, and make the external review outcome a required field. Plugin 0.12.0, merged and tagged on 2026-11-30, makes solo a plugin mode, with no subagents by default, that writes a ledger row and runs at least one external review round on every PR. The ledger still counts external findings together with internal ones.

The last switch, on 2026-11-28, put the project back in fleet mode to test whether Antigravity, running a Gemini model, can take the HQ role. Its first three subagents ran on Gemini and stopped at the Gemini quota limit within ten minutes, with nothing committed. On my word they were relaunched on Claude models, and the HQ test stopped there without a result. With a row in every mode, I could compare a test like that with the modes before it.