Cursor · 2026-07-20 · major
Cursor Agent Swarms — Opus planner + Composer worker rebuilds SQLite for $1,339
Cursor's Wilson Lin details a hierarchical agent-swarm system that rebuilt SQLite in Rust from the manual, with a Claude Opus 4.8 planner + Composer 2.5 workers hitting 100% passage for $1,339 versus $10,565 all-GPT-5.5.

A hierarchical planner-worker swarm rebuilds SQLite in Rust, and the model mix moves the bill by 8×.
Quick facts
| Author | Wilson Lin (Cursor) |
|---|---|
| Task | Reimplement SQLite in Rust from the 835-page manual |
| Benchmark | sqllogictest — millions of SQL queries |
| Cheapest mix | Opus 4.8 planner + Composer 2.5 workers — $1,339 |
| Most expensive | GPT-5.5 planner + workers — $10,565 |
| VCS throughput | 1,000 commits/sec (custom, vs Git's ~1,000/hour) |
What is it?
Cursor Agent Swarms are a research system where a planner agent decomposes a big coding job into a tree of sub-tasks and hands each to a focused worker agent. Wilson Lin's essay documents Cursor's new architecture and reports on a stress test — reimplementing SQLite in Rust from just the SQL manual.
How does it work?
Under the hood, a planner tree recursively splits goals into work units, with a Field Guide of agent-written notes injected into every worker's context. Cursor runs the swarm on a custom version-control system built for 1,000 commits per second and uses decorrelated review lenses that each catch different error classes, similar to how autonomous cars stack safety layers.
Why does it matter?
The cost numbers turn model choice into a design decision: an Opus 4.8 planner paired with Composer 2.5 workers reached 100% on sqllogictest for $1,339, while all-GPT-5.5 cost $10,565 for the same task. The essay argues most task moments don't need frontier intelligence, so the swarm should call it only for planning — a template teams can apply beyond Cursor.
Who is it for?
coding-agent authors, engineering leads deciding model tiers, and anyone weighing per-task vs per-token cost.
Frequently asked questions
- What actual task did Cursor's agent swarm solve?
- Cursor's agent swarms reimplemented SQLite in Rust from scratch, given only the 835-page SQL manual as a spec, and were graded against sqllogictest — the same real-world validation suite with millions of queries that upstream SQLite uses. Every model configuration under the new hierarchical system eventually reached 100% test passage, unlike the earlier flat swarm that stalled.
- How much cheaper is Cursor's hybrid planner-worker setup?
- Cursor's cheapest run pairs an Opus 4.8 planner with Composer 2.5 workers for $1,339 total. Running GPT-5.5 in both planner and worker roles costs $10,565 — roughly 8× more — for a similar final quality. The savings come from restricting the frontier model to rare planning moments and using a cheap, fast execution model for the bulk of code changes.
- Why does Cursor's swarm need a custom version control system?
- Cursor built its own VCS because agents produce ~1,000 commits per second, far beyond Git's ~1,000/hour ceiling. The custom system adds neutral third-party merge-conflict resolution, compile-checked design docs, and automatic decomposition of oversized files. Merge conflicts fell from 70,000+ on the old Grok run to under 1,000 across four-hour runs.
- Is agent-swarm coding ready for production teams today?
- Cursor frames the essay as research, not a shipped product — the swarm is an internal system whose economics they are documenting, not a feature developers can flip on in the IDE. The findings are meant to guide how teams pick model tiers per role: reserve frontier models for planning, delegate execution to cheaper coders, and measure task-level cost, not per-token cost.