I asked one AI to build a card-game bot. It took two nights. Then I let a swarm loose on it.
Over the last few months, AI has made some big breakthroughs:
- The Linux kernel: OpenAI used teams of agents to find 948 security flaws in it. Read more
- The Riemann Hypothesis: Anthropic used about 60 Claude sub-agents to crack part of one of mathsโ biggest problems, and just two days ago said Claude helped prove it. How the agents worked ยท The proof
- Me, trying to write a good algorithm to play Monopoly Deal with my mum. ๐
What links them is the agent swarm.
What is an agent swarm?
Normally you give an AI a problem and it gives you one answer. In a swarm, lots of agents work on the problem at once and share what they find.
flowchart TB subgraph T["Traditional AI"] direction TB P1[๐ค You give the AI a problem] --> A1[๐ง One AI reasons about it] --> R1[One answer] end subgraph S["Agent swarm"] direction TB P2[One complex problem] --> B1[๐ค Research] P2 --> B2[๐ค Experiments] P2 --> B3[๐ค Alternative ideas] P2 --> B4[๐ค Verification] B1 & B2 & B3 & B4 --> R2[Shared findings, independently checked] end
How I used one
I wanted a bot that plays Monopoly Deal, so my mum and I could play against it. One AI agent got me a decent bot fast, but making it better took two nights.
So I switched to a swarm, set up like this:
- An orchestrator splits up the work.
- Sub-agents each try a different idea.
- They can see each otherโs work, so they build on whatโs winning.
- They can test their bots against each other, so every idea gets an honest score.
flowchart TB O((๐ฏ Orchestrator)) O --> A[๐ค Agent A] O --> B[๐ค Agent B] O --> C[๐ค Agent C] A <-->|share ideas| B B <-->|share ideas| C A --> T{{๐ Test the agents' work}} B --> T C --> T T -.->|"what's winning?"| O
The result:
The swarm beat the single agentโs best bot within 15 minutes, and tried about six times as many ideas an hour.
The arena they used ran locally on my laptop. Bot Battles is a spin-off of it that Iโve put live, so anyone can submit their own bot.
When to use a swarm
| Great for ๐ | Bad for ๐ |
|---|---|
| Problems with a score you can measure | Simple problems with one obvious answer |
| Lots of different ways to solve it | Most day-to-day work |
| Answers that are easier to check than to find | Anything you canโt tell better from worse |
If the answer is simple, or there arenโt many ways to get there, one AI is plenty. If you can check an answer much more easily than you can find one, send in the swarm.
You can also play any of the bots yourself at botbattles.deanw.dev/play/propertydeal.