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