Skip to content

Opus 5.5 vs GPT-6.1 Sol: Can AI Build a Save System?

2 min readBuild log ·

Can an AI model add saving and loading to a game that already exists, and get it right? Claude Opus 5.5 in Claude Code and GPT-6.1 Sol in Codex got the same finished Godot game, a small house with four doors, a key, a padlock, a crate and a guard on his round, and one job: F6 saves, F7 loads, and after a load the game carries on exactly as if it had never stopped.

AppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.

Intel or AMD Chromebook, with Linux turned on.

Download for macOSDownload for WindowsDownload for Linux

The test

First, how shipped games save: a typewriter in Resident Evil 2, a checkpoint in Halo: Reach, a quick save in Half-Life 2, and what a good save and a bad one look like. Then each model's work was tested the same way: save in the middle of things (a door mid-swing, a padlock falling, the guard in a doorway), quit, load, and compare 124 values against the same game left running. Plus seven presses in a row, and a save file cut in half.

More on this: Claude or ChatGPT for Godot

The prompt

The exact prompt both got:

More on this: Can AI Solve Godot's Stairs Problem?

This is a small first-person Godot game that already works: a house with four doors, a brass key, a padlock, a wooden crate you can push, and a guard who walks a round through the house, opening doors and closing them behind him. The house is built from code when the game starts; the code is in the game folder. Read it first. Then add saving and loading. F6 saves the game and F7 loads the last save, at any moment and as often as the player likes, and a line on screen says when the game has been saved or loaded. A save survives quitting: after the game has been closed and started again, F7 brings the saved game back. A load puts the whole game back exactly as it was at the moment it was saved, so that what happens next is what would have happened if it had never stopped. If there is nothing to load, or the save can't be read, the game says so and carries on. Don't change how the game plays, looks or sounds apart from that. Run and test the game only through Flockbay's tools: flockbay_play, flockbay_run_headless, flockbay_script_errors, flockbay_game_input, flockbay_game_get, flockbay_game_set, flockbay_game_screenshot, flockbay_last_run and flockbay_stop. Don't start Godot from your own shell, and if one of those tools can't do something you need, say exactly what was missing in your handover. Test your own work, fix what you find, and hand it over when you think it's done.

What was judged

What comes back: of everything in the house that can change, how much is right after a load, in the same session and after a quit.

What happens next: the doors, the guard and the crate after the load, against the game that never stopped.

What the file is: where it is written, how big, in what format, and what the game does when it is missing or damaged.

Whether the game is otherwise the game it was.

What it cost: tokens, calls, time, and the estimated API bill.

More on this: AI playtesting for Godot: an agent can check that your game works, not that it is fun

In the video

  1. 0:00 How games save, good and bad
  2. 0:39 The job: add save and load
  3. 1:12 Opus: save, quit, load
  4. 1:50 What a save has to hold
  5. 2:06 The real test
  6. 2:28 GPT-6.1 Sol
  7. 2:44 Trying to break them
  8. 3:05 The one difference
  9. 3:16 What only Sol's game did
  10. 3:36 Under the hood
  11. 4:17 The bill
  12. 4:30 The verdict

More on this: Can AI Build a 500-Enemy Horde in Godot?

It ran in Claude Code, on Flockbay’s MCP server

Claude Opus 5.5 ran in Claude Code for 14 minutes on the prompt above, with Flockbay’s tools connected over MCP: 22 calls to Flockbay’s tools and 67 to Claude Code’s own. Every call, from the run’s transcript:

ToolCalls
Edit31
Bash23
flockbay_run_headless9
Read9
Write4
flockbay_game_input3
flockbay_game_get2
flockbay_play2
flockbay_script_errors2
flockbay_stop2
flockbay_guide1
flockbay_last_run1

Godot’s output caught the first bug

The first check that failed was flockbay_run_headless on res://tests/save_tests.tscn. The lines it returned that name the problem:

Output
[3] ERROR res://tests/save_tests.gd:133: Parse Error: Cannot infer the type of "before" variable because the value doesn't have a set type.
[5] ERROR res://tests/save_tests.gd:226: Parse Error: Cannot infer the type of "before" variable because the value doesn't have a set type.
[7] ERROR res://tests/save_tests.gd:235: Parse Error: Cannot infer the type of "d" variable because the value doesn't have a set type.
[9] ERROR: Failed to load script "res://tests/save_tests.gd" with error "Parse error".

The next edit went to res://tests/save_tests.gd

The next edit Claude Code made after that check, through Edit:

Diff
-	var worst := 0.0
-	var worst_at := -1
-	var worst_col := -1
-	for i in n:
-		for j in first[i].size():
-			var d := _diff(first[i][j], second[i][j])
-			if d > worst:
-				worst = d
-				worst_at = i
-				worst_col = j
-	var info := "worst difference %s at frame %d, column %d" % [worst, worst_at, worst_col]
-	if worst_at >= 0:
-		info += ": %s vs %s" % [first[worst_at][worst_col], second[worst_at][worst_col]]
-	check(name + ": after the load the game plays out as it did after the save", worst < 1e-4, info)
+	var worst := 0.0
+	var first_off := ""
+	for i in n:
+		for j in first[i].size():
+			var d := _diff(first[i][j], second[i][j])
+			worst = maxf(worst, d)
+			if d >= 1e-4 and first_off == "":
+				first_off = "; first off at frame %d, column %d: %s vs %s" % [i, j, first[i][j], second[i][j]]
+	check(name + ": after the load the game plays out as it did after the save", worst < 1e-4,
+		"%d frames, worst difference %s%s" % [n, worst, first_off])

res://tests/save_tests.gd as it was handed over

Lines 105 to 137 of 283, from the game folder at the end of the build.

GDScript
	check(name + ": loaded", saver.load_game())
	check(name + ": notice says loaded", main.hud.last_notice == "Game loaded.")
	var second: Array = await _record(n)
	# Every count, state, flag and text must be the same on every frame. A
	# position, angle or timer may differ by float noise: the physics engine
	# solves contacts in an order that depends on its own history, which no
	# save can carry, so a body touching two things at once can come out a
	# hair different (fresh starts of this game differ the same way).
	var worst := 0.0
	var exact := n
	var discrete := ""
	for i in n:
		for j in first[i].size():
			var d := _diff(first[i][j], second[i][j])
			if d > 0.0 and exact == n:
				exact = i
			if d == INF:
				if discrete == "":
					discrete = "; frame %d, column %d: %s vs %s" % [i, j, first[i][j], second[i][j]]
			else:
				worst = maxf(worst, d)
	check(name + ": after the load the game plays out as it did after the save", discrete == "" and worst < 0.01,
		"%d frames, identical for the first %d, worst float difference %.6f%s" % [n, exact, worst, discrete])


func _press(action: String, frames: int) -> void:
	Input.action_press(action)
	await _frames(frames)
	Input.action_release(action)


# --- scenarios ---

The results, measured

Opus 5.5GPT-6.1 Sol
Minutes, start to handover13.624.4
Estimated bill at API prices$4.34$1.17
Lines added, tests included1,022957
Loads that match the game left running on all 124 values25 of 2625 of 26
The one that does not: a quit, then a load into the guard's path106 of 124, the guard 0.2 s late106 of 124, the guard 0.2 s late
A save file cut in half, emptied or replaceda line on screen, the game carries ona line on screen, the game carries on
Frames over 20 ms at a save or a loadnonenone
Its own save tests, run here47 of 4747 of 47
The house's door tests, run here45 of 4545 of 45
Drives that still play as the starting game before any load22 of 2213 of 22

Costs are estimates at public API prices, read on the day. Both runs went through a subscription. The starting game is the house Opus built in our doors episode.

From the filmed games

Claude Opus 5.5's game just after a save: a first-person view down a wooden hallway, the guard in the front doorway at the far end, a crate on the floor, and the line Game saved. at the top.
Claude Opus 5.5's game just after a save: a first-person view down a wooden hallway, the guard in the front doorway at the far end, a crate on the floor, and the line Game saved. at the top.
GPT-6.1 Sol's game after it was closed, started again and loaded: the same hallway with the guard in the same doorway, and the line Game loaded. on screen.
GPT-6.1 Sol's game after it was closed, started again and loaded: the same hallway with the guard in the same doorway, and the line Game loaded. on screen.
Claude Opus 5.5's game saved with the bedroom door partway through its swing, seen from inside the bedroom, with the line Game saved. at the top.
Claude Opus 5.5's game saved with the bedroom door partway through its swing, seen from inside the bedroom, with the line Game saved. at the top.
GPT-6.1 Sol's game after a load from a save file cut in half: the hallway as the game starts, with the line Couldn't read the saved game.
GPT-6.1 Sol's game after a load from a save file cut in half: the hallway as the game starts, with the line Couldn't read the saved game.

Built in Flockbay, a free AI game maker built on Godot.

Download Flockbay free

AppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.

Intel or AMD Chromebook, with Linux turned on.

Download for macOSDownload for WindowsDownload for Linux

Flockbay

The free AI game maker for Windows, macOS and Linux.