Keep Your Project Map True

In the last video, you followed The Harbourmaster’s Office from its room file to its verdict, part by part. At the end, one line in the reference version’s map was a little off. It says missingNeeds() runs only when a room can’t be finished, but check-room.js calls it for every room. Nobody noticed, because the output came out the same.

A project map goes stale when the code changes and the map doesn’t. In this lesson, you’ll ask your agent to explain how a room gets its verdict, check a few of its claims before you trust them, and write what changed during this course into your docs/map.md. Start by getting an explanation you can check.

Ask Your Agent How a Room Gets Its Verdict

Your map should describe the code as it is now. Your agent can read the code that matters and give you an account to check. Ask it to name a file and a function for each step, so every claim points at something you can look up.

First, run git status and commit anything left over, so any change the session makes stands out. Then start a fresh session, so earlier conversations don’t shape the answer.

Your agent still reads your instruction file, which may point it at docs/map.md, the very file you’re checking. Open the setup instructions for your agent, checked in December 2026 with Claude Code 2.1 and Codex CLI 0.173:

Start the session with claude --permission-mode manual. The rules you saved in .claude/settings.json in Break the Attack Chain still apply, so Claude Code can read the code but not your .env. It asks before each edit and before commands your settings don’t already allow. Approve a command that only reads or runs the checker, such as node check-room.js rooms/the-harbourmasters-office.json, and decline any edit.

Start the session as in Break the Attack Chain, with codex --sandbox read-only --ask-for-approval on-request -c web_search=disabled --disable apps. The read-only sandbox lets Codex read files and run commands that don’t write, such as node check-room.js rooms/the-harbourmasters-office.json, and turns each edit into a request. Decline any edit.

Here’s an example of what you might send. Change the names if your list-rooms command lives somewhere else:

Language: Text
Explain how a room file becomes the lines that
node check-room.js rooms/the-harbourmasters-office.json
prints, and how my list-rooms command gets each
room's verdict. For each step, name
the file and the function. For each claim, say whether
it comes from the code or from a document such as
docs/map.md. Don't change any files.

Asking where each claim comes from shows you which ones may rely on a stale document. The labels are claims too, so the checks in the next section settle them.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.