In this video, you followed one wrong choice through a toy version of the escape room project, made for the video, and then asked the same question about a small change.
Key points:
- The toy plan had one line about how the code holds a room: “its name and a list of puzzle names, in order.” The loader kept only the names, and dropped each puzzle’s needs and unlocks.
- Your agent built each later step from the plan, so the checker, both tests, and the command that prints the verdict were all built on that list. One test expected the first puzzle to be a plain name, the brass telescope. The tests passed, and the checker said The Smuggler’s Cellar can be finished, though its iron strongbox needs a key no puzzle unlocks.
- Fixing the shape in code changed five files. The loader and both tests changed, the checker was rewritten to name the puzzles it can’t reach, and the command that prints that answer changed with it. Your agent can make those edits in one task, but you still review and re-test all five.
- The brief asks for every puzzle a team can’t reach, so checking the plan against the brief would have caught the line. In the plan, the same fix is one line: “its name and its puzzles, each with its needs and unlocks.” The project is a toy. In a real one, every file that uses the shape directly adds to that count.
- A usage line for when no room file is given is different. Nothing later builds on it, it touches one place, and the approach is clear, so it can go straight to your agent as a task. Ask for the change directly, with no plan step, then run it to check. In the toy, it changed one file. Read Git’s summary after your agent’s change, and if it touched more, take a look.
The rule is to plan first when later code will build on a choice, such as the stack, the shape of the data, or the folder structure. A change that touches one place, with an approach you can see, can go straight to a task.
Here’s the toy’s code after the fix, where each puzzle keeps its needs and unlocks. It’s a toy made for the video, so it’s small: the broken room, the loader, the checker, and the command that prints the verdict.