# AI agent swarm cost efficiency

## Summary

Cursor ran an experiment rebuilding SQLite six different ways with AI, and costs ranged wildly from $1,339 to over $20,000 for the same task. The real finding isn't which model won, it's that using a planner-worker setup (Opus 4.8 plus Composer 2.5) cut costs by 18 to 20x, and that AI swarms are starting to behave like compilers translating a spec into code.


## Core ideas

- Cost varies wildly by method: Same task, six approaches, costs from $1,339 to over $20,000. The model choice and workflow structure matter more than raw intelligence.

- The "it knows SQLite" objection misses the point: Critics say benchmarks are unfair because models were trained on SQLite. That's irrelevant. The benchmark tests cost efficiency of different building metas, not novelty.

- Planner plus worker beats frontier-only: Pairing Opus 4.8 as planner with Composer 2.5 as worker got the same result for 18th to 20th of the cost of just letting a frontier model run wild.

- Abstraction keeps climbing: Autocomplete worked at the line level, early models at the block level, agents at the file or feature level. Swarms now work at the spec level.

- Specs are the new unit of work: For a swarm to succeed, it has to actually follow the spec, the same problem traditional software engineering has always had with hundreds of engineers and unclear requirements.

- 835 pages of prose became a database: Cursor fed the swarm a massive spec document and it produced a working SQLite implementation from it.

- Intent is the scarce resource: The experiment suggests that as AI gets more capable, the bottleneck shifts to describing intent clearly, not to raw model power.

- Swarm as compiler: A compiler preserves meaning exactly at every translation step from source to machine code. A swarm doing the same job for specs is probabilistic at every step instead, which is the core difference and risk.


## Quotes

> Cursor rebuilt SQLite six ways, and the costs range from $1,339 to over $10,000 on the exact same task.

@therobertta

> What was scarce in this experiment and what we expect to be scarce in software engineering going forward is the right description of intent.

@therobertta

> Seen this way, the swarm starts to resemble a compiler.

@therobertta

> The difference is that a compiler preserves meaning at every step while the swarm is probabilistic at every one.

@therobertta

> With swarms, the unit of work becomes the spec.

@therobertta


Source: https://www.instagram.com/reel/DcwKoeagSmg/?igsi=MWYzaHNkaGxnMzhkZg==

Canonical: https://drop.rizzgroup.org/ledger/ai-agent-swarm-cost-efficiency-q3qdi7
