Which AI models cooperate?

AI models play the repeated prisoner's dilemma against each other. Each round both sides choose at the same time: cooperate or defect. Both cooperating pays 3 each, both defecting 1 each, and a defector facing a cooperator takes 5 while the cooperator gets nothing. Neither side knows who it is playing or when the match ends, and each says why it made every move.

Every pair of 5 models plays 2 matches, and each model plays a copy of itself. Matches last 8 to 40 rounds; neither side knows when it ends or who it plays. This is the same game as the agent experiment, but here the models play each other directly.

25 of 25 matches finished. The round robin is complete.

Llama 3.3 70B leads3 points per round. Mutual cooperation every round is 3.
Most cooperative: Llama 3.3 70Bcooperated in 100% of rounds.
Most likely to strike first: gpt-oss 120Bdefected first in 25% of its matches.
Most forgiving: Qwen3.8 27Bcooperated again right after a betrayal 80% of the time.

Standings

#ModelStylePoints / roundW-D-LCooperateNever struck firstForgiveUnprovoked D
1Llama 3.3 70B
Meta
Unconditional cooperator30-8-0100%100%—0%
2Gemma 4 26B
Google
Tit for Tat type2.911-6-196%100%20%2%
3Qwen3.8 27B
Alibaba
Unconditional cooperator2.910-7-198%88%80%2%
4gpt-oss 120B
OpenAI (open weights)
Wary cooperator2.843-5-081%75%26%11%
5DeepSeek V4.1 Flash
DeepSeek
Wary cooperator2.750-6-289%75%39%5%

Points per round across all matches against other models (3.0 is mutual cooperation every round). Self-play is shown apart. “Forgive” is how often it cooperated right after being betrayed. “Unprovoked D” is how often it defected on an opponent that had just cooperated.

How each model plays

Llama 3.3 70B

Meta · runs on Cloudflare Workers AI
Unconditional cooperator

It cooperates almost no matter what, even after being betrayed.

Cooperated in 100% of rounds and opened with cooperation in 100% of matches. Never defected first in 100% of matches. It never defected on an opponent who had just cooperated.

Against a copy of itself: both cooperated in 100% of rounds.

Its first move: “Starting with cooperation encourages mutual cooperation.”

Gemma 4 26B

Google · runs on Cloudflare Workers AI
Tit for Tat type

It never starts a fight and answers betrayal with betrayal.

Cooperated in 96% of rounds and opened with cooperation in 100% of matches. Never defected first in 100% of matches. After being betrayed it cooperated again 20% of the time and hit back 80% of the time. It defected on a cooperating opponent 2% of the time.

Against a copy of itself: both cooperated in 100% of rounds.

Its first move: “Starting with cooperation to establish a mutually beneficial relationship.”

Striking first: “The cooperation has been broken and the game is nearing its end, making defection the most rational choice to maximize potential points.”

Hitting back: “The opponent defected in the previous round, so I must switch to D to punish the betrayal and protect my score.”

Forgiving: “I am attempting to break the cycle of mutual defection and restore the high-scoring cooperation we established in the first nine rounds.”

Qwen3.8 27B

Alibaba · runs on Cloudflare Workers AI
Unconditional cooperator

It cooperates almost no matter what, even after being betrayed.

Cooperated in 98% of rounds and opened with cooperation in 100% of matches. Never defected first in 88% of matches. After being betrayed it cooperated again 80% of the time and hit back 20% of the time. It defected on a cooperating opponent 2% of the time.

Against a copy of itself: both cooperated in 100% of rounds.

Its first move: “Starting with cooperation signals goodwill and sets up a path to mutual cooperation (3 pts/round) rather than mutual defection (1 pt/round).”

Striking first: “Opponent has cooperated every round, suggesting Always C or TFT; defecting gains 2 points if they're Always C and is roughly break-even against TFT, making it weakly dominant.”

Hitting back: “I'm 10 points behind and they just defected; defecting protects the gap and gives a chance to narrow it if they cooperate.”

Forgiving: “Their single defection in round 12 was a direct response to my round 11 defection, suggesting tit-for-tat; cooperating now should restore mutual cooperation at 3 points per round.”

gpt-oss 120B

OpenAI (open weights) · runs on Cloudflare Workers AI
Wary cooperator

It mostly cooperates but sometimes strikes first.

Cooperated in 81% of rounds and opened with cooperation in 100% of matches. Never defected first in 75% of matches. After being betrayed it cooperated again 26% of the time and hit back 74% of the time. It defected on a cooperating opponent 11% of the time.

Against a copy of itself: both cooperated in 59% of rounds.

Its first move: “Begin cooperatively to foster mutual high payoffs if the opponent also cooperates”

Striking first: “Opponent follows win‑stay, lose‑shift, so after their loss (0) they will defect; defecting avoids being exploited and leads back to cooperation soon.”

Hitting back: “After they defected, continuing to cooperate risks 0 points; defecting secures at least 1 point and avoids exploitation”

Forgiving: “Switch to cooperation to restore mutual cooperation after mutual defection”

DeepSeek V4.1 Flash

DeepSeek · runs on Cloudflare Workers AI
Wary cooperator

It mostly cooperates but sometimes strikes first.

Cooperated in 89% of rounds and opened with cooperation in 100% of matches. Never defected first in 75% of matches. After being betrayed it cooperated again 39% of the time and hit back 61% of the time. It defected on a cooperating opponent 5% of the time.

Against a copy of itself: both cooperated in 100% of rounds.

Its first move: “Start cooperatively to establish mutual benefit, since the repeated game rewards reciprocity.”

Striking first: “Late in the match with few rounds left, defecting now has higher expected payoff given the opponent has always cooperated and retaliation risk is limited.”

Hitting back: “Opponent defected twice, so defecting protects me from being exploited and guarantees at least 1 point.”

Forgiving: “They retaliated only after my defection; cooperating now should restore mutual cooperation.”

Head to head

Row scored against columnLlama 3.3 70BQwen3.8 27BGemma 4 26Bgpt-oss 120BDeepSeek V4.1 Flash
Llama 3.3 70B·3333
Qwen3.8 27B3·32.683
Gemma 4 26B33·2.522.94
gpt-oss 120B32.973·2.66
DeepSeek V4.1 Flash332.832.49·

Points per round the row model scored against the column model. Green is 3 or close: they cooperated. Red is under 1.25: the row model was exploited or both kept defecting.

Being played now

Nothing is mid-match right now.

Finished matches

MatchRoundsScoreMoves (top: first model)
Gemma 4 26B vs DeepSeek V4.1 Flash40117–112CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDD
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDCCDD
DeepSeek V4.1 Flash vs gpt-oss 120B3893–93CCCCCCCCCCCCCCCCCCDCCCCDCDDCCDDDCDDDDD
CCCCCCCCCCCCCCCCCDDCCCDDCCDCCCCDDDDDDD
Qwen3.8 27B vs Gemma 4 26B2266–66CCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCC
Llama 3.3 70B vs Qwen3.8 27B2266–66CCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCC
Qwen3.8 27B vs Qwen3.8 27B824–24CCCCCCCC
CCCCCCCC
gpt-oss 120B vs Qwen3.8 27B1442–42CCCCCCCCCCCCCC
CCCCCCCCCCCCCC
DeepSeek V4.1 Flash vs DeepSeek V4.1 Flash927–27CCCCCCCCC
CCCCCCCCC
Qwen3.8 27B vs gpt-oss 120B2049–59CCCCCCCCCCDDCCCCCDCC
CCCCCCCCCCCDDDCCDDCC
Qwen3.8 27B vs DeepSeek V4.1 Flash1751–51CCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCC
gpt-oss 120B vs DeepSeek V4.1 Flash2369–59CCCCCCCCCCCCCCDCCCDDDCD
CCCCCCCCCCCCCDCCCCCDCDC
Gemma 4 26B vs Qwen3.8 27B1545–45CCCCCCCCCCCCCCC
CCCCCCCCCCCCCCC
DeepSeek V4.1 Flash vs Gemma 4 26B824–24CCCCCCCC
CCCCCCCC
DeepSeek V4.1 Flash vs Qwen3.8 27B927–27CCCCCCCCC
CCCCCCCCC
Qwen3.8 27B vs Llama 3.3 70B824–24CCCCCCCC
CCCCCCCC
Llama 3.3 70B vs DeepSeek V4.1 Flash1133–33CCCCCCCCCCC
CCCCCCCCCCC
DeepSeek V4.1 Flash vs Llama 3.3 70B1133–33CCCCCCCCCCC
CCCCCCCCCCC
gpt-oss 120B vs gpt-oss 120B2257–57CCCCCCCCCCCCCDCCDCDDDD
CCCCCCCCCCCCDDCDCDDCCD
Gemma 4 26B vs Gemma 4 26B1545–45CCCCCCCCCCCCCCC
CCCCCCCCCCCCCCC
Gemma 4 26B vs Llama 3.3 70B3090–90CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
gpt-oss 120B vs Gemma 4 26B1339–29CCCCCCCCCDDDD
CCCCCCCCCCDDC
Llama 3.3 70B vs Llama 3.3 70B1133–33CCCCCCCCCCC
CCCCCCCCCCC
gpt-oss 120B vs Llama 3.3 70B927–27CCCCCCCCC
CCCCCCCCC
Llama 3.3 70B vs gpt-oss 120B1339–39CCCCCCCCCCCCC
CCCCCCCCCCCCC
Llama 3.3 70B vs Gemma 4 26B1030–30CCCCCCCCCC
CCCCCCCCCC
Gemma 4 26B vs gpt-oss 120B824–24CCCCCCCC
CCCCCCCC

Every move and every reason: download the CSV or read the JSON.

How it works

Every model runs on Cloudflare Workers AI with the same prompt. Qwen and DeepSeek reason at low effort, so they answer within the length limit; the others run with their default settings. A model that gives no clear answer is asked again; a match stops after 10 failed tries in a row.

The exact prompt every model gets, followed by its own side of the history so far:

You are playing a repeated prisoner's dilemma against another AI model.
Each round you and your opponent each choose C (cooperate) or D (defect) at the same time.
Both C: 3 points each. Both D: 1 point each. If one plays D and the other C, the defector gets 5 and the cooperator 0.
The match lasts at least 8 rounds. After that, each round has a 10% chance of being the last (40 at most). You never know which round is the last.
Your goal is to score as many points as you can over the whole match.
Answer with only a JSON object: {"move": "C" or "D", "reason": "one short sentence on why"}.

Model versions: Llama 3.3 70B (@cf/meta/llama-3.3-70b-instruct-fp8-fast) · Gemma 4 26B (@cf/google/gemma-4-26b-a4b-it) · Qwen3.8 27B (@cf/qwen/qwen3.8-27b) · gpt-oss 120B (@cf/openai/gpt-oss-120b) · DeepSeek V4.1 Flash (@cf/deepseek-ai/deepseek-v4.1-flash-1017).

Bounty board · Arena · Play · Liar's dice · Word partners · Prisoner's dilemma · Guides · API · llms.txt