DevelopmentCost Playbook12 min readPublished July 23, 2026

Four model mixes · $10,565 → $1,339 total run · the spread is the story

Cursor’s Swarm Rebuilt SQLite in Rust — the real cost math

On July 20, 2026, Cursor published the results of an agent-swarm experiment: rebuild SQLite in Rust from the 835-page manual alone — no source code, no test suites, no internet. Every model mix under the new harness eventually passed 100% of a hidden test suite. The real story is the invoice: the planner/worker model mix swung total run cost from $10,565 to $1,339.

DA
Digital Applied Team
Senior strategists · Published Jul 23, 2026
PublishedJul 23, 2026
Read time12 min
Sources9 primary + secondary
Cheapest total run
$1,339
Opus 4.8 planner + Composer 2.5 workers
vs $10,565 solo
Total-run cost spread
7.9x
$10,565 ÷ $1,339 — our math
Worker-only spread
22.8x
$9,373 ÷ $411 — our math
Held-out test suite
100%
every new-harness mix, after the 4-hr checkpoint

Cursor’s agent swarm rebuilt SQLite in Rust from the 835-page manual alone — no source code, no test suites, no internet access — and every model configuration running on Cursor’s new orchestration harness eventually passed 100% of a held-out test suite the swarm was never told existed. That headline is real. The number attached to it in most coverage is not.

The figure being repeated across social feeds — “15x cheaper” — does not appear in Cursor’s post and does not reconcile with either of the two ratios Cursor’s own dollar figures support. Compare worker fleets alone and the spread is roughly 22.8x ($9,373 vs $411). Compare whole runs and it is roughly 7.9x ($10,565 vs $1,339). Those are different measurements of different things, and the gap between them is precisely where the useful lesson lives.

This post shows the arithmetic in the open, walks through the planner/worker architecture that produces it, translates Cursor’s five swarm-scale coordination failure modes into a checklist for teams running three agents rather than a thousand, and flags the methodological caveats that serious readers should carry into any decision this result informs.

Key takeaways
  1. 01
    The rebuild is real — with a timing nuance.Every new-harness model mix eventually hit 100% on SQLite's own sqllogictest suite. But at the 4-hour checkpoint, runs sat between 73% and 85% — the perfect score arrived after the cutoff, not within it.
  2. 02
    There is no single '15x' — there are two real ratios.Worker-only cost spanned $9,373 to $411 (~22.8x); total run cost spanned $10,565 to $1,339 (~7.9x). The widely shared ~15x framing is an outlet's simplification, not a figure Cursor published.
  3. 03
    Put the frontier model only in the planner seat.Workers carried at least 69% of tokens in every run and over 90% in most. Cheap worker models execute unambiguous instructions well; the expensive model earns its rate by making the decisions.
  4. 04
    The harness drove the gains, not the models.Same task, same models, same time budget as Cursor's earlier browser experiment — yet the new harness needed roughly 6.5x less code in one mix and cut merge conflicts from over 70,000 to under 1,000 in another.
  5. 05
    The five failure modes arrive long before swarm scale.Split-brain design, planner contention, merge conflicts, megafiles, and ossification are named at 1,000-commits-per-second scale — but all five appear at 3-5 concurrent agents against one repo.

01The Experiment835 pages of prose in, a database out.

The setup, per Cursor’s July 20 post: instruct an agent swarm to implement the entire 835-page SQLite manual in Rust, while withholding the SQLite source code, its test suites, the compiled binary, and internet access. Progress was graded against sqllogictest, the SQLite project’s own suite of millions of queries with known-correct answers — and the swarm was never told the suite existed.

The experiment is an explicit rerun of Cursor’s earlier browser-from-scratch swarm, documented in its Scaling Agents post — same task class, same models, same time budget — designed to isolate harness improvements from model improvements. Four model-mix configurations ran under the new harness, and it’s worth knowing one that didn’t: GPT-5.6 Sol was the originally intended frontier baseline, but Cursor dropped it after finding the model unusually sensitive to literal and emphasized wording, producing runaway spirals the team didn’t have time to prompt-tune for a model that had arrived so recently. GPT-5.5 took its place to keep the comparison fair. That is a methodology note about this specific harness, not a general verdict on GPT-5.6 Sol.

Config 1
GPT-5.5 solo
Planner + worker · one model

The frontier model in every seat. The most expensive configuration by far: $10,565 total, $9,373 of it spent on workers alone.

Total run: $10,565
Config 2
Grok 4.5 solo
Planner + worker · one model

Reached 80% of the held-out suite within the 4-hour checkpoint — the strongest stated checkpoint figure. Total cost appears only in Cursor's chart, between the two extremes.

80% at 4-hr checkpoint
Config 3
Opus 4.8 + Composer 2.5
Frontier planner · cheap workers

The economics winner: $1,339 total run, with the entire worker fleet costing $411. The configuration the rest of this post keeps coming back to.

Total run: $1,339
Config 4
Fable 5 + Composer 2.5
Frontier planner · cheap workers

Fable 5 planned with fewer tokens than Opus 4.8 — but its workers burned several times more tokens, making the full run costlier than the Opus mix per Cursor's chart.

Chart-only total
The timing nuance
Every new-harness configuration eventually passed 100% of the held-out suite — but at the 4-hour checkpoint, new-harness runs sat between 73% and 85% (old-harness runs at the same checkpoint ranged 11% to 77%). Several secondary outlets compressed this into “100% in four hours.” That compression is wrong; the perfect scores arrived after the cutoff. Cursor also states it manually reviewed each run’s code and process “checking for cheating and shortcuts” — and one run’s output, from the Opus 4.8 configuration, is publicly inspectable at github.com/cursor/minisqlite.

If you want the broader context on how Cursor got to swarms at all — the Agents Window, Composer, and cloud agents that preceded this work — Cursor’s agent-first architecture is the background read. A companion Cursor post, Self-driving codebases, documents the hill-climbing between the browser experiment and this rerun.

02The Real Cost MathTwo ratios, and neither of them is 15x.

Here is what Cursor actually published. The run using GPT-5.5 for both planners and workers cost $10,565 in total, with $9,373 of that going to the worker fleet alone. The run using Opus 4.8 as planner and Composer 2.5 as worker cost $1,339 in total, with the entire worker fleet costing $411. Same task, same time budget, same eventual 100% grade.

"In the run that used GPT-5.5 for both planners and workers, the workers alone cost $9,373. In the run where Opus 4.8 did the planning and Composer 2.5 did the work, the entire worker fleet cost $411."— Cursor engineering team, “Agent swarms and the new model economics,” Jul 20, 2026

Now the arithmetic that most coverage skipped. Divide worker-only costs and you get $9,373 ÷ $411 ≈ 22.8x. Divide total run costs and you get $10,565 ÷ $1,339 ≈ 7.9x. The widely shared ~15x framing — AlphaSignal’s same-day headline — matches neither. It reads like a rounding of two different, non-equivalent ratios into one shareable number. Cursor’s post never states it.

The four model-mix configurations Cursor tested on the SQLite rebuild, with total run cost, worker-only cost, and final grade on the held-out sqllogictest suite. Dollar figures are Cursor’s stated numbers from its July 20, 2026 post; two total-cost cells appear only in a chart image in the primary source and are described qualitatively. The computed multiples at the bottom are Digital Applied’s own arithmetic from Cursor’s stated figures.
ConfigurationTotal run costWorker-only costHeld-out grade
GPT-5.5 solo (planner + worker)$10,565$9,373100% (after the 4-hr checkpoint)
Grok 4.5 solo (planner + worker)Chart-only in the primary source — between the two extremesNot itemized80% at 4 hrs → 100% after
Opus 4.8 planner + Composer 2.5 workers$1,339$411100% (after the 4-hr checkpoint)
Fable 5 planner + Composer 2.5 workersChart-only — higher than the Opus mix, per Cursor’s chartNot stated — workers burned “several times” more tokens than the Opus mix’s100% (after the 4-hr checkpoint)
Computed multiples — our arithmetic from Cursor’s stated figures, not numbers Cursor published
Total-run spread$10,565 ÷ $1,339 ≈ 7.9xWhole-run comparison, planners included
Worker-only spread$9,373 ÷ $411 ≈ 22.8xWorker fleets alone, planners excluded

Same task, same grade — the model mix is the cost lever

Source: Cursor, “Agent swarms and the new model economics,” Jul 20, 2026 — bars scaled to the $10,565 baseline
GPT-5.5 solo — total runPlanner + worker on the frontier model
$10,565
GPT-5.5 solo — workers onlyThe worker fleet alone
$9,373
Opus 4.8 + Composer 2.5 — total runFrontier planner, cheap workers
$1,339
Opus 4.8 + Composer 2.5 — workers onlyThe entire worker fleet
$411

Why do the two ratios diverge so sharply? Because planners and workers have opposite cost profiles. Planner tokens are few but expensive; worker tokens are many but cheap. Swap frontier workers for Composer 2.5 and the worker line item collapses 22.8x — but the frontier planner stays in the bill, so the total-run ratio compresses to 7.9x. Neither number is “the” cost of switching; they answer different questions. If you are budgeting a fleet, the total-run figure is the honest one. If you are deciding which model executes leaf tasks, the worker-only figure tells you what the worker seat is actually worth paying for.

03Planner/Worker SplitToken share and dollar share are different charts.

The architecture behind those numbers is strict role separation. Planner agents, run on the most capable models, decompose a goal into a task tree and delegate. Worker agents, run on faster and cheaper models, execute leaf tasks. The roles never blur — and that separation is what keeps each seat’s context clean.

"In a swarm, a planner never implements, so its context never fills with low-level detail, and a worker never plans, so it can spend all its context on one narrow piece of work."— Cursor engineering team, “Agent swarms and the new model economics,” Jul 20, 2026
Worker token share
Minimum across all runs
69%+

Workers carried at least 69% of total tokens in every run — and over 90% in most. The bulk of the typing is worker-tier work in every configuration Cursor tested.

>90% in most runs
Planner dollar share
Opus 4.8 + Composer mix
~2/3

In the cheapest run, the Opus planner produced a small fraction of total tokens but roughly two-thirds of total dollar cost. Dollar share and token share are near-inverses.

Few tokens, most dollars
The Fable wrinkle
Per-token planner premium
2x

Fable 5 planned with fewer tokens than Opus 4.8 despite costing roughly 2x per token — but its Composer workers burned several times more tokens, making the full run costlier overall.

Planner quality ≠ run cost

The Fable 5 result deserves a second look, because it breaks the naive assumption that a better or pricier planner automatically produces a cheaper run. Fable 5 was more token-efficient in the planner seat than Opus 4.8 — yet its worker fleet burned several times more tokens downstream. The planner’s real output is not its own tokens; it is the quality and unambiguity of the instructions its workers receive. A plan that reads well but leaves workers iterating is more expensive than a plan that costs more to write and executes cleanly. When you evaluate planner models, measure downstream worker spend, not planner spend.

This is the same thesis Google is pushing from the model-vendor side — pricing Flash-Lite explicitly as a subagent tier so the frontier model plans while cheap models execute. We covered that half of the argument in our Flash-Lite subagent-economics analysis; Cursor’s experiment is the tooling-side confirmation, with a real workload and a real invoice.

04Old vs New HarnessSame models, same clock — 6.5x less code.

Because the SQLite run reused the browser experiment’s models and time budget, every improvement isolates to the harness — the orchestration layer coordinating the swarm. The scale jump alone is striking: the earlier swarm peaked at roughly 1,000 commits per hour; the new one peaks at roughly 1,000 commits per second, a rate that forced Cursor to build a custom version-control system because Git could not keep up.

The head-to-head Grok 4.5 runs show what coordination is worth. The old harness produced 68,000 commits in its first two hours — around 70x the new run’s pace at the same point — before more than 70,000 accelerating merge conflicts forced a pause before the two-hour mark. The new harness logged fewer than 1,000 conflicts across its full four hours. Raw throughput without coordination isn’t speed; it’s expensive heat.

Merge conflicts
Old harness, first 2 hours
70k+

The old Grok 4.5 run generated over 70,000 accelerating merge conflicts and had to be paused before its 2-hour mark. The new run: fewer than 1,000 conflicts in 4 hours.

New harness: <1,000
Hottest file
Conflicts, new harness
47

The old harness's hottest file suffered 7,771 conflicts from 1,173 different agents. The new harness's hottest file saw 47. That is the reconciler pattern earning its keep.

vs 7,771 old
Crate count
Settled early, never grew
9

The old Grok run sprawled to 54 Rust crates including three separate, duplicate SQL packages — split-brain design in the wild. The new harness settled on 9 crates early and never added another.

vs 54 old (3 dupes)

Engine code required to pass, old vs new harness

Source: Cursor, Jul 20, 2026 — bars scaled to the 64,305-line baseline
Fable 5 mix — old harnessEngine lines of code to pass
64,305 LOC
Fable 5 mix — new harness~6.5x less code for a comparable-or-better result
9,908 LOC
Opus 4.8 mix — old harnessAt a 97% grade
19,013 LOC
Opus 4.8 mix — new harnessAt a 100% grade — less code, better score
4,645 LOC

Read that last pair again: the Opus 4.8 mix went from 19,013 lines at a 97% grade to 4,645 lines at 100% — roughly a quarter of the code for a strictly better result. Coordination quality doesn’t just cut costs; it cuts the amount of software that exists to maintain afterward. This is the same lesson we found running our own writer pipeline — the orchestration layer, not the model, is where token spend is won or lost — documented in our harness-engineering token-spend research.

05Five Failure ModesSwarm pathologies, translated for a five-agent fleet.

Cursor names five coordination failure modes it engineered against: split-brain design, contention between planners, merge conflicts, megafiles, and ossification. The post is written for 1,000-commits-per-second scale, but every one of these appears at 3-5 concurrent agents against a shared repo — which is where most teams actually operate. The first three columns below summarize Cursor’s account; the last is our translation for smaller fleets.

Cursor’s five named swarm coordination failure modes with the symptom Cursor describes, Cursor’s stated countermeasure where one is given, and Digital Applied’s own analysis of the smaller-fleet analog at three to five concurrent agents.
Failure modeSymptom in Cursor’s runsCursor’s countermeasure (where stated)At 3-5 agents (our analysis)
Split-brain designThe old Grok run sprawled to 54 crates including three separate, duplicate SQL packagesNew-harness outcome: 9 crates settled early, never grewTwo agents each invent their own helper module for the same job. Assign one owner per module before fan-out.
Planner contentionNamed as an engineered-against failure mode; uncoordinated planners competing over the same decisionsSpecific fix not itemized in the postTwo orchestration prompts both claim the same refactor. Give each agent an exclusive file or directory lease.
Merge conflicts70,000+ accelerating conflicts paused the old Grok run; hottest file took 7,771 conflicts from 1,173 agentsA neutral “reconciler” agent resolves collisions on behalf of both parties — a merge-queue roleShows up by agent three on shared types or config files. Serialize merges, or give one agent the reconciler job.
MegafilesNamed as an engineered-against failure mode; work accretes into a few overloaded hot filesSpecific fix not itemized; hottest-file conflict counts show the pressure it createsAgents keep appending to the same index or schema file. Enforce file-size budgets and split-on-touch rules.
OssificationEarly code hardens because dependents build on it and no agent dares break it“Licensed intentional breakage” — a focused breaking patch plus an explanatory comment; the compiler propagates failures to dependents, which read the comment and adaptNo agent will touch the first-written core module. Explicitly authorize breaking changes with a written rationale.

One more mechanism is worth stealing even at small scale: the shared, agent-curated Field Guide — a folder whose index.md is auto-injected into every agent’s context at start, capped by a line budget, where agents record surprises for future runs. Cursor explicitly compares it to the environmental signaling of ants and termites — stigmergy — coordination through a shared artifact rather than direct messages. A three-agent fleet with a shared, line-budgeted “gotchas” file gets a real fraction of that benefit for close to zero engineering.

06Caveats That MatterWhat “no source code” does — and doesn’t — prove.

The strongest caveat gets little airtime in mainstream coverage: SQLite is one of the most widely deployed pieces of software on earth, and its code and documentation are almost certainly present in every frontier model’s pretraining data. Withholding the source at run time does not withhold it from the weights. A highly-discussed comment in the Hacker News thread makes the point sharply: “The wording is designed to create a marketing impression that it can do spec-driven development for a novel project, but this example doesn’t actually support that.” What the experiment cleanly demonstrates is spec-following and execution at extraordinary scale — not invention of a system the models had zero prior exposure to. Extrapolate to your own undocumented, novel codebase with care.

The second caveat is provenance. StartupFortune’s July 21 analysis puts it plainly: “Cursor’s result is impressive. It is also Cursor’s own result, published by a company selling the tooling.” Cursor’s mitigations are real — manual review of each run for cheating and shortcuts, a public output repo, grading against SQLite’s own test suite — but this remains a vendor-published benchmark with no independent replication yet.

Reading the numbers honestly
Three disciplines for citing this result: quote the actual dollar figures rather than any single multiple; keep the 4-hour checkpoint (73-85%) separate from the eventual 100%; and treat the two chart-only total costs (Grok 4.5 solo, Fable 5 + Composer 2.5) as qualitative — Cursor published no text figures for those cells, and neither should anyone citing it. The same StartupFortune piece lands the sharper point about why the spread matters at all: “That is not a rounding error. It is the business model hiding inside the benchmark.”

None of these caveats deflate the economics finding. The cost spread is internal to the experiment — every configuration faced the same task with the same pretraining advantage, so the 7.9x and 22.8x deltas measure the model mix, not the task’s difficulty. The caveats bound what the capability claim proves; they leave the cost lesson intact.

07PlaybookSeat assignments for your own agent fleet.

Cursor states the same swarm design is already applied internally — finding and fixing vulnerabilities in open-source software, raising test coverage on Cursor’s own codebase, generating billions of tokens of synthetic training data — and a companion post documents the pattern generalizing to GPU-kernel optimization. The architecture travels. Here is how the economics translate to fleets of ordinary size.

Planner seat
Frontier model, always

The planner produces few tokens but every downstream token depends on its decisions. Judge planner models by downstream worker spend — the Fable 5 run shows a token-efficient planner can still produce an expensive fleet.

Pay for judgment
Worker seat
Cheap, fast, replaceable

Workers carried 69-90%+ of tokens in every Cursor run. Once instructions are unambiguous, a worker-tier model executes them at a fraction of the cost — $411 vs $9,373 for the same fleet's job.

Pay for throughput
Harness budget
Coordination before model upgrades

Same models, same clock: the new harness cut one mix's code 6.5x and another's conflicts 70-fold. If your fleet underperforms, the orchestration layer is the higher-leverage fix than a pricier model.

Engineer the harness
When not to swarm
Novel, underspecified work

The experiment's fuel was an 835-page spec of a system the models already knew deeply. If your task has neither a precise spec nor pretraining familiarity, expect worse economics — write the spec first.

Spec before scale

The forward projection worth making: planner/worker pricing is becoming the default shape of agent economics from both directions at once. Model vendors are shipping explicit worker-tier models, and tooling vendors are shipping the routing to exploit them — Cursor’s other cost lever, automatic model routing, is the per-request version of the same seat-assignment logic. We expect the gap between well-mixed and naively-mixed fleets to widen, not close, as worker-tier models improve faster than their prices rise — which makes model-mix discipline a standing line item, the argument we develop in our cost-optimization-as-discipline playbook.

And the closing thought from Cursor’s post is the one that outlives the benchmark: “We gave the swarm 835 pages of prose and it came back with a database. What was scarce in this experiment, and what we expect to be scarce in software engineering going forward, is the right description of intent.” The scarce input was never compute. It was the spec. If your organization wants help designing agent fleets — seat assignments, harness engineering, cost governance — that is exactly the shape of our AI transformation engagements.

08ConclusionThe benchmark was the database; the lesson was the invoice.

The shape of agent economics, July 2026

Seat assignment, not model choice, is the cost decision that matters.

Cursor’s swarm turning 835 pages of prose into a database that passes SQLite’s own test suite is a genuine capability milestone — bounded by the honest caveats that SQLite lives in every model’s pretraining data and that the result is vendor-published. But the durable finding is economic: the same job, at the same grade, cost $10,565 or $1,339 depending on which model sat in which seat.

Resist the single-number version. The worker-only spread is ~22.8x, the total-run spread is ~7.9x, and the widely shared ~15x framing is neither — it is an outlet’s rounding, not Cursor’s arithmetic. Teams that internalize the two-ratio version understand why the savings exist: planners are few-token, high-price; workers are high-token, low-price; and the frontier model only needs to be in one of those seats.

The practical sequence for any team running more than one agent: write the spec, split planning from execution, put the frontier model in the planner seat, meter downstream worker spend as your planner-quality signal, and budget harness engineering before model upgrades. Cursor spent an experiment proving that the orchestration layer — not the model — is where both the cost and the quality leverage live. That result is worth more than the demo.

Build an agent fleet that budgets itself

The frontier model belongs in one seat.

Our team designs agent fleets with the economics built in — planner/worker seat assignments, harness engineering, and cost governance that keeps the invoice proportional to the work, delivered in days not quarters.

Free consultationExpert guidanceTailored solutions
What we work on

Agent-fleet engagements

  • Planner/worker architecture and model-mix design
  • Harness engineering — routing, reconciliation, shared context
  • Token-spend metering and per-workflow cost governance
  • Failure-mode audits for multi-agent pipelines
  • Spec-first workflows — the scarce input, written well
FAQ · Cursor agent swarm

The questions we get every week.

Per Cursor's July 20, 2026 engineering post, an agent swarm was instructed to implement the entire 835-page SQLite manual in Rust while the SQLite source code, its test suites, the compiled binary, and internet access were all withheld. Progress was graded against sqllogictest — the SQLite project's own suite of millions of queries with known-correct answers — and the swarm was never told the suite existed. Four model-mix configurations ran under Cursor's new orchestration harness: GPT-5.5 solo, Grok 4.5 solo, Opus 4.8 planning with Composer 2.5 workers, and Fable 5 planning with Composer 2.5 workers. Every one of them eventually passed 100% of the held-out suite. The codebase from the Opus 4.8 run is public at github.com/cursor/minisqlite.
Related dispatches

Continue exploring agent economics.