
Cognition shipped Devin Swarm this week, and it is the most interesting thing to happen to coding agents since the first pull-request bot. Instead of assigning one agent to one ticket, Swarm fans a single issue out to as many as 40 parallel Devin sessions. Each attacks the problem independently, and the swarm self-elects a winning diff before a human ever sees it. The kicker is not the parallelism — it is the price tag. Cognition bills per completed PR rather than per ACU, a genuine break from the metered-compute model every agent vendor copied from the frontier labs. It landed the same week OpenAI cut Cursor off from its models, which turned “does my coding agent depend on a lab that competes with me?” from a philosophical question into a procurement one.
What’s actually new about Devin Swarm
The mechanic is straightforward to describe and hard to build. You hand Swarm a ticket the way you would hand it to a single Devin session — a GitHub issue, a Linear task, a Slack thread. Swarm spawns a fleet of independent sessions against the same repo snapshot. Each one plans, edits, runs the test suite, and produces a candidate diff in its own sandbox. Because temperature and planning order differ across sessions, the approaches genuinely diverge: one session refactors the shared helper, another patches at the call site, a third notices the bug is actually in a fixture. Nothing is shared between them mid-flight, which is the point — cross-talk is what collapses multi-agent systems into one mediocre consensus answer.
The self-election step is where the real engineering lives. Candidates are scored against objective signals first — does it build, do the tests pass, does it touch fewer files, does it introduce new lint or type errors — and then a judging pass compares the survivors head to head. Only the winner is promoted to a PR. Everything else is discarded, and that is exactly why the pricing change matters. Under ACU-style billing, running 40 sessions to keep one would be a spectacularly expensive way to fix a typo. Under per-PR pricing, the 39 discarded attempts are Cognition’s cost of goods, not yours. Cognition moved the compute risk from the customer’s budget to its own margin, betting that inference gets cheaper faster than its win rate degrades.
The competitive timing is not subtle. When OpenAI restricted Cursor’s access to its models, every engineering leader who had standardized on a single agent vendor got a live demonstration of platform risk. Cognition trains and serves its own models for parts of the Devin stack and brokers others, which makes it structurally less exposed to one lab’s business decisions. That does not make Devin better at writing code. It does make “independent agent vendor” a line item in vendor reviews that did not exist six months ago, and Swarm is the flagship feature Cognition uses to convert that anxiety into contracts.
Why it matters
- Per-PR pricing changes what you can budget. ACU pricing forced teams to reason about token spend per ticket, which nobody could forecast. A per-merged-PR line item maps directly onto sprint planning and compares against the loaded cost of an engineer-hour.
- Parallelism is a quality lever, not just a speed lever. The value of 40 attempts is not that you get an answer 40 times faster — you don’t. The best-of-40 diff on a well-specified ticket beats the median single-shot attempt, because failure modes are uncorrelated across sessions.
- It moves the bottleneck to review. If agents reliably produce a strong PR per ticket, your constraint becomes human review throughput. Teams that have not invested in fast CI, good test coverage, and tight PR templates will not capture the gain.
- Specification quality becomes the differentiator. Swarm amplifies whatever is in the ticket. A vague issue produces 40 confidently wrong diffs and elects the most plausible-looking one, which is worse than one obviously wrong diff.
- Model independence is now a real buying criterion. The Cursor cutoff proved that an agent vendor reselling one lab’s models has a single point of failure it does not control. Expect procurement to start asking about model supply chains.
- The economics pressure everyone else. Once one vendor prices per outcome, “we charge for compute you can’t predict” gets harder to defend. Watch for competitors to introduce outcome-linked tiers within a quarter or two.
How to use Devin Swarm today
-
Confirm access and connect your repo. Swarm is a mode on an existing Devin workspace, not a separate product. Install the Devin GitHub app on the target repository and confirm the workspace can run your test suite — Swarm’s election step is nearly worthless if tests don’t execute in the sandbox.
-
Write a ticket that survives forty readings. This is the highest-leverage thing you can do. State the bug or feature, the acceptance test, and the files that are off-limits. A template that works:
## Problem Checkout fails with a 500 when a cart contains a subscription item and a one-time item together. ## Reproduction POST /api/checkout with fixtures/cart_mixed.json -> 500 Expected: 200 with a split payment intent. ## Acceptance criteria - tests/checkout/test_mixed_cart.py passes (currently xfail) - No change to the public /api/checkout response schema - Do not modify billing/legacy_adapter.py ## Constraints - Python 3.12, run `make test-fast` before proposing a diff -
Launch the swarm. From the CLI, point Swarm at the issue and set a fan-out width. Start narrow — width 8 on your first few tickets — so you can compare elected diffs against what a single session produces.
devin swarm run \ --repo acme/storefront \ --issue 4821 \ --width 8 \ --base main \ --verify "make test-fast && make typecheck" -
Give the swarm an objective verifier. The
--verifycommand turns subjective judging into measurable selection. Make it fast and make it strict. If your full suite takes 20 minutes, build a targeted subset:# Makefile test-fast: pytest -x -q tests/checkout tests/billing --timeout=60 typecheck: mypy --strict billing/ checkout/ -
Drive it from CI or a webhook for autonomous PR generation. The obvious pattern is labeling an issue and letting the swarm run unattended:
curl -X POST https://api.devin.ai/v1/swarm/runs \ -H "Authorization: Bearer $DEVIN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "repo": "acme/storefront", "issue_url": "https://github.com/acme/storefront/issues/4821", "width": 16, "base_branch": "main", "verify_command": "make test-fast", "draft_pr": true }' -
Keep every elected PR as a draft, and require a human approver. Set
draft_pr: trueand enforce it with branch protection. Swarm’s election tells you which of 40 attempts was best; it does not tell you whether the best one was good.gh api repos/acme/storefront/branches/main/protection \ --method PUT \ -f required_pull_request_reviews[required_approving_review_count]=1 \ -F enforce_admins=true -
Track cost per merged PR, not cost per run. The whole pitch of per-PR pricing is comparability. Log every swarm run with its issue ID, width, elected-diff outcome, and whether a human merged it. Two weeks of that data tells you which ticket classes are worth swarming and which should stay with a single session.
How Devin Swarm compares
| Capability | Devin Swarm | Cursor Agents | GitHub Copilot agent | Claude Code |
|---|---|---|---|---|
| Parallel attempts per ticket | Up to ~40, with automatic election | Multiple background agents, manual comparison | One session per issue | Manual fan-out via subagents or worktrees |
| Pricing model | Per completed PR | Seat plus usage | Seat plus premium requests | Subscription or per-token API |
| Model supply | Mixed, partly in-house | Third-party labs, exposed to access changes | Multi-model via Microsoft | Anthropic first-party |
| Primary surface | Cloud, async, ticket-driven | IDE plus cloud background agents | GitHub issues and PRs | Terminal and IDE, interactive |
| Best fit | Well-specified backlog tickets with strong tests | Interactive development with agent assist | Repo-native small changes | Hands-on work where you steer each step |
The honest read on Devin vs Cursor agents: they are not competing for the same hour of your day. Cursor is where you write code with an agent looking over your shoulder. Swarm is where you throw a ticket over the wall and check back. Most teams that adopt Swarm will keep an interactive agent too, and the budget fight will be between Swarm and headcount, not between Swarm and Cursor.
What’s next for parallel coding agents
The number to watch is election accuracy, not fan-out width. Forty candidates is a marketing figure; what determines whether Swarm is useful is how often the elected diff is the one a senior engineer would have picked. Cognition has not published head-to-head election data against human reviewers, so treat width as a knob to tune rather than a quality guarantee. Expect width to show sharply diminishing returns past 8 to 16 on typical tickets, with attempts 17 through 40 paying off only on genuinely ambiguous problems where approaches diverge a lot.
Watch the pricing mechanics next. “Per completed PR” is clean until you ask what counts as completed. If it means “opened,” the incentive is to open PRs; if it means “merged,” the incentive is to open only high-confidence ones and the vendor eats the cost of hard tickets. Cognition’s answer to that question, and how it handles a customer who swarms the same ticket five times after rejecting each PR, will tell you whether the model is durable or a launch-window promotion. Expect fair-use language and per-seat caps to appear as usage scales.
The structural story outlasts the feature. OpenAI’s move against Cursor established that model access is leverage, and every serious agent company is now either training its own models, brokering multiple suppliers, or negotiating contracts with teeth. Cognition is using Swarm to prove that an independent vendor can ship something the labs’ own tools haven’t. If best-of-N election proves a durable quality advantage rather than a compute-burning novelty, expect the labs to ship their own version within two quarters — at which point Cognition’s moat has to be the orchestration layer, not the idea.
Frequently Asked Questions
What is Devin Swarm in one sentence?
It is a Devin mode that runs a single ticket through dozens of independent parallel agent sessions, scores their diffs against your build and tests, and promotes only the winning one to a pull request.
What is ACU pricing, and why does moving away from it matter?
An ACU — Agent Compute Unit — is Cognition’s metered unit of agent work, roughly analogous to a compute-minute. ACU pricing made costs unpredictable because a single hard ticket could consume an unbounded amount of agent time. Pricing per completed PR moves that variance onto the vendor and gives you a number you can compare against an engineer-hour.
Does running 40 agents actually produce better code?
On well-specified tickets with real test coverage, yes — best-of-N beats single-shot because the failures are uncorrelated. On vague tickets it mostly produces 40 confidently wrong answers and elects the most convincing one. The quality of your issue text and your verifier command matters more than the fan-out width.
How is this different from just opening several Cursor background agents?
Fan-out is the easy part; you can approximate it in most tools with git worktrees. The differentiator is automatic election — Swarm compares candidates and discards losers before a human is involved, so you review one PR instead of eight. Whether that election is trustworthy is the open question.
Should I let Swarm merge PRs without review?
No. Open them as drafts, require at least one human approval via branch protection, and keep autonomous PR generation scoped to ticket classes you have measured — dependency bumps, test backfills, well-defined bug fixes with a failing repro. Feature work with product judgment in it still needs a person.
Is Cognition’s independence from OpenAI a real advantage?
It is a real risk reduction, which is not the same as a product advantage. Cognition partly controls its own model stack, so a lab restricting API access does not brick its product the way it disrupted Cursor. That is worth something in a vendor review, but you should still buy the agent that ships the best diffs.
Go deeper than this article
This article covers the essentials. Our premium eguide library gives you the full step-by-step playbooks — prompts, workflows, and copy-paste recipes you can put to work today.