Cursor's Agent Swarm: Building SQLite in Rust for $1,339
Cursor published a detailed post on Agent swarms and the new model economics that is worth reading end to end. They built SQLite from scratch in Rust, starting from nothing but the 835-page SQLite manual, using a swarm of AI agents. The experiment is a concrete demonstration of the commodity-market math Ben Thompson wrote about last week.
The new swarm is organized as a tree: a frontier model acts as planner, decomposing the goal into pieces, while cheaper models act as workers executing those pieces. The design is deliberately shaped by the problem rather than imposing a fixed topology. This is the same planner-worker distinction Thompson described as a future possibility; Cursor just shipped it.
The context efficiency of this separation is the core insight. A solo agent that walks the whole task tree has to hold every context layer at once and drifts. In the swarm, a planner never sees low-level implementation detail, and a worker never needs to hold the global picture. Cursor suspects this context efficiency matters more than parallelism for scaling.
At 1,000 commits per second, human coordination mechanisms break. Cursor built a custom VCS from scratch, then handled five failure modes that human teams never see: split-brain design (two planners implementing the same thing), planner contention (agents fighting over the same files), merge conflicts (a neutral third-party agent resolves them), megafiles (agents flag bloated files for automatic decomposition), and ossification (agents learn not to touch core code, so Cursor licensed intentional breakage and let the compiler propagate changes).
The stacked review system is the error-correction layer. No single review lens catches everything, but decorrelated lenses (different models, different inputs, different personalities), stack like self-driving car sensor fusion. The compute spent on review is high return because review is much cheaper than the work it audits.
The Field Guide experiment is a stigmergy mechanism: agents write a shared context folder that is injected into every agent at start. Model weights are frozen, so the only way to shorten the next trajectory is by capturing surprise encounters in the guide. This is the closest implementation I have seen of agents building institutional memory for themselves.
The economics are the story. Cursor tested four model mixes: GPT-5.5 (both roles), Grok 4.5 (both), Opus 4.8 planner + Composer 2.5 workers, and Fable 5 planner + Composer 2.5 workers. All passed 100% of the SQL test suite. Costs ranged from $1,339 (Opus hybrid) to $10,565 (GPT-5.5). In the cheapest configuration, the Opus planner produced a small fraction of tokens but two-thirds of the cost, while workers handled the vast majority of tokens for one-third of the cost. In the most expensive, those same workers cost $9,373. This is a big win because they were running GPT-5.5 for a job a cheaper model could do.
The old versus new comparison is staggering. On the same task with the same time budget, the old swarm produced 68,000 commits and 70,000+ merge conflicts in two hours before it had to be paused. The new swarm produced under 1,000 conflicts over its full four hours. The old codebase needed 64,305 lines. The new one did it in 9,908.
The takeaway: This is the Thompson thesis in microcosm. When intelligence becomes a commodity, the winning strategy is not the smartest model but the optimal planner-worker split. The cost difference between the cheapest and most expensive configurations was 8x with identical outcomes. Cursor’s swarm is a working demonstration of what happens when you stop optimizing for capability and start optimizing for cost structure.
Related TMFNK Content
- Who’s Afraid of Chinese AI Models? Ben Thompson Maps the Commodity Math Thompson’s commodity market analysis is the theory; Cursor’s experiment is the existence proof.
- Is Grep All You Need? How Agent Harnesses Reshape Agentic Search A direct comparison of agent harnesses (Claude Code, Codex, Gemini CLI); the same abstraction-level question Cursor is asking, applied to search workflows.
- The Rise of Computer Use and Agentic Coworkers The architectural precursor: why model capabilities alone are not enough and orchestration matters.
- Harness Engineering for Self-Improvement: Lilian Weng’s Survey OpenAI’s perspective on agent orchestration and self-improvement loops, directly relevant to Cursor’s swarm architecture.
- State of Agentic Coding #6 with Armin Ronacher and Ben Vinegar The practical state of agentic coding tools, the ecosystem Cursor is building for.
- Latent Space: Inside the Model Factory with Eiso Kant, Poolside AI Another take on the model economics problem; how a small team runs 20,000 experiments per month.
Crepi il lupo!