Welcome to The AI Agent Working Loop: Small Tasks, Tests and Reviews. It’s course three of the Coding With AI Agents path.
Ask your agent for a whole feature, and you often get one large change that’s hard to check. This course works in small, checkable steps instead.
You’ll keep working on the escape-room builder, a Node tool that tells an escape-room business whether a team can finish a room. Its next feature, the unreachable-puzzle report, names each puzzle no team can reach, and what it’s missing. Here’s how it looks in the course’s reference version, though yours will differ:
$ npm start --silent -- rooms/the-smugglers-cellar.json
The Smuggler's Cellar: cannot be finished.
the iron strongbox: needs the iron key, which nothing reachable unlocks
the trapdoor: needs the trapdoor code, which nothing reachable unlocks
You’ll slice each feature into small tasks, and each task goes through the same loop:
- Write the task and its tests before any code.
- Let your agent run the checks you give it.
- Review the change.
- Commit it.
What You’ll Learn
By the end of this course, you’ll be able to:
- Split work into small tasks you can check
- Give your agent checks to run
- Write the tests first
- Review every change before you keep it
In the final project, you add three features to the escape-room builder: dead-end detection, the longest chain of puzzles, and a play-test log. Then you explain how the project works.
Before You Start
You need:
- JavaScript basics
- Node 26
- Git, as in Track Your Project With Git
- One terminal agent, Claude Code or Codex, on a paid plan or API key
The agents were checked on 2 December 2026 with Claude Code 2.1 and Codex CLI 0.173.
Continue your own version of the escape-room builder if you have one, or start from the reference version, a course download linked below. If you’re starting here, welcome. First, read the download’s brief and project map, docs/brief.md and docs/map.md.
How the Course Works
You’ll work on your own machine, and your agent’s output will differ from the lessons’. Code Mentor, the AI tutor below each lesson, can check yours. Lessons mix videos, text and exercises in your browser, with tests.
Start with Split Work Into Small Tasks, where you split the unreachable-puzzle report into tasks.