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.
The question
Section titled “The question”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.
Method
Section titled “Method”- Transcripts. The 15 sessions of the four campaigns under
~/.claude/projects/…: one manager session and one headless/wavesession per wave. Each subagent’s.jsonland.meta.jsongive its type, parent, spawn depth and description. Each manager session is cut at the time its campaign report was written, so later attended work isn’t counted. Agents the manager spawned before that time are counted, which 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.’s role table leaves out. A script in.scratch/bin/reads everyassistantrecord once per message ID and sumsusage(input, 5-minute and 1-hour cache writes, cache reads, output). It readsparams.modelandparams.output_config.effortfrom theapi-requestrecords, so the model and effort below are what the API received, not what a file asked for. Run withpython3 -I, read only. - Roles. A subagent’s
agentType. The main conversation of a/wavesession is the dispatcher, and of a/campaignsession the manager. Ageneral-purposeagent whose parent is a code reviewer is the fork of the built-in/code-reviewskill. Every agent of a type is counted, so the 38 code reviewers, 28 security reviewers and 38 forks include the reviews of PR613PR613 (merged): feat(proxyd): strict HTTP/1.1 request head, request form and stepsPart of #498. in 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, which isn’t one of the 34 pull requests below. 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. counts 37, 27 and 37 without them. - Cost. Each call priced at the list prices below. The per-wave sums
match the ledgers’
costUsdwithin 1% for 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 and I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 (wave 2 of I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2: 19.31 against 19.31 dollars). For 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 they come out 5% to 13% under the ledger (wave 3: 69.48 against 73.71). 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 sessions have anauto-mode-classifier-error.txt, so the gap is probably the auto mode classifier’s calls, which the transcripts don’t hold (inferred). - Reviews.
gh pr viewon the 34 pull requests againsttrain/604,train/622,train/720andtrain/792. A script counts every review comment whose first line startsCode revieworSecurity review, a re-review after a rebase included, and the rating of each finding (F1 · must-fix · …for code,F1 · medium · must-fix · …for security). The 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 reviews and some 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 reviews list theirmust-fixfindings under a### must-fixheading or in numbered items instead, which were counted by reading them. The folds and drops of those reviews aren’t counted. The findings lists in the 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 wave files give the outcome of each folded or dropped finding. - Mistakes. The campaign narratives and wave files under
.scratch/campaign/<n>/. - Prices and mechanics. The pages named in “Prices” and “How Claude
Code picks a model”, fetched on 2026-11-29. No outside repository was
cloned and nothing was run but
ghand the scripts.
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.
Prices
Section titled “Prices”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 |
- Sonnet 5.5 costs half of Opus 5.5 in every column, so moving a role saves half its cost if the tokens stay the same.
- Fable 5.2 costs twice Opus 5.5 except for cache reads, which cost the same. Fable 5.1 ran 78 of the security reviewers’ calls in 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 and 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.
anthropic.com/pricingredirects toclaude.com/pricing, which wasn’t fetched. The API page above is the source.
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.
Results
Section titled “Results”Cost by role
Section titled “Cost by role”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).
What each role does
Section titled “What each role does”The tool calls, with Bash split by its command:
- Builder (4,699 calls): Bash reads (
cat,grep,sed) 38%, other Bash 14%,git12%, Edit 12%, Write 6%,go4%,gh4%,mise run ciand 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%,
git14%, Read 13%,go7%. It reads and reasons. 40% of its cost is output. - Code reviewer: reads 40%,
git12%,mise12%, Skill 4%. The skill call starts the fork, which does the reading behind the findings. - Wave lead: Agent 14%, Write 13%, SendMessage 10%,
gh9%, 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%,
gh11%.
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.
Builders by kind of issue
Section titled “Builders by kind of issue”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 |
- Security-sensitive builders cost 82% of builder spending. Docs, test and other builders cost 33.56 dollars together, 6.6% of the four campaigns, and test builders alone 10.92.
- The most expensive builder, I728I728 (closed): Hand-off socket contract of S07-20: socket number, HandoffSocketHeld, states, close reports, and a VM's endBuilds the hand-off socket contract of S07-20-handoff-sockets and the end exchange of S07-21-vm-end (#754, PR #758) in one change, before #480.’s hand-off sockets, cost 22.57 dollars over 402 calls and 6 compactions. The cheapest builds were 0.37 to 1.93 dollars (a fold round, I577I577 (closed): httppolicy: FuzzHTTPDecision fails on main for a GitLab project id with a trailing %2FFuzzHTTPDecision (internal/proxyd/httppolicy/fuzz_test.go) fails on main at 5adc7c3., 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…, 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:, I634I634 (closed): Flaky: TestShellOpenHeld reads kills = [] on LinuxTwo intermittent failures in the CI of train/622 (campaign #622), in code the train doesn't change:, I611I611 (closed): User docs: list the V1 limits, starting with the GUI-session limit of S06-04Found in the code review of #608 (#224).).
- Builders compact often: the largest context is near 166k across
many builders, under the 200k
autoCompactWindow.
What goes wrong today
Section titled “What goes wrong today”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).
- Where. 14 code
must-fixfindings are on pull requests that change the daemons, the hand-off path or the guest’s admin channel, in the code or in a spec page the change touched. The other 6 are on docs and spike pull requests of 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 and 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: 3 on PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions. (the X31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting? result), 1 on PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions. (the X30-installer-trustX30-installer-trust: Installer refusal of a changed restore imageDoes the Virtualization framework's macOS installer, run by wb-vmd-install, refuse a restore image that Apple didn't sign, or one with a changed or replaced component, and does the install contact Apple while wb-vmd-i… result) and 2 on 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. (the Xcode image spec). Each of those 6 is a spec, test page or brief that contradicts another page or the result. No pull request that fixed a test or a flake got one. - Code
must-fixkinds, from the first line of each: spec, test page or brief text that contradicts the code, another spec or a result 10 (the 6 above, and 4 on code pull requests), concurrency and ordering (a lock released before a record, a wait deleted on cancel, a check outside its lock, a signal after reaping) 5, protocol behavior (HTTP/1.1 framing, a missing FIN, an idle upstream) 3, a counting rule 1, and a flaky test 1. - Spec drift. Half the code
must-fixfindings are text that disagrees with other text. 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 that only the code reviewer caught that class. A cheaper builder for docs and specs depends on the code reviewer, and a cheaper code reviewer removes the only check on it. - Overlap. 3 of the 10 security
must-fixfindings name the same file and line as a codemust-fixon the same pull request (PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM., PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it., PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take.). The rest the code review didn’t ratemust-fix. 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. covers the overlap. - Reviewer mistakes. On PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM. a code review finding (
F6) proposed counting an overrun only after a delivered notice. It fails open, and the builder skipped it, and the security review agreed (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 narrative). On PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it. the two reviews disagreed on which daemon a send error is charged to (F4andF9), and the stricter side was taken. - Lead and manager mistakes. The I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 wave 2 lead first reported
without security reviews, and added them after the dispatcher asked
(
720/wave-2.json). The I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 manager’s report page failed the Docs check twice, once on the spellingacks, which cost a round of checks on every open pull request. The headless exits of I609I609 (closed): Campaign waves end after 10 minutes: claude -p stops the background wave-leadWave 1 of campaign #604 ran claude -p "/wave --campaign 604 ..." through scripts/campaign.mjs. and I631I631 (closed): Campaign waves end when the wave lead waits on its own background work: claude -p exits on its interim resultWave 1 of campaign #622 ran claude -p "/wave ... were harness defects, not the model.
Earlier results
Section titled “Earlier results”- R02-builder-effortR02-builder-effort: Builder effort trialWhether builders should run at high effort instead of medium.: high effort didn’t lower
must-fixfindings or rounds for builders and cost about twice the tokens. A code review at medium cost about 50k tokens, and at high 100k to 190k. A second independent reviewer foundmust-fixfindings the first missed. - 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.: a fix round’s cost is mostly the context
the builder carries, and every
must-fixround was approved at the next review.
How Claude Code picks a model
Section titled “How Claude Code picks a model”Each line says how it’s known: documented (with the page), observed in the transcripts, or inferred.
- An agent file’s
modelandeffortapply. Documented (https://code.claude.com/docs/en/sub-agents) and observed: builders sentclaude-opus-5-5atmedium, security reviewersclaude-fable-5-2athigh, wave leadsclaude-opus-5-5athigh. - Precedence. Documented (sub-agents): the Agent tool’s
modelparameter, then the frontmatter, thenCLAUDE_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-spawneffortparameter 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):
--agentsdefines agents from JSON, from a file under--printsince v2.1.281, and--modeland--effortset 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--modelor--effort, and the project settings and skills set neither. The dispatchers sent 216 calls atmediumand 166 athigh, and the managers 454 and 220, so their effort followed whatever the session had (inferred). - The
/code-reviewfork inherits its parent’s model and effort. Documented (sub-agents: a nested subagent “runs on the model of its parent” unless its ownmodelis set) and observed: every fork sentclaude-opus-5-5atmedium. - 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 passedlowand got a one-pass recipe at API effortlow. 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
highas its default. Documented (https://platform.claude.com/docs/en/build-with-claude/effort), which also advisesmedium“for well-specified tasks” in agentic coding. Our files seteffort, 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 candidates
Section titled “The candidates”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-fixfindings. 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-fixfindings. 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-fixfindings.
A cost model
Section titled “A cost model”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.
Test designs
Section titled “Test designs”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.
Builders: rebuild 8 closed issues
Section titled “Builders: rebuild 8 closed issues”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.
- Measures.
must-fixfindings at the first review, rounds to approve, whether the knownmust-fixrecurs, CI, dollars and minutes. Each review runs on today’s reviewer settings for both arms. - Cost. The originals’ first builds cost 15.00 dollars, so about 15 for the Opus arm and 8 to 15 for Sonnet. Reviews add about 17 dollars for 16 code reviews and 32 for 8 security reviews (I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20)., 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:, 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): and 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. had one), and a judge about 10. About 90 dollars.
- Decision rule, written before the run. Move rank 1 when Sonnet’s
three test rebuilds need no more rounds than Opus’s and have no
must-fix. Move rank 4 when Sonnet’s I611I611 (closed): User docs: list the V1 limits, starting with the GUI-session limit of S06-04Found in the code review of #608 (#224)., I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). and I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. rebuilds also have nomust-fixthe Opus arm didn’t have, and rank 2’s replay keeps catching spec drift. Rank 5 needs more than two security-sensitive rebuilds: if both match, the next step is a campaign with Sonnet builders on half its security-sensitive issues, with the ledger recording the model. - Where the bases are. All eight bases are reachable from
main. Those of 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., 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. and 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. came in through PR793PR793 (merged): Train 792: network floor, lane macTrain for campaign #792 (V1-M3-network-floor, lane mac)., the merge oftrain/792(git branch -r --contains dc880619listsorigin/main). The judge must not see which arm built which branch.
Reviewers: replay at fixed heads
Section titled “Reviewers: replay at fixed heads”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 |
- Pull requests. The 13 with a code
must-fix(PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions., PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions., 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., 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., PR739PR739 (merged): feat(netd): drop DNS queries over the rate at once, not heldA DNS query over the VM's query rate is now dropped at once, with no answer, instead of being held for 4 seconds like the other refusals., 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., PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy., 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…, PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM., PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it., PR808PR808 (merged): feat(proxyd): bound stream writes and close upstream on a stream's endThe egress proxy now limits how long each write to a stream it took over from the network process may take., PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream., PR813PR813 (merged): feat(guestroot): add wb-guestroot, the guest end of the admin pathThe guest now has a second daemon of its own, wb-guestroot, that gives the host a root login shell on a terminal.), the 3 more with only a securitymust-fix(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., PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down., PR814PR814 (merged): feat(download): wb-download, its entries, confinement, fetches and recordsThis adds wb-download, the one program that fetches what an image build needs from the internet: Apple's restore image catalog and a restore image, or the Claude Code channel file and a release.), and 4 clean ones (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., PR735PR735 (merged): fix(proxyd): refuse a GitLab project id with an empty segmentThe proxy reads the repository a GitLab API write names from the project id in its path, which spells each / as %2F., PR795PR795 (merged): fix(proxyd): write a wildcard name again when a period starts during its writewb-proxyd now counts a new wildcard name only when no new active period started while it was telling wb-hostd about that name., 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.): 20 in all. PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions., PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions. 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. are the spec drift cases that ranks 2 and 4 depend on. The private finding on PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down. is counted only as found or not. - Cost. About 1.07 dollars a code review: about 64 for the three
code combinations on 20 pull requests. Security reviews cost 3.96 on
average at Fable high, so about 2 to 4 at the cheaper settings: about
110 for two combinations on the 18 that had a security review (all
but PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions. and 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.), plus 16 to rerun Fable at high on 4. About 190
dollars. The 18 include 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., PR739PR739 (merged): feat(netd): drop DNS queries over the rate at once, not heldA DNS query over the VM's query rate is now dropped at once, with no answer, instead of being held for 4 seconds like the other refusals., 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., 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… and PR813PR813 (merged): feat(guestroot): add wb-guestroot, the guest end of the admin pathThe guest now has a second daemon of its own, wb-guestroot, that gives the host a root login shell on a terminal., whose
security reviews rated nothing
must-fix. Dropping them would save about 30 dollars, but the replay would no longer count false alarms, themust-fixratings a cheaper setting gives where Fable at high gave none. - Noise. I816I816 (closed): Harness experiments: review lanes, cheaper models, and a campaign efficiency baselineTracks a set of experiments on the agent harness. puts the noise at one or two findings for about 14 pull requests. The 20 here don’t change that much. The recorded Fable-at-high reviews ran once, so a rerun of that setting on 4 pull requests shows the spread.
- Pin the
/code-reviewrecipe for the replay, or every combination also measures a different Claude Code version.
Leads, re-checks and the train reporter
Section titled “Leads, re-checks and the train reporter”- 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:spellanddoc:buildon 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.
Limits
Section titled “Limits”- 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-fixkinds 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.
Recommendations
Section titled “Recommendations”Each changes a harness file, so it goes to main between campaigns.
- Record model and effort per agent in the ledger
(
scripts/campaign.mjs,docs/agents/campaigns.md). Every later comparison needs it, and the transcripts already hold it. - Pin the dispatcher’s and manager’s model and effort
(
scripts/campaign.mjs,--modeland--effort), so a campaign doesn’t run at the maintainer’s last setting. - Run the builder rebuild of the 8 issues above, then move rank 1
builders, and rank 4 after rank 2’s replay, to Sonnet at medium if
the rebuild meets the rule. That needs a way to
pick the model per spawn (the Agent tool’s
modelparameter inorchestration.md), or a separate agent file for those issues. - Run the reviewer replays with 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.’s defect list, spec drift cases included, and pin the review recipe. A review skill of our own gives a fixed recipe (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.). Mind the nesting limit: a review with lanes under the fork’s depth needs depth 4.
- Test the train reporter on Sonnet and Opus at medium.
- Keep the security reviewer on Fable at high until a replay shows
a cheaper setting finds every
must-fixit found.SEC*controls depend on that review, and nothing here weakens one.
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