Loading video player…

Staying in Charge of an AI Agent (Overview)

Welcome to Staying in Charge of an AI Agent: Steering, Debugging and Security, course four of the Coding With AI Agents path.

Your agent has written most of your project. Or you can download one. This course is about staying in charge of code you didn’t type.

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. After a weekend of play-tests, it still says this room can be finished. Here’s how it looks in the course’s reference version:

Language: Shell
$ npm start --silent -- rooms/the-clockmakers-workshop.json
The Clockmaker's Workshop: can be finished.
...

But every group got stuck at the same lock.

What You’ll Learn

By the end of this course, you’ll be able to:

  • Steer an agent that goes off track
  • Debug with it from evidence
  • Keep its work secure
  • Explain and defend the project as a whole
  • Decide when to write code yourself

The final project is that weekend of play-tests. You track down the lock bug, handle a guest designer’s room file, and add a new hint timer. Then you defend it all to Code Mentor, playing a reviewer.

Before You Start

You need:

The agent-specific steps in this course were checked on 2 December 2026 with Claude Code 2.1 and Codex CLI 0.173. The tools change often, so a menu or command may look different for you.

Each lesson recaps the earlier habits it uses.

Your Starting Code

Continue your own escape-room builder if you already have one, or start from the reference version, a course download linked below. If you’re starting here, welcome. Read the download’s brief, docs/brief.md, first. Then read its project map, docs/map.md, which lists the project’s parts.

A second download, the play-test weekend pack, holds the files you’ll copy into your project. Unzip it outside your project folder, and copy in only the file a lesson names, when it names it. If your own project doesn’t show a bug a lesson needs, that lesson has you switch to the reference version.

How the Course Works

Your agent’s output will differ from the lessons’. Code Mentor, the AI tutor below each lesson, can check yours.

Start with Watch the First Steps of a Run.

Download

Course Slides (.pdf)

293.0 KB
Download

Sample Code (.zip)

41.8 KB

00:00 Welcome to Staying in Charge of an AI Agent, course four of the Coding With AI Agents path. Your agent has written most of your project. Or you can download one.

00:11 This course is about staying in charge of code you didn’t type.

00:17 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. After a weekend of play-tests, it still says this room can be finished.

00:29 But every group got stuck at the same lock.

00:33 You’ll learn to steer an agent that goes off track, debug with it from evidence, and keep its work secure. You’ll explain and defend the project as a whole, and decide when to write code yourself.

00:46 The final project is that weekend. You track down the lock bug, handle a guest designer’s room file, and add a hint timer. Then you defend it all to Code Mentor, playing a reviewer.

00:59 You need JavaScript basics, Node 26, Git, and Claude Code or Codex on a paid plan or API key. Each lesson recaps the earlier habits it uses.

01:13 Continue your own project, or download the reference version below this video. Starting here? Welcome. Read the download’s brief, then its map of the parts.

01:25 Keep the second download, the play-test weekend pack, outside your project folder until a lesson has you copy a file in. Some lessons switch you to the reference version if your project doesn’t show a bug.

01:38 Your agent’s output will differ from the lessons’. Code Mentor, the AI tutor below each lesson, can check yours. Start with Watch the First Steps of a Run.

Become a Member to join the conversation.