Coding Agents Are Zero-Shot Coordinators

Shashank Reddy Chirra1, Ryo Nakahashi2, Shimon Whiteson1, Jakob Foerster1

1 BOLD, University of Oxford 2 Sony Interactive Entertainment

Can independently developed AI agents coordinate with one another and with humans?

We find that coding agents can generate policies as code and iteratively refine them using only self-play feedback, outperforming current zero-shot coordination methods.

What is zero-shot coordination (ZSC)?

Zero-shot coordination (ZSC) requires independently developed agents to cooperate with unseen partners, including humans.

Two independent developers receive the same cooperative task. They each produce a policy, and the two policies are paired for the first time at test time.

Why is it difficult?

Agents trained in self-play can develop specialised conventions that work with copies of themselves, but fail when paired with an independently trained partner.

Three synchronized Test-Time Coordination Wide games: IPPO seed 0 and seed 1 each score 220 in self-play, while pairing the two seeds in cross-play scores minus 120.
Two independently trained IPPO policies on Test-Time Coordination Wide (Gessler et al., 2025).

Coding Agents for ZSC

We task coding agents with generating policies that coordinate with unseen partners. They write, test, and refine executable policies using only self-play feedback.

A coding agent receives the task specification and the objective of coordinating with unseen partners. It writes policy code, tests two copies of that policy in self-play, inspects only self-play feedback, and refines the code. Cross-play with unseen partners happens after independent policy generation and provides no feedback to this loop.

Results

We find that coding agents achieve state-of-the-art results on Overcooked V2 and Yokai in inter-seed cross-play (IXP): pairing policies generated in independent runs of the same method. Their policies also coordinate across model families and on novel Overcooked V2 layouts not included in the original benchmark paper.

GPT-6 Astra × Claude Fable 5.1

Grounded Coord. Simple
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Grounded Coord. Simple.
Grounded Coord. Ring
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Grounded Coord. Ring.
Test-time Simple
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Test-time Simple.
Test-time Wide
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Test-time Wide.
Demo Cook Simple
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Demo Cook Simple.
Demo Cook Wide
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Demo Cook Wide.

Novel layouts

Block Grid
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Block Grid.
Pipeline Cook
GPT-6 Astra (red) and Claude Fable 5.1 (blue) coordinating in Pipeline Cook.
Overcooked V2 results

Mean episode return ± standard deviation. SP: self-play; IXP: inter-seed cross-play. Coding agents: six seeds, 1,024 games per pairing. Published baselines: ten seeds, 500 games per pairing (Gessler et al., 2025). Best SP and Best IXP are highlighted, ranked before rounding.

Coordination performance on Overcooked V2
MethodDemo Cook
Simple
Demo Cook
Wide
Grounded Coord.
Simple
Grounded Coord.
Ring
Test-time
Simple
Test-time
Wide
SPIXPSPIXPSPIXPSPIXPSPIXPSPIXP
Self-Play172± 1936± 82195± 440± 61154± 10-55± 124164± 10-12± 75145± 22-81± 99194± 12-30± 96
State-Augmented170± 16112± 50192± 760± 60156± 29-17± 115165± 7-16± 65161± 18-55± 103137± 82-12± 72
Other-Play149± 2547± 48162± 2362± 53122± 244± 73121± 36-9± 21121± 37-3± 51175± 54-11± 42
Fictitious Co-Play22± 481± 2545± 4313± 2864± 5846± 4786± 346± 4635± 446± 2995± 5623± 40
GPT-5.6 Sol207± 16174± 27185± 32162± 29149± 18129± 9152± 17133± 14180± 1155± 19214± 17202± 11
Claude Opus 5198± 4197± 1202± 4193± 8139± 8130± 5147± 4130± 4172± 6168± 2209± 11120± 26
GPT-6 Astra198± 3191± 7213± 9211± 4138± 4137± 1152± 3150± 2161± 12155± 5214± 11177± 26
Claude Fable 5.1200± 11196± 1212± 16203± 5134± 3134± 1158± 16130± 7174± 9172± 4231± 10218± 15
Yokai results

Mean episode return ± standard error of the mean. SP: self-play; IXP: inter-seed cross-play. Coding agents: six seeds, 1,024 games per pairing. Published baselines: 12 seeds, 5,000 games (Ruhdorfer et al., 2026). Best SP and Best IXP are highlighted, ranked before rounding.

Coordination performance on two-player Yokai
MethodSPIXP
9 cards · Perfect memory
IPPO7.5± 0.31.6± 0.2
IPPO+High Ent.7.5± 0.14.1± 0.8
Other-Play6.6± 0.24.8± 0.1
OBL L44.5± 0.22.8± 0.3
GPT-5.6 Sol4.9± 0.34.7± 0.1
Claude Opus 56.0± 0.55.6± 0.3
GPT-6 Astra7.5± 0.57.3± 0.2
Claude Fable 5.17.0± 0.37.0± 0.1
9 cards · Imperfect memory
Other-Play0.0± 0.00.0± 0.0
GPT-5.6 Sol4.9± 0.54.3± 0.1
Claude Opus 55.2± 0.55.2± 0.2
GPT-6 Astra6.3± 0.56.5± 0.2
Claude Fable 5.17.1± 0.36.9± 0.2
16 cards · Perfect memory
IPPO0.0± 0.00.0± 0.0
GPT-5.6 Sol6.3± 0.45.1± 0.2
Claude Opus 56.1± 0.64.2± 0.7
GPT-6 Astra8.2± 0.98.0± 0.4
Claude Fable 5.18.4± 0.28.0± 0.1

Hybrid Method

Unlike Overcooked V2 and Yokai, ZSC methods achieve near-optimal SP and IXP in Hanabi. Yet their learned conventions can differ from human conventions, making human–AI coordination challenging (Dizdarević et al., 2025; AH2AC2).

Coding agents can translate human conventions into code policies, but achieve lower SP and IXP, possibly due to weaker long-horizon belief tracking.

We propose a Hybrid method that combines these complementary strengths, using a fixed code policy to guide self-play. This method achieves comparable SP and IXP to the strongest baselines and the highest cross-play scores with AH2AC2 bots, trained on human gameplay, and the Will-Hanabi bot, which follows human conventions.

Human conventions become a fixed code policy through a coding agent. The code policy guides self-play with policy pi theta. The loss is L theta equals L SP of theta plus lambda times L CE of theta. L CE of theta equals the negative expectation under pi theta of log pi theta i of the code policy action a t code i given history tau t i.
Hanabi results

Mean episode return ± standard error of the mean. Six coding-agent runs, six hybrid policies, and four checkpoints per baseline; 1,024 games per policy pairing. SP: self-play; IXP: inter-seed cross-play; XP: cross-play with the named bots. H-group L1 supplies human conventions in text. Best SP, Best IXP, and Best bot XP are highlighted in their respective columns.

Coordination performance on two-player Hanabi
MethodSettingSPIXPAH2AC2 bot XP
Bot SP: 23.80
Will-Hanabi bot XP
Bot SP: 21.05
IPPOStandard24.53± 0.0215.63± 2.1313.60± 1.543.96± 0.48
IPPO+HEStandard24.48± 0.0124.43± 0.0211.64± 0.094.41± 0.08
OBL L4 (R2D2)Standard24.12± 0.0323.76± 0.0819.70± 0.165.19± 0.04
OBL L6 (IPPO)Standard24.35± 0.0124.32± 0.0014.92± 0.155.56± 0.13
GPT-5.6 SolStandard21.93± 0.1918.74± 0.4215.53± 2.257.42± 1.15
H-group L118.59± 0.6518.26± 0.2916.92± 0.5718.54± 0.47
Claude Opus 5Standard20.00± 0.3619.35± 0.1218.60± 0.3612.38± 0.63
H-group L120.05± 0.4219.09± 0.2017.75± 0.2418.21± 0.63
GPT-6 AstraStandard19.69± 0.8019.43± 0.3517.02± 1.6112.09± 1.55
H-group L121.53± 0.3421.11± 0.1917.87± 0.3319.98± 0.25
Claude Fable 5.1Standard20.55± 0.2619.50± 0.1619.34± 0.6814.87± 0.99
H-group L121.81± 0.2120.80± 0.1218.17± 0.4020.25± 0.28
Hybrid (Astra)H-group L124.28± 0.0124.14± 0.0521.75± 0.1821.97± 0.11
Hybrid (Fable)H-group L124.31± 0.0223.98± 0.2120.98± 0.2321.69± 0.23

Conclusion

Our results show that advances in general model capability address longstanding challenges in zero-shot coordination. Coding agents can independently generate compatible policies, follow human conventions specified in natural language, and guide deep RL policies towards those conventions.

Citation

@misc{chirra2026coding,
  title  = {{Coding Agents Are Zero-Shot Coordinators}},
  author = {Chirra, Shashank Reddy and Nakahashi, Ryo and
            Whiteson, Shimon and Foerster, Jakob},
  year   = {2026}
}