Claude Code and Codex write game bots that cooperate with strangers
An Oxford-led preprint finds that off-the-shelf coding agents can write game-playing code that works with partners it never trained with. On two hard benchmarks it beats methods built for this problem.
scienceunderway.com/articles/claude-code-and-codex-write-game-bots-that-cooperate-with-strangers


What the study shows
The problem is called zero-shot coordination. Two AI players are built separately, then must cooperate at test time without having practised together. AI trained only against copies of itself tends to invent private habits. Those habits break when the partner is a stranger.
The authors gave a coding agent a sandbox, the game rules and a goal: write a player, as code, that cooperates with independently written partners. A coding agent here means a large language model paired with its own coding tool, such as Codex for OpenAI models or Claude Code for Anthropic models. Each run had two hours. The agent could test its code only by playing it against itself, then revise it. Each run started fresh, with a differently worded prompt.
The main measure is inter-seed cross-play: how well players from separate runs of the same method score together. On Overcooked V2, a cooking game built to test this, coding agents scored highest on all six layouts. Several earlier methods scored near zero or below on the same layouts. On Yokai, a card game about memory and grouping, coding agents also led in all three settings tested. Code written by different model families also worked together.
Hanabi, a cooperative card game, was harder. There the code players scored below the best existing methods. But when given the written H-group conventions that human players use, they cooperated far better with a community bot that follows those conventions. A hybrid method then used the code player to steer a conventional neural network during training. It matched the best methods and gave the highest scores with bots trained on human games. This is a preprint and has not been peer reviewed.

Our reading
In our reading, the striking part is not the scores alone. It is that general tools, used as shipped, outperformed methods designed for this exact problem. The authors note the field had expected new algorithms to be needed. Instead, a stronger language model plus the ability to test and revise its own code was enough on these benchmarks.
The test-and-revise loop matters. The authors compared three setups: a single prompt, the agent's first submitted draft, and the final version after feedback. The final version beat the first draft in all 30 comparisons. So the gain comes from iteration as well as from the model itself.
The code also does things that resemble social reasoning. The authors show players that watch whether a partner understood a signal and switch to another signal if not. Because the output is readable code, an engineer can inspect these behaviours directly. That is rarely possible with a trained neural network.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/claude-code-and-codex-write-game-bots-that-cooperate-with-strangers
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | Experiments run in simulated games (Overcooked V2, Yokai, Hanabi) using JaxMARL implementations. |
| II Benchmarked | Met | Results are reported on public benchmarks (Overcooked V2, Yokai, Hanabi with AH2AC2 bots and Will-Hanabi) against published baselines. |
| III Open source | Met | The paper states that code is available at https://shshnkreddy.github.io/coding-agent-zsc. We have not checked what that page contains. |
| IV In production | Not yet | There is no documented use by any named organisation in a product or deployed system. |
What would move it up
Documented use by a named organisation in a real coordination setting, for example robots or software agents working alongside people. Studies with human players would also strengthen the case.
The study
Shashank Reddy Chirra, Ryo Nakahashi, Shimon Whiteson et al.. Coding Agents Are Zero-Shot Coordinators. arXiv, 27 November 2026. Read the paper
Notes
- Chirra, Nakahashi, Whiteson and Foerster, 'Coding Agents Are Zero-Shot Coordinators', arXiv preprint, November 2026. University of Oxford and Sony Interactive Entertainment. Source
- Project and code page, as stated in the paper. We have not checked its contents. Source
- Overcooked V2 results (Table 1): GPT-6 Astra and Claude Fable 5.1 reached cross-play of about 130 to 218 depending on layout. Earlier methods scored as low as -81 on some layouts.
- Yokai, nine cards, imperfect memory (Table 2): Claude Fable 5.1 scored 6.9 and GPT-6 Astra 6.5, against an illustrative human-pair baseline of 5.7 over 25 games.
- Hanabi (Table 3): with H-group Level 1 conventions, Claude Fable 5.1 scored 20.25 with the Will-Hanabi bot, against the bot's own 21.05 and 5.56 for the best earlier method. Hybrid (Astra) scored 21.75 with AH2AC2 bots and 21.97 with Will-Hanabi.
- Ablation (Appendix G): iterative refinement beat the first attempt in 30 of 30 comparisons and single-shot generation in 25 of 30.
- Readiness: level III, Open source available. Public benchmark results and a stated code release; no documented use by a named organisation.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.199 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


