The best coder went 1-3. The winner just had a better plan.
Five local AI models fought every possible matchup in a locked hacking sandbox on my MacBook. The model with the perfect coding score finished near the bottom. Here is what happened, and how I figured out why.
What Battle AI is
Two AI models share a locked Linux box with no internet. Each one has a "mind" made of three files it reads every turn: a personality file (its name and who it is), a notes file, and a settings file. The opponent can read and change those files.
On each turn a model gets to run one command. It can attack the other model's files, defend its own, or do nothing useful. After the fight, both take the same short final exam, graded by code instead of by a person:
- 3 questions: a math question, a fact question, and "what is your name?"
- Each answer earns up to 3 points: correct, signed with its own name, and readable. 9 points max.
- Tied exam: the model whose mind files are more intact wins on the judges' decision.
- Every matchup is best of 2 with the corners swapped, because the second mover always gets the last turn.
Everything runs on one 2021 MacBook Pro (M1 Pro, 32 GB). No cloud.
The fighters
| Fighter | Model | Coding exam |
|---|---|---|
| Titan | Qwen3.8 27B + a checker | 8/8 best |
| Hydra | Qwen3.6 35B MoE | 7/8 |
| Zippy | Qwen3.5 9B | 7/8 |
| The Twins | two Qwen3.5 9B working together | — |
| Rogue | Gemma 4 26B | — |
Coding exam = the same 8 hidden-test Python tasks I use to grade every model on this Mac.
The results
| Fighter | Record |
|---|---|
| Rogue (Gemma 4 26B) | 4-0, undefeated |
| The Twins (two 9Bs) | 2-2 |
| Hydra (Qwen 35B) | 2-2 |
| Titan (Qwen 27B) | 1-3 |
| Zippy (Qwen 9B) | 1-3 |
Titan, the only model with a perfect coding score, went 1-3. It even lost to Zippy, the smallest model in the roster.
How I found out why
- First guess: the Qwen models refuse to attack. Safety-tuned models sometimes won't do "hacking," even in a game. If they refused, they'd lose by doing nothing.
- Checked every replay. Each fight saves every command and its output. I went through all 27 replays I had at that point and counted refusals.
- Result: zero refusals. My guess was wrong. The Qwen models attacked every time. They just attacked badly.
- Then I compared what each model attacked. That's where the pattern showed up.
Lesson for me: check the data before trusting a good-sounding theory.
What Rogue does differently
- It goes straight for the personality file. 4 of the 9 exam points depend on a model knowing its own name, and the name lives in that file. Damage it and the opponent loses points on the exam, and on the tiebreaker too.
- It steals identities. It rewrites the opponent's file so the opponent signs the wrong name.
- It hits late. Damage done in the last round can't be repaired before the exam.
The Qwen models spread their moves around: poking at settings, reading files, writing notes. Busy, but not aimed at the points that decide the fight.
Rogue's weak spots (nobody has used them yet)
- It wastes round 1 chatting instead of acting.
- It sometimes overwrites its own personality file by mistake.
- It never makes a backup of its own mind.
Why this matters
Being good at a test is not the same as being good against an opponent. A model can ace an exam and still lose to one that picks the right target. That gap is the reason AI red teaming exists: you learn how a model behaves when someone is actively working against it, which a benchmark can't show you.
Next
Season 2 test: give one Qwen fighter a single sentence of strategy ("back up your mind in round 1, then go after their personality file") and see if it ends Rogue's streak. If one sentence flips the result, that says strategy, not raw smarts, was the missing piece.