Puzzles and mysteries / Recipe 01 of 4 · Play
Ten puzzle levels, every one proven beatable
The agent invents a box-pushing puzzle, writes a solver, throws away every level it cannot beat, and shows you the proof inside the game.
- About 25 minutes
- For anyone who wants to see an agent check its own work instead of promising it.
- Runs in Claude Code and OMP
What the agent made
Ran it for real with Claude Code 2.1.296 and OMP 18.10.3 on 2026-10-13, in an empty session with no saved memory. Your result will differ.
Open what Claude Code made, full screen
The same prompt in OMP made its own version: open what OMP made. Two runs, two different results: that is normal.
Make your own
Get the files
Make an empty folder called
cli-practicein Downloads. No downloads: start in an empty folder.Open your agent in that folder
Open a terminal in
cli-practiceand typeclaudeoromp --approval-mode always-ask. First time? Set up in about five minutes, with steps for Mac, Windows, and Linux.Paste this prompt
Make a box-pushing puzzle game with ten levels, each one proven beatable. Work in this empty practice folder. 1. Write solver.py (Python 3 standard library only) that finds the shortest solution, in moves, for a level by breadth-first search over player and box positions. 2. Generate or design many candidate levels, run the solver on each, throw away every level it cannot beat, and keep ten that get harder, using each level's shortest solution length as its par. Save the ten levels with their solutions in levels.json. 3. Make python3 solver.py levels.json re-solve every level from scratch, confirm each stored solution wins in exactly par moves, print one line per level, and exit 0 only if all ten pass. Run it and report its exit status. 4. Build one self-contained puzzle.html that embeds the same ten levels: arrow keys and tappable on-screen buttons, undo, restart, a move counter against par, and a Watch the proof button that replays the stored solution one move at a time through the game's own move function, so the replay obeys the same rules a player does. Add a proof receipt panel with a native, labeled disclosure for each level: its par, an inspectable stored move sequence and its initial and winning state in ordinary HTML. A tap or keyboard activation of the receipt must reveal the actual level-specific proof, not merely a badge or color; the existing Watch the proof still plays it through game rules. Keep a full list of all ten levels and proof paths readable without JavaScript, with static text explaining how to inspect or replay them. Show a checker result only if you actually ran it. Make the playing surface feel like a crafted physical board rather than a generic dashboard: put the playable artifact first, give the proof its own clear visual motif, use a strong heading, restrained accent, readable evidence and large touch controls. All styles, scripts, data and artwork must be inline: no CDN, remote asset or API. At 390 pixels the page fits without sideways scrolling or splitting words or amounts, with a desktop layout that also makes play and proof easy to find; inspect both widths. Support visible keyboard focus, adequate contrast and reduced motion without hiding any result. Print the SHA-256 of levels.json in the page footer and in your final reply. Work only inside this folder; never install packages, use the network, call APIs, or load external assets. The page must work offline and on a phone, with a meaningful baseline and source proof visible even when JavaScript is disabled. Use no em dashes or en dashes.
The prompt asks the agent to stay in this folder; it cannot enforce that. Read each file change and command before you approve it.
Check it yourself
Open
cli-practice/puzzle.htmlin your web browser (double-click it), then:Human check: Run python3 solver.py levels.json and see ten passing lines and exit 0. Run shasum -a 256 levels.json and match it to the page footer. Beat level 1 in par, then open level 10, press Watch the proof, and watch it win.
When we checked the recording above: Pilot verification 2026-10-13: python3 solver.py levels.json exit 0, ten levels freshly solved, stored paths win, SHA-256 printed in the page matches levels.json. puzzle.html at 390 and 1280: no overflow; a proof receipt reveals the level's move path; Watch the proof replays level 10 to a win at par through the game's move function. JS off keeps all ten levels, paths and the hash.
Do it for real
Use the same loop on anything you make with an agent: ask it for a checker first, then the thing, then make it run the checker and show you the result. Never accept done without the checker's output.
Why an agent, not a chat window
A chat reply can describe a puzzle. An agent can write a solver, run it on dozens of candidate levels, keep only the ones it proved, and replay each proof through the game's own rules on your screen.
Go deeper
Why the prompt is written this way
- Demand a shortest-path breadth-first solver before building the game: otherwise a level can look playable while hiding a dead end or an arbitrary par.
- Re-solve each level and replay the stored moves through the same rules used by the player: this catches a convincing-looking proof path that cannot win.
- Expose ten inspectable proof receipts and a hash, not a victory badge: the source levels and solution paths remain checkable with scripts off.
The recorded runs
| Tool | Model | First run took | Files made | Sessions |
|---|---|---|---|---|
| Claude Code 2.1.296 | claude-opus-5-5 | 14 min 13 s | 19 | one session |
| OMP 18.10.3 | not logged by this tool | 17 min 19 s | 5 | one session |
Claude Code kept ten levels with pars from 14 to 119 and added grouped five-move receipts and a walnut-framed board; OMP kept pars from 10 to 129 and used a wooden tray with receipts that include searched-state counts. Both recordings replayed level ten to a win at par.
Push it further
- Mutate one stored move and one par, then ask the solver and browser to identify exactly which proof fails.
- Make a second solver with a different state representation and compare its shortest lengths on all ten levels.
- Ask a new session to generate one harder level without changing the existing ten, and require fresh shortest-path proof before adding it.