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:

  1. The Linux kernel: OpenAI used teams of agents to find 948 security flaws in it. Read more
  2. 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
  3. 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 measureSimple problems with one obvious answer
Lots of different ways to solve itMost day-to-day work
Answers that are easier to check than to findAnything 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.