Skip to content

R12 - Model fit by agent role

Purpose: Which agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding. Measured over the session transcripts, ledgers and pull requests of campaigns I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (2026-11-08 to 2026-11-29), with list prices read on 2026-11-29. Part of the plan in I816I816 (closed): Harness experiments: review lanes, cheaper models, and a campaign efficiency baselineTracks a set of experiments on the agent harness.. The note ranks and designs tests. It doesn’t decide.

Requirements: none. This note is about the agent harness, not the product.

Today every agent runs on Opus 5.5 at medium effort, except the security reviewer (Fable 5.2 at high) and the wave lead and train reporter (Opus 5.5 at high). The agent files in .claude/agents/ set this, and docs/agents/orchestration.md (“Effort”) says a spawn doesn’t set its own. The same section lets the security review run “on Opus when Fable has no credits”. That fallback never ran: every security reviewer call in the four campaigns went to Fable, PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s round 2 re-review included (40 calls to claude-fable-5-2), although its posted attribution line names Opus. No review measured a cheaper security reviewer. R02-builder-effortR02-builder-effort: Builder effort trialWhether builders should run at high effort instead of medium. moved builders and code reviewers from high to medium. R03-fix-rounds-compactionR03-fix-rounds-compaction: Fix rounds and compactionWhen a wave lead should resume a builder for review findings and when it should start a fresh one, and what Claude Code's compaction and prompt cache settings do for builders, reviewers and leads. measured what a fix round costs. Nobody has measured a cheaper model for any role.

I817I817 (closed): R10: where campaign dollars and time go, and which harness changes would help mostA research note for the researcher agent: R10, docs/research/R10-campaign-efficiency.md. measures campaign cost and time by role in detail, and I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md. designs the review lanes and a reference defect list. This note uses a simple cost share and leaves both of those to them.

The repository is public. The note gives figures and short quotes about the harness, and nothing from a security finding’s content beyond its count, severity and file.

From https://platform.claude.com/docs/en/about-claude/pricing, read 2026-11-29, in dollars per million tokens:

Model Input 5-minute write 1-hour write Cache read Output
Fable 5.2 8 10 16 0.20 40
Fable 5.1 10 12.50 20 0.25 50
Opus 5.5 4 5 8 0.20 20
Sonnet 5.5 2 2.50 4 0.10 10
Haiku 5.5, prompt up to 100k 0.10 0.125 0.20 0.01 0.50
Haiku 5.5, prompt over 100k 0.50 0.625 1 0.05 2.50

On speed, https://platform.claude.com/docs/en/about-claude/models/overview rates latency as “Moderate” for Fable and Opus, “Fast” for Sonnet and “Fastest” for Haiku, with no tokens-per-second figure. It gives each a 1M context and 128k of output, and a default effort of high for Fable and Sonnet and medium for Opus and Haiku. This note doesn’t measure speed.

Over the four campaigns, 178 agents cost 510.65 dollars at list price (I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 55.49, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 61.23, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 143.90, I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 250.03). Median calls, context and minutes are per agent.

Role Agents Dollars Share Calls Context, median and largest Minutes Model, effort
Builder 40 182.41 35.7% 71 126k, 167k 43 Opus, medium
Security reviewer 28 154.44 30.2% 34 157k, 378k 12 Fable, high
Code reviewer 38 38.45 7.5% 20 67k, 164k 6 Opus, medium
Manager 4 29.66 5.8% 186 195k, 211k Opus, medium and high
Wave lead 11 28.77 5.6% 45 119k, 165k 62 Opus, high
Train reporter 3 23.15 4.5% 100 286k, 305k Opus, high
Spike builder 5 20.47 4.0% 92 162k, 167k Opus, medium
/code-review fork 38 19.49 3.8% 12 46k, 102k 2 Opus, medium
Dispatcher 11 13.80 2.7% 39 80k, 102k Opus, medium and high

Where the money goes inside a role, as cache writes, cache reads and output (input is under 1%):

Role Writes Reads Output
Builder 34% 38% 28%
Security reviewer 45% 15% 40%
Code reviewer 50% 22% 28%
/code-review fork 47% 16% 37%
Wave lead 36% 34% 30%
Train reporter 28% 45% 28%

Builders, wave leads, managers, spike builders and dispatchers write the 1-hour cache, and reviewers, forks and the train reporter write the 5-minute one (observed).

The tool calls, with Bash split by its command:

  • Builder (4,699 calls): Bash reads (cat, grep, sed) 38%, other Bash 14%, git 12%, Edit 12%, Write 6%, go 4%, gh 4%, mise run ci and check watching 3%. Most calls read code. The judgment is in the few edits and in what the builder chooses to test.
  • Security reviewer: Bash reads 45%, git 14%, Read 13%, go 7%. It reads and reasons. 40% of its cost is output.
  • Code reviewer: reads 40%, git 12%, mise 12%, Skill 4%. The skill call starts the fork, which does the reading behind the findings.
  • Wave lead: Agent 14%, Write 13%, SendMessage 10%, gh 9%, other Bash 35%. It spawns, routes findings, merges and writes reports.
  • Train reporter: other Bash 50% and reads 19%. It reads the ledgers and writes one page.
  • Dispatcher: other Bash 48%, reads 19%, gh 11%.

Builders and both reviewers do the work the reviews exist to check: their mistakes are defects. Leads, managers, dispatchers and the train reporter follow a written procedure, and their mistakes cost rounds and checks, not defects on main.

Sorted by what each builder changed, from its description and pull request. Security-sensitive means a change in wb-netd, wb-proxyd, wb-hostd’s socket handlers, the hand-off path or git transport. A “later round” is everything after the builder’s first resume message, which is a fix round in most cases.

Kind Builders Dollars First build Later rounds Resume messages
Security-sensitive 23 148.85 96.20 52.65 (35%) 29
Spike 5 20.47 10.24 10.23 (50%) 10
Other, not security-sensitive 6 12.39 10.01 2.38 (19%) 5
Test and flake fixes 6 10.92 9.12 1.81 (17%) 5
Docs and specs 5 10.25 6.90 3.34 (33%) 4

Over the 34 pull requests there were 54 code review comments and 39 security review comments, and 35 re-checked: comments. They include PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s code round 4 and PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet.’s security round 3, each posted twice, and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s code re-review after a rebase. Counting only the highest round number per pull request gives 52 and 38.

Review must-fix Pull requests with one Fold Drop
Code 20 13 95 85
Security 10, and 1 rated in private 8 117 23

Folds and drops are counted only where the review used the F1 · … format: every review of I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40, and some of I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 (Method).

Each line says how it’s known: documented (with the page), observed in the transcripts, or inferred.

  • An agent file’s model and effort apply. Documented (https://code.claude.com/docs/en/sub-agents) and observed: builders sent claude-opus-5-5 at medium, security reviewers claude-fable-5-2 at high, wave leads claude-opus-5-5 at high.
  • Precedence. Documented (sub-agents): the Agent tool’s model parameter, then the frontmatter, then CLAUDE_CODE_SUBAGENT_MODEL, then the parent’s model. CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1 (v2.1.257 and later) overrides the frontmatter for every subagent. A per-spawn effort parameter needs v2.1.292 and persists on resume. Our leads don’t pass either (orchestration.md, “Effort”).
  • A test doesn’t need a harness change. Documented (https://code.claude.com/docs/en/cli-reference): --agents defines agents from JSON, from a file under --print since v2.1.281, and --model and --effort set the session’s. Inferred: a replay can run a variant of an agent file from .scratch/ and leave .claude/agents/ alone.
  • The dispatcher and manager use the maintainer’s default. Observed: scripts/campaign.mjs (lines 169-182) passes no --model or --effort, and the project settings and skills set neither. The dispatchers sent 216 calls at medium and 166 at high, and the managers 454 and 220, so their effort followed whatever the session had (inferred).
  • The /code-review fork inherits its parent’s model and effort. Documented (sub-agents: a nested subagent “runs on the model of its parent” unless its own model is set) and observed: every fork sent claude-opus-5-5 at medium.
  • The skill’s level is a prompt recipe, separate from the API effort. Observed: all 38 code reviewers called /code-review medium, and every fork’s prompt named a “high effort” recipe: “8 inline angles → dedup (no verify) → ≤10 findings” on v2.1.318 to 2.1.322 (24 forks), and “4 inline angles (bugs + conventions)” on v2.1.330 to 2.1.332 (14 forks). One review outside the campaigns passed low and got a one-pass recipe at API effort low. Documented (https://code.claude.com/docs/en/code-review-local): coverage depends on “your model and effort level”. Observed: the recipe changed with the Claude Code version. Inferred from the page: it also changes with the model, so a model change also changes what the review checks.
  • The fork is at the nesting limit. Observed: dispatcher at depth 0, lead 1, code reviewer 2, fork 3. Documented (sub-agents): nesting goes “up to three layers below the main conversation”.
  • Sonnet 5.5 takes every effort level, with high as its default. Documented (https://platform.claude.com/docs/en/build-with-claude/effort), which also advises medium “for well-specified tasks” in agentic coding. Our files set effort, so the default doesn’t apply.
  • Changing effort in a running conversation can invalidate its cache. Documented (effort page). Inferred: switching a resumed builder’s model or effort for a fix round pays its whole context as a cache write, the cold round of R03-fix-rounds-compactionR03-fix-rounds-compaction: Fix rounds and compactionWhen a wave lead should resume a builder for review findings and when it should start a fresh one, and what Claude Code's compaction and prompt cache settings do for builders, reviewers and leads..
  • Haiku 5.5 skips steps at low effort in long prompts. Documented (effort page): “more likely to skip a search, stop early, or skip a check at low.”

The saving assumes the same tokens at Sonnet’s price. A weaker model may take more calls, which the tests measure.

Rank Move Share Saving over the 4 campaigns Main risk
1 Test and flake fix builders on Sonnet, medium 2.1% 5.5 Little: no must-fix on their pull requests so far
2 Code reviewer and its fork on Sonnet, medium 11.3% 29.0 A missed must-fix, spec drift above all, which only this review caught
3 Train reporter on Sonnet, or Opus at medium 4.5% up to 11.6 A report that fails Docs and costs a round of checks
4 Docs, spec and other builders that aren’t security-sensitive, on Sonnet, medium 4.4% 11.3 Spec drift: PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. had 2 code must-fix findings
5 Security-sensitive builders on Sonnet, medium 29.1% 74.4 More must-fix rounds, and defects the reviews miss
6 Wave lead at medium, manager and dispatcher pinned 14.1% unknown, Sonnet would be 36.1 A wrong merge or a skipped review
7 Security reviewer on Opus at high, or Fable at medium 30.2% about 65.6 for Opus, unknown for medium A missed vulnerability. This is the control
  • Rank 1 is safe and small: 5.5 dollars over four campaigns. It’s first because the risk is the lowest, not because it saves much.
  • Rank 2 has a cheap test and a known reference: the 20 code must-fix findings. Half of them are spec drift, and I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md. finds the code reviewer was the only check that caught that class. A cheaper code reviewer has to find those too. The recipe is observed to change with the Claude Code version, and inferred to change with the model. The test measures the model and the recipe together.
  • Rank 4 moved down from the first draft of this note, which grouped docs with tests. Docs and spike pull requests had 6 of the 20 code must-fix findings. A Sonnet builder for specs is safe only while the code reviewer stays strong, so rank 4 waits for rank 2’s replay.
  • Rank 5 is the largest saving. It needs the strongest test, because the reviews then have to catch more.
  • Rank 7 saves nearly as much as rank 5. A cheaper security reviewer may find fewer real problems while the review still approves, and no later step catches that. It moves only on a replay that finds everything the current reviewer found. Fable at medium keeps the model and cuts output and calls, and its saving is unknown until measured.
  • The Fable price for cache reads equals Opus’s, so moving the security reviewer to Opus saves on writes and output only: about 0.5 × (45% + 40%) of its cost. The figure is approximate, because 78 of the calls ran on Fable 5.1, whose cache reads cost 0.25 dollars, not 0.20.
  • Spike builders (4.0%) aren’t ranked. A decision depends on a spike’s result, and five spikes are too few to test. Their pull requests had 4 of the code must-fix findings.

What one extra round costs, from the role means above: a builder’s resume message 1.33 dollars on Opus (70.40 over 53 messages) and about 0.66 on Sonnet, a code review 1.07 (38.45 plus the fork’s 19.49, over 54 reviews), and a security review 3.96 (154.44 over 39). The lead’s share isn’t counted. “Rounds” is the smallest number of extra rounds that cost at least the saving.

Move Saving Extra round, builder on Opus Rounds Extra round, builder on Sonnet Rounds Builds Resume messages today
Rank 1 5.5 2.40 3 1.73 4 6 5
Rank 4 11.3 2.40 5 1.73 7 11 9
Rank 5 74.4 6.36 12 5.69 14 23 29
  • The Opus columns are conservative: under the move the extra round runs on Sonnet and costs less, so more rounds fit in the saving.
  • Rank 5 breaks even at 12 to 14 extra rounds over 23 builds, about 0.5 to 0.6 per build.
  • The model doesn’t count the larger cost: a defect that reaches the train. One such defect costs a follow-up issue, a build and two reviews, about 10 dollars at the means, and the maintainer’s time. Ranks 5 and 7 have to show no more escapes, not only fewer dollars.

The budget for the whole plan is under 500 dollars (I816I816 (closed): Harness experiments: review lanes, cheaper models, and a campaign efficiency baselineTracks a set of experiments on the agent harness.). The estimates below use this note’s means.

Rebuild each from the base commit of its merged pull request (the parent of its first commit, or of the rebased one for PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet.), with the issue body as it was. Each issue gets two arms: Opus at medium (a fresh control, since the harness has changed since) and Sonnet at medium. A blind judge compares each result with the merged pull request and its review history.

Issue Pull request Base Kind Lines Why
I611I611 (closed): User docs: list the V1 limits, starting with the GUI-session limit of S06-04Found in the code review of #608 (#224). PR801PR801 (merged): docs: list the V1 limits on a user docs pageThe user documentation gets a page of V1 limits, linked from the front page and the sidebar. 6c07b44e docs +75/-6 One code review, folds only
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. 39849e8f spec +532/-50 2 code must-fix, spec drift
I580I580 (closed): wb-vmd: ConnectGuest sendFailed test is flaky in CIThe Swift test "a send that fails is refused with handoff-send-failed, and the connection is closed" (packages/wraithbox-swift/Tests/WraithBoxVMDTests/ConnectGuestTests.swift, sendFailed) failed in CI on #579, a pull… PR725PR725 (merged): test(swift): wait for wb-hostd's close before the hand-off send failsTwo wb-vmd tests check that a hand-off send to a wb-hostd that is gone is refused. a46b50fb Swift test +20/-5 Flake, code review only
I547I547 (closed): Investigate the flaky CI runs of the week of 2026-10-26 (7.4%)Follow-up of X32-project-metrics (#543). PR726PR726 (merged): test(guestlink): wait through CONNECTING before the drop in TestDialerRefusesSecondCallOne of the fifteen flaky CI runs in the week of 2026-10-26 came from a test of the guest link's dialer that has no issue of its own. a46b50fb Go test +6/-2 Flake, the smallest
I589I589 (closed): wb-netd: TestAnswerFails/report_slow answers instead of timing out (flaky on macOS)TestAnswerFails/report_slow (packages/wraithbox-go/internal/netd/synth/pool_test.go:161) failed on Go (xcode-27) in CI on #588, a pull request that doesn't change internal/netd or any package its tests build: PR733PR733 (merged): test(netd): decide TestAnswerFails slow cases with a synctest clockA test that checks the address pool refuses a name when the proxy or host answers too slowly sometimes passed the answer through on a busy CI machine. 7e99f35e Go test +76/-17 Flake whose review found a production gap (I736I736 (closed): wb-netd: Pool.within misses a call that returns after the deadline before the timer firesPool.within (packages/wraithbox-go/internal/netd/synth/pool.go:390) decides whether an accounting write or a name report was late by reading ctx.Err() after the call returns.)
I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. PR810PR810 (merged): feat(swift): run ProvisioningCheck in wb-vmd's start pathThe build VM's wb-vmd now really starts a VM with the macOS provisioning options, the step that creates the guest admin user and turns on remote login for the image build's one SSH session. 0f9b2314 Swift feature +494/-98 Larger, not security-sensitive
I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards. a46b50fb wb-netd +113/-14 Code must-fix, an ordering race
I736I736 (closed): wb-netd: Pool.within misses a call that returns after the deadline before the timer firesPool.within (packages/wraithbox-go/internal/netd/synth/pool.go:390) decides whether an accounting write or a name report was late by reading ctx.Err() after the call returns. PR798PR798 (merged): fix(netd): decide a late write or send on the clock, not ctx.Err()A record write to the host or a send to the proxy that takes longer than its 100 ms bound must count as failed, so the DNS answer it backs is refused. dc880619 wb-netd +535/-20 Security must-fix

Replay each review on the head the original round 1 review saw, against the reference defect list I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md. builds. At most 5 combinations:

Combination Role Why
Opus, medium code Today’s setting, rerun because the recipe changed between versions
Sonnet, medium code Rank 2
Sonnet, high code Sonnet’s default, and the documented step up
Opus, high security Rank 7, the cheaper model
Fable, medium security Rank 7, the cheaper effort
  • Train reporter: worth a test. Rewrite the three existing reports from their ledgers on Sonnet at medium and Opus at medium, about 5 dollars per report and setting, 30 in all. Compare with the merged pages, and run prose:spell and doc:build on each. With the rebuild and the replays, the tests come to about 310 dollars.
  • Wave lead: no test of its own. A wave can’t be replayed without rerunning its builders. Run the next campaign’s leads at Opus medium, recorded in the ledger, and compare the mistakes listed above.
  • Re-checks are done by the lead, so they move with it.
  • Dispatcher and manager: set their model and effort first. They run at whatever the maintainer’s session has, so a test today would measure an unknown setting.
  • The campaigns ran on one lane (network floor on the Mac). Half the builds (23 of 45) are security-sensitive daemon work, so the docs and test groups are small, and rank 1 rests on 6 test builds.
  • The ledgers don’t record the model or effort per agent. This note read them from the transcripts.
  • The I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 costs are 5% to 13% under the ledger, probably from auto mode classifier calls.
  • The code must-fix kinds come from the first line of each finding, sorted by hand.
  • Speed wasn’t measured. The models page gives only a rating.
  • The 720 wave 2 lead’s skipped reviews, and the reviewer mistakes, are single events.

Each changes a harness file, so it goes to main between campaigns.

Status: Measured 2026-11-29 over campaigns I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (178 agents, 34 pull requests). Recommends tests and doesn’t decide