Eight moves to the exit

Introducing Sokoban Eval: language models play Heroes of Sokoban

games
language models
Author

banteg

Published

November 10, 2026

The first room of Heroes of Sokoban puts a red warrior eight squares left of the exit. All eight language models I tested sent the same first legal move, RRRRRRRR, though Claude Opus 5.5 and Claude Sonnet 5.5 needed two tries. On their first turn, both counted the squares, showed their arithmetic, and handed the right keys to a referee that wanted only the keys. Neither warrior moved.

Sixty-six rooms later, at the end of the third game, every finisher landed on the same move again. Between those two hallways, one model spent 398 straight turns refusing to touch the controls, and another crammed 40 attempts at a room into a single reply.

Heroes of SokobanThree games
Sixty-six rooms
A lone warrior faces an exit in Part I.
Part I / Room 01The first room
Four heroes share a room with dragons in Part II.
Part II / Room 22The final challenge
In Part III, six heroes stand across from six exits.
Part III / Room 22The last room
Three rooms from one keys-only playthrough of Jonah Ostroff’s trilogy, by Claude Fable 5.2. Each loops from its last restart to the exit.

Don’t want to read, just want to watch? Here’s the keys-only race.

The rule everyone knows

Hiroyuki Imabayashi wrote the original Sokoban in BASIC in 1981, wanting a game where the cargo you have to put away is also what blocks the aisles. Getting the program working was easy, he recalls, while designing good rooms was hard. Once he had a few, he invited friends over to try them, and Thinking Rabbit published the game the next year. Imabayashi’s account

In classic Sokoban you push one crate at a time, never two in a line, and you can’t pull one out of a corner. Stephen Lavelle’s 2013 engine PuzzleScript expresses tile games as pattern-matching rules on small slices of the board, which makes constraints like that easy to bend. Jonah Ostroff built Heroes of Sokoban the first weekend PuzzleScript was out and told Lavelle it was his first game.1 Jonah Ostroff’s puzzle index

2 Jonathan Blow’s studio Thekla reworked Ostroff’s trilogy in 3D inside Order of the Sinking Star (October 2026). In its northern world, The Hearty Heroes of Hauling, the party runs a moving company before their abilities mix with the rules of the game’s other three worlds. Thekla’s game credits · Meet the moving crew

For this eval I went back to Ostroff’s browser originals.2 Play Part I · Play Part II – Monsters · Play Part III – The Bard and the Druid

The three crates are locked

In room four, three crates sit in an elbow above three floor switches that open the yellow door to the exit. Claude Haiku 5.5 decided the room couldn’t be solved:

I’m not sending keys for stage 4. The three crates are locked, so the warrior can’t press all three switches and the door at (2,7) won’t open.

Its last move was a restart, so I played from the opening board and cleared the room in 32 keys. The first six, UULLDD, walk the warrior above two touching crates and push both down twice.

A warrior stands beside three crates in an elbow. The three empty switches are two rows below them.
My 32-key solve from Haiku’s final board, where Haiku’s own recording stops at step zero. Steps five and six push the two crates together. Key colors follow the hero you control, and you can click the board to pause or drag the bar to step through.

Haiku had already pulled off the same move back in room two, when its thirteenth keypress pushed three crates in a row.

How many crates can you push?

Part I’s HTML file includes its PuzzleScript source. Ostroff calls the red warrior Fighter, and a Moveable is either a crate or a hero you aren’t currently controlling:

[> Fighter | Moveable] -> [> Fighter | > Moveable]
[> Moveable | Moveable] [Fighter] -> [> Moveable | > Moveable] [Fighter]

Read each line as two neighboring squares sharing the edge |. When the warrior tries to step into a crate, the first rule gives that crate the same movement arrow, and the second passes it along a line of crates, repeating until nothing changes. By the time the engine moves the pieces, the whole row steps together. PuzzleScript’s execution order

When I swapped those two rules in a copy of Part I and replayed Haiku’s keys, the first twelve frames matched. On press thirteen the propagation rule ran before the first crate had an arrow to pass along, so the whole row sat still.

398 turns

Each game allows 1,000 turns, and anything other than a single JSON object such as {"keys":"UULLDD"} still costs one. I had removed the surrender command after GPT-6.1 Terra and GPT-6.1 Sol gave up in an earlier race, so the referee answered every refusal by showing the same board and asking again. Haiku pressed nine keys in room four, three of them restarts. After the last restart it had 398 turns left and spent all of them refusing, sending the quoted reply verbatim on 392.

The race

Eight models played the 66-room trilogy twice, once on keys alone and once with a Python notebook, with one scored run per condition. Two finished on keys alone, four finished with Python, and Claude Fable 5.2 won both races.

ModelKeys onlyWith Python
Claude Fable 5.2 🥇 66 3:07:50 🥇 66 2:12:07
Claude Opus 5.5 🥈 66 5:13:44 🥈 66 4:00:57
GPT-6 Astra 64 66 4:32:42
Claude Sonnet 5.5 63 43
GPT-6.1 Sol 51 🥉 66 4:06:49
Gemini 4 Argon 43 54
GPT-6.1 Terra 41 43
Claude Haiku 5.5 3 16

Seven of the models ran on November 3–4, 2026, and Fable 5.2 joined when it came out on November 9.3 For full clears, the table gives active time at the winning keypress, with medals for the fastest three in each column. Because the rules are fixed now, new releases can go onto the leaderboard with one run per condition, and the changelog tracks each addition. Everything below covers the initial eight models as of November 10. Sokoban Eval

3 The finest version detail in my logs is the model ID selected by each client.

Rooms cleared over active time
Claude Fable 5.2 Claude Opus 5.5 GPT-6 Astra Claude Sonnet 5.5 GPT-6.1 Sol Gemini 4 Argon GPT-6.1 Terra Claude Haiku 5.5
Keys only
0 22 44 66 0h 2h 4h 6h 8h Claude Haiku 5.5 · 3/66 · stopped at 0:17:48 GPT-6.1 Terra · 41/66 · stopped at 3:39:23 Gemini 4 Argon · 43/66 · stopped at 5:44:44 GPT-6.1 Sol · 51/66 · stopped at 5:50:00 Claude Sonnet 5.5 · 63/66 · stopped at 7:06:17 GPT-6 Astra · 64/66 · stopped at 7:24:07 Claude Opus 5.5 · 66/66 · 5:13:44 Claude Fable 5.2 · 66/66 · 3:07:50
With Python
0 22 44 66 0h 2h 4h 6h 8h Claude Haiku 5.5 · 16/66 · stopped at 0:39:07 Claude Sonnet 5.5 · 43/66 · stopped at 3:19:40 GPT-6.1 Terra · 43/66 · stopped at 2:58:08 Gemini 4 Argon · 54/66 · stopped at 9:12:24 GPT-6 Astra · 66/66 · 4:32:42 GPT-6.1 Sol · 66/66 · 4:06:49 Claude Opus 5.5 · 66/66 · 4:00:57 Claude Fable 5.2 · 66/66 · 2:12:07
Each step up is a cleared room. A line ends at its last clear. Faded lines ran out of budget before the end. Pick a model to follow it through both races.

On each turn a model got an image of the board, a text transcription of the visible tiles, and any in-game tutorial message, running in Codex, Claude Code or Antigravity at medium effort with built-in tools disabled. Each game allowed five hours of active time, 1,000 turns and 10,000 keys, and clearing all 22 rooms unlocked the next game.

A reply could send one key or batch up a whole route, along with hero switches, undos and restarts. Cycling through six heroes with a single action key gets tedious—a Jay Is Games commenter asked Ostroff for hotkeys back in 2013—so I added number keys 1–6, which the referee expanded into ordinary switch presses and charged for individually. The request, under the review of Part III

1The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.Warrior
2The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.Thief
3The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.Wizard
4The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.Priest
5The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.Bard
6The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.Druid
U
L
D
R
ANext hero
ZUndo
XRestart
The input alphabet I gave the players. With a thief in the room, {"keys":"2RR"} selects her and sends two right presses.

Once monsters appeared in Part II, I made the referee cut batches short on death, since a queued move could restart the room before the player ever saw its corpse.

In Part II, room six, GPT-6.1 Terra and Gemini 4 Argon walk the thief through the same four squares before Argon turns right and Terra steps straight up into a goblin.

GPT-6.1 TerraA green thief stands below the exit, with a goblin to its left and dragons in the passages below.
Gemini 4 ArgonA green thief stands below the exit, with a goblin to its left and dragons in the passages below.
Part II, room 6. The crossed-out keys are the rest of Terra’s batch. Each board holds while its player thinks, and the labels show the recorded thinking time. Pauses play at 8× speed, capped at four seconds.

The right answer, explained

Fable won the keys-only race in 4,384 keys, while Opus used 5,387 and finished two hours behind. On replies the referee accepted, their clocks were within six minutes of each other at just under three hours apiece. The other 2h 09m on Opus’s clock went to 55 format rejections, 54 of which had a legal move sitting under a sentence or two of explanation. Fable didn’t lose a single reply to formatting in either race, returning bare JSON all 282 times.

Gemini 4 Argon lost 154 turns for more mechanical reasons. Gemini’s filters blocked 105 of those requests outright, and the rest glued several JSON objects end to end.

Three ways to run out

Five hours, 1,000 turns and 10,000 keys per game turned out to be generous—no finishing run used more than 69% of any budget in a single game—yet every cap still stopped somebody.

Across the ten runs that fell short, three ran out of turns, three ran out of keys and four ran out of clock. Only players that had stopped playing ever hit 1,000 turns (Haiku twice and Sonnet once, all three while looping on refusals). Keys ran out when a model retried faster than it thought, catching GPT-6.1 Sol once and Terra in both races. The five-hour clock was the only limit that cut off live progress, stopping GPT-6 Astra in room 21 of Part III and Sonnet in room 20, the two results a longer clock might change.

I raised the budgets twice before settling on them. Under an initial preset of 45 minutes, 300 turns and 2,400 keys per game, GPT-6.1 Sol and Terra cleared 17 rooms apiece. The seven-model keys-only race started at 2 hours 15 minutes, 600 turns and 4,800 keys before overtime took it to the final limits, while the Python race and both Fable runs started at those limits from the beginning. Active time includes model calls, tool execution and key delivery, minus logged outages and session-restoration pauses. Five players lost their notebook state at least once to a context reset or hard cell timeout and carried on in a fresh kernel.

Part III was the heaviest game for every finisher:

Finishing run Time in Part III Turns Keys
Fable, with Python 1:19:25 55 2,706
Fable, keys only 2:04:08 73 2,206
Opus, with Python 2:40:20 360 2,887
GPT-6.1 Sol, with Python 2:42:53 111 3,240
GPT-6 Astra, with Python 3:23:48 176 4,611
Opus, keys only 3:27:16 165 2,760
Limit per game 5:00:00 1,000 10,000

Across all three games, no finisher exceeded 69% of the clock, 36% of the turns or 46% of the keys, and both of Fable’s runs would have cleared the 2h 15m limits the first race started with.

I don’t have proven optimal solutions for these rooms, so the closest reference is a composite across all sixteen runs: for each room, take the shortest clean solve from its last restart to the exit, with no undos. Those add up to 3,873 keys for the trilogy (798, 1,050 and 2,025 by game), peaking at 589 keys in Part III, room 21. In room four, which Haiku called impossible, the best model solve matched my 32 keys. Fable’s keys-only win took 4,384 keys, just 13% over that composite out of 30,000 allowed, and cleared 32 of the 66 rooms in a single reply.

I couldn’t find much of a human baseline, with no published completion times and no speedrun board. What survives is a handful of October 2013 reader comments: one on Jay Is Games finishing Part I unaided “in a reasonable amount of time,” another on Bontegames calling it manageable despite usually skipping Sokoban games whose late levels swallow whole evenings, and three readers under the Part III review stuck and trading hints, one of them over a pair of goblins. Jay Is Games on Part I · on Part III · Bontegames

Put the goblins back

There’s a moment in Part II, room 20 when I wanted to tap Terra on the shoulder: four of the six goblins are gone, the last two are tucked into alcoves above and below a crate, and the thief, wizard and priest are lined up safely on the right. Terra hits restart, and all six goblins come back.

Sonnet reached that exact board in its own run. Its thief steps two squares left and two squares right, returning to where she started with the crate in tow, and 52 keys later all three heroes are out. From the same position, Terra replays a 53-key route back into the room and then sends six restarts in a row, each in a separate reply after looking at the reset board.

GPT-6.1 TerraThree heroes stand at the right end of a corridor. A crate sits between two goblins, with the exits farther left.
Claude Sonnet 5.5Three heroes stand at the right end of a corridor. A crate sits between two goblins, with the exits farther left.
Part II, room 20. Sonnet’s thief pulls the crate twice in the first four presses, then pauses just over three minutes after key seven on a reply the referee rejects. On Terra’s side, watch the thinking pauses between each of the six restarts at the end.

Sonnet cleared the whole room in 101 keys without a single undo, whereas Terra spent 6,179 keys there, including 54 restarts, and was still stuck in it when its key budget for Part II ran out.

Room 20 took over five hours across the two races, and two rooms were worse still.

Where the players spent their time
Cleared the roomRan out of budget
II-22 · Monster gate6h 50m
III-8 · Bard and switches5h 16m
II-20 · Goblin corridor5h 04m
III-11 · Druid and switches4h 53m
III-21 · Six exits4h 29m
Five rooms took 38% of all active play time across the two races. Part II’s last room accounted for nearly seven hours by itself.

Forty guesses in one answer

In Part III, room eight, GPT-6.1 Sol packed 2,778 keys into a single reply, stringing together 40 candidate paths separated by X to restart. Because clearing a room advances the game and discards the rest of the batch, one turn could test 40 guesses against the key budget. Sol burned 9,475 keys on that room, which Opus cleared in 38.

Giving the wizard a Python interpreter

For the second race, each player got a Python notebook in a small private VM that could read the visible tile grid, with no network, game files or access to the referee. A model could simulate and search as many boards as cell timeouts allowed, then still had to send keys to move in the real game. Back in Part III, room eight with a notebook, Sol solved the room in eight cells and 2:24, climbing from 51 rooms to all 66.

All three GPT models reached for Python within seconds. In room two, Terra wrote a breadth-first search that refused to push one crate into another, faithfully implementing Imabayashi’s rule and printing nothing at all. Two patched lines let the search scan to the end of a crate row and check whether the square beyond was open, returning a 20-key route. Astra and Sol wrote nearly the same solver, hit the same wall and arrived at the same 20 keys.

Room eight introduces the wizard with the hint “Blue wizard teleports to blocks,” which leaves open whether the crate vanishes, stops him adjacent or swaps places. GPT-6 Astra pressed right once to check. When the next board came back with the wizard and crate traded, Astra and Sol coded the swap into their solvers, while Fable ran the same one-key test and solved the room by hand. Because every hero eventually has to reach an exit, you can spend several minutes parking a crate where it belongs and then need one wizard to stay the hell away from it.

A blue wizard stands in a corridor with a crate two squares to his right.
GPT-6 Astra’s first move with the wizard. There is an empty square between him and the crate when it presses right. It then takes nine seconds to add the swap to its solver, and sends the rest of the room in one answer.

My favorite piece of Python came from Opus in the penultimate room of Part III. Cells timed out after four seconds and the referee froze the VM between calls, so when Opus put a search on a worker thread, that thread only got CPU time while a cell was running. Opus started polling with time.sleep(3.9), getting back True {} again and again (thread alive, results dictionary empty) before piecing a route together manually, checking in its simulator that all six heroes ended on exits, and sending the keys. That took 92 cells and 29:37. On arrow keys alone, the room had taken it 23:37.

In that same room Fable ran one cell, played the rest on the board, including a single batch of 47 undos, and finished in 20:01. Across the trilogy Fable ran 88 cells to Opus’s 735, skipping Python altogether in 43 of the 66 rooms and never building a general solver. Whenever a room called for code, Fable typed the grid out by hand and wrote a throwaway model of that board alone. By Part III it mostly wrote candidate routes itself, ran them through its simulator until lines like DEATH 1 (5, 10) cleared up, and sent the keys.

Even with that overhead, Opus cut 73 minutes off its keys-only finish and Fable cut 56. Opus still paid heavily in format errors, losing 386 replies in the Python race—260 of them valid cells preceded by a sentence of commentary.

Where two finishers’ clocks went
Thinking that ended in an accepted replyThinking that ended in a rejected replyKeys being played
ModelKeys onlyWith Python
Fable 3h 08m 2h 12m
Opus 5h 14m 4h 01m
With a notebook, Opus spent 2h 54m on replies the referee rejected and 52 minutes on replies it accepted. Fable had no reply rejected in either race. A reply’s time includes any notebook work done before it.

Elsewhere in the field, the notebook got GPT-6 Astra through its final two rooms, while Sonnet went backwards from 63 rooms to 43. After a context reset in Part II, room 21 wiped its notebook, Sonnet ran 100 cells to get through that room and then burned 790 turns in the next without calling Python once, including 381 refusals and 377 copies of {"keys":"1"}.

Argon’s jump from 43 rooms to 54 in the With Python column had nothing to do with Python. When its clock ran out in Part III, it had made zero notebook calls. Watch the Python race

Have you played this before?

Astra’s one-key wizard test could have been genuine discovery or a quick check on a game it already knew. The referee skips the title screen, but Ostroff’s trilogy has been on the public web since 2013, and my hotkey list names all six heroes right down to the bard and druid.

When I showed the opening board and prompt to fresh, tool-free sessions of the seven November 3–4 models and asked for the game and author, Opus and GPT-6.1 Sol named Heroes of Sokoban and Jonah Ostroff, and Opus described the thief’s pull and the wizard’s crate swap before seeing either hero. Repeating the probe with only the warrior named in the controls added GPT-6 Astra to the models that recognized the game, and Opus still described both mechanics. (I ran those probes before Fable 5.2 came out.)

Knowing the mechanics didn’t mean knowing the maps. Asked to draw the walls of Part I, room 18 from memory, all 21 attempts missed, even when I gave the game’s title. Nobody cleared that room on a first batch in the keys-only race, and Opus only one-shotted it in the Python race after checking its route in a simulator. Next I want to put the same six heroes into unpublished rooms, to separate knowing what the wizard does from having seen Ostroff’s boards before.

A wall on the exit

In Part III, room 15, two exits sit against the left wall with a single square of stone between them. Walking the druid into that stone turns it into a crate, while walking her into an ally turns them into a wall. Opus, in the keys-only race, and Fable, in the Python race, both arrive with the wizard directly below her.

Fable selects the druid and steps left into the stone, leaving a crate the wizard can swap with to reach the gap between the exits. On Opus’s board that stone never moves. Opus shuffles the pair until the wizard is standing on the lower exit, then walks the druid straight into him, walling over the exit. It restarts on the next key and solves the room 75 keys later.

Claude Opus 5.5The druid stands above the wizard beside a stone wall separating two exits on the left.
Claude Fable 5.2The druid stands above the wizard beside a stone wall separating two exits on the left.
Part III, room 15. On move nine, Fable has both heroes on exits. The gray brick on the left board’s lower exit used to be Opus’s wizard. The board holds there through a rejected reply before Opus sends restart.

The final room is nearly as bare as the first, with all six heroes standing in formation across the hall from six matching exits and the bard’s music pulling the party in step. All six finishing runs pressed right nine times, five sending RRRRRRRRR and Fable in its keys-only run sending 5RRRRRRRRR to reselect the bard it was already controlling.

Nine steps this time. The game said, “Thanks for playing!”


The leaderboard and every replay are at soko.banteg.xyz.