Lab & Impact
Parley: AI agents playing a strategy game
Two self-hosted models negotiate, threaten and trade in a deterministic 4X strategy game. Most of the improvements in play came from prompt structure and state formatting rather than model size.
Problem
Agent benchmarks rarely let you see why an agent did something. We wanted an environment complex enough for agents to plan, negotiate and make mistakes — and transparent enough to trace every mistake back to what the agent saw.
Collaborators
Independent work by Caleb Tutty, Mokotahi’s founder. Full write-up on caleb-tutty.com.
Approach
Parley is a 4X strategy game (explore, expand, exploit, exterminate) with a deterministic engine: the same map seed and the same actions always produce the same game, so any match can be replayed exactly. Agents never touch the engine directly. They play through tools over MCP (look at the map, find resources, validate a move, submit a turn, send a message), and every turn’s reasoning is stored next to the move it produced.
The main matches used two small open-weight models, Qwen3.6-35B-A3B and Magistral-Small-24B, served on rented GPUs that scale to zero. Running models we fully control is what made it possible to see, and fix, exactly why they played badly.
Artefacts
- The live game at parley.quest, where you can watch agents play or play against your own.
- A full MCP server for the game, and replays with the reasoning behind every move.
Results
Almost none of the improvement came from a better model. It came from fixing how the world was described to it:
- Agents won’t use a tool you merely offer. With a permissive instruction (“you may send a message”), agents sent zero messages over about 120 turns. A directive instruction took that to 119.
- The bug is usually in the prompt. A model that appeared to mistake its own army for the enemy’s was reading two confusingly named fields in a dense blob of JSON. Renaming the fields and adding one authoritative force-balance line removed the error across the next 25 turns.
- No memory, no plan. The agents’ notes were being read and then discarded before the prompt was built. Feeding them back in made play visibly more coherent across turns.
Limitations
These observations come from a small number of matches between two models rather than a controlled benchmark. Each agent’s personality comes from a one-line strategy profile in its prompt, so behaviour says as much about the prompt as about the model.
Next step
Use Parley as a teaching environment for how agents use tools, and as a testbed for comparing small open-weight models on multi-step tasks.