Learn / Inside an AI agent

How an AI agent
checks its work.

Play the shell game, follow its recorded AI-assisted build, and try the checks that caught lost progress.

Recorded build. Playable result.
A small corner of the ocean

Turn over the shells to find matching pairs.

The game on the table

Shell pairs

Preview

0 of 4 pairs

0 moves

Use Tab or the arrow keys to move between shells. Enter or Space turns one over.

The shells are here. The game starts when the page finishes loading.

The build, replayed

Recorded steps. No live AI.

  1. 1 Model requests
  2. 2 Tool acts
  3. 3 Result returns to the model
Start with a request

“Make a shell-matching game.”

You give the AI helper a goal. It asks tools to write code or run checks, and the surrounding program (the harness) runs those tools and sends back what happened.

A condensed account of this game’s development, with checks you can run.

The useful bit

How tool results guide the next edit

The helper needs to see what happened before deciding its next step. A failed check can lead to another edit. A limit on turns stops it from trying forever.

Download the shell game

Save one HTML file to play offline and edit.

The finished game, not an AI agent. No account or API key.

What is real here?

You can play the game and run its checks here. The build story retells an earlier AI coding session.

The saved-score change began as a second task. Review then caught a real bug: the upgrade reset an active round. A browser reproduction came back to me, and I added a failing regression test and corrected the code. The replay summarizes that exchange; it does not show private model reasoning.

The harness is the software around a model: it supplies tools, runs allowed requests and sends results back. These teaching panels describe that relationship.

Jonathan Simone, Simone Systems Research. First edition, October 2026. How this was built. Original artwork and game. Technical background: Building effective agents and the action and observation cycle.