Loading video player…

The AI Agent Working Loop: Small Tasks, Tests and Reviews (Overview)

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:

Language: Shell
$ 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:

  1. Write the task and its tests before any code.
  2. Let your agent run the checks you give it.
  3. Review the change.
  4. 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:

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.

Download

Course Slides (.pdf)

359.1 KB
Download

Sample Code (.zip)

2.3 KB

00:00 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.

00:15 This course works in small, checkable steps. Here’s a first taste of the escape-room builder, a Node tool that tells an escape-room business whether a team can finish a room.

00:27 Its next feature names each puzzle no team can reach, and what it’s missing.

00:34 You’ll slice each feature into small tasks. Each task goes through one loop. You write the task and agree its tests before any code. Your agent runs the checks you give it.

00:46 You review the change and commit it.

00:50 You’ll run that loop yourself: small tasks, checks for your agent, tests first, and a review of every change. In the final project, you add three features: dead-end detection, the longest chain of puzzles, and a play-test log.

01:07 Then you explain how the project works.

01:11 You need JavaScript basics, Node 26, Git, and Claude Code or Codex on a paid plan or API key. Continue your own version from the previous course, or start from the reference version, a course download below this video.

01:27 If you’re starting here, welcome. Read the download’s brief and project map first.

01:35 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 browser exercises.

01:49 Start with Split Work Into Small Tasks, where you split the unreachable-puzzle report.

Become a Member to join the conversation.