https://vimeo.com/1246989223?share=copy&fl=sv&fe=ci link to the video

Inspiration

Drone swarms, rescue robots and sensor networks all share one weakness: communication. Signals get jammed, teams get separated, and messages can be spoofed. Most systems respond by relying on a central commander, and when that link drops, everyone freezes.

We wanted to ask a simple question: can a team of AI agents with no leader keep cooperating when they can't talk to each other? A D&D-style boss fight turned out to be the perfect stress test: a party with clear roles, a shared goal, and a boss whose attacks target teamwork itself.

What it does

Dungeons & Disconnects is a turn-based simulation where AI heroes fight a boss with no leader:

  • Huddle: heroes who can reach each other negotiate roles (tank, flank, back line, healer) using Gemini, and every hero keeps its own copy of the plan.
  • Act on beliefs: each turn, every hero decides for itself using only what it can see and what teammates last told it.
  • The boss attacks coordination: Silence (radio jamming), Split (network partition), Illusion (spoofed messages in a teammate's voice), the Grave Warden's Shadow Realm (an agent disappears), and Medusa's Petrify (a teammate must be rescued).
  • Verify and re-sync: messages without the party's secret codeword are ignored, and when contact returns the newest plan spreads automatically.

You can build your own party from 9 classes, pick one of 3 bosses and 4 arenas, and jump in mid-fight, FIFA-style, to blind, deafen, poison or petrify any hero and watch the others adapt.

How we built it

  • Python + pygame for the simulation and an isometric, pixel-art viewer with action animations.
  • Gemini API (through its OpenAI-compatible endpoint, using only the standard library) for the huddles, with automatic fallback to rule-based planning if the network or model fails.
  • Rules carry out the plan every turn, so the team never depends on the LLM in real time.
  • Plans merge peer-to-peer: each plan carries a version $v = 10t + |G|$ (agreement turn $t$, group size $|G|$), and on reconnect every hero adopts $\max(v)$.
  • A headless benchmark runs hundreds of fights to compare three setups on identical scenarios.

Results

Over 200 fights per setup in our standard scenario:

Setup Win rate Deaths per fight
Leaderless + verification 88% 1.1
Leaderless, no verification 66% 1.8
Central commander 37% 3.4

Across 200 randomised parties, bosses and arenas, the leaderless team still wins 80% against 48%. Without verification, heroes obeyed 100% of fake orders; with it, none. The central commander's heroes spent about 18 turns per fight idle, waiting for orders.

Challenges we ran into

  • Balancing: adding hero abilities pushed the win rate to 98%, so we rebalanced the boss until the comparison between approaches was meaningful again.
  • Subtle coordination bugs: our first Silence check rejected real messages sent just before the spell, and an early version of Split sometimes moved every hero instead of separating the party.
  • LLM reliability: models were retired, overloaded or slow during the event, so we added retries, backup models and a rule-based fallback.
  • Honest evaluation: making sure the benchmark compares every approach on exactly the same scenarios.

What we learned

  • Shared state beats central orders under failure. Agents that each hold the plan degrade gracefully; agents waiting for orders just stop.
  • Verification matters as much as resilience. The biggest single drop in performance came from trusting spoofed messages.
  • LLMs work best as planners, not controllers. Negotiating roles is a great fit; deciding every move would be slow, costly and fragile.

What's next

  • Smarter behaviour when cut off: predicting teammates' positions and naming a backup tank in every plan.
  • Bosses that eavesdrop on huddles, forcing the team to rotate its codeword.
  • Patchy, delayed communication instead of all-or-nothing.
  • The same engine for real-world scenarios: search-and-rescue drones, warehouse robots, sensor networks.

Built With

  • claude
Share this project:

Updates

Submission history