See What a One-Line Idea Leaves Open

The escape room business from the overview has two rooms running and a third on the drawing board, The Lighthouse Keeper’s Study. Right now, a designer checks a new room by hand, and the owner wants a tool to help. Most projects start the same way, with one sentence and an agent waiting for a task.

In this lesson, you’ll give your agent a one-line request about the new room and look at what comes back. You’ll see which decisions a short request leaves open, and you’ll be able to predict what an agent does with each one. Start with a folder you can throw away afterward, so this experiment never touches the real project.

Set Up a Throwaway Folder

A small, shared experiment teaches more than a whole app, which would cost a lot of tokens and differ for every learner. So everyone gives their agent the same room file and the same sentence.

The room file comes from the course’s sample code download. Unzip it, and you’ll find a rooms folder with two sample rooms. This lesson needs one of them, lighthouse-keepers-study.json, a JSON file that describes the new room as a chain of puzzles. Here are its first two puzzles:

Language: JSON Filename: lighthouse-keepers-study.json
{
  "name": "The Lighthouse Keeper's Study",
  "puzzles": [
    {
      "id": "telescope",
      "name": "the brass telescope",
      "needs": [],
      "unlocks": ["tide times"],
      "estimateMinutes": 6
    },
    {
      "id": "tide-cipher",
      "name": "the tide-table cipher",
      "needs": ["tide times"],
      "unlocks": ["chest code"],
      "estimateMinutes": 10
    },

Each puzzle says what it needs, such as a code found earlier, and what solving it unlocks. Four more puzzles follow, and the last one, the lamp room door, ends the game.

The estimateMinutes value is the designer’s guess at how long a team spends on a puzzle. It’s the only measure of effort in the file, and a person wrote it. You’ll come back to it at the end of the lesson.

Now create the folder next to your other projects and initialize it as a Git repository, so you can see afterward which files the agent wrote. The examples assume a code folder in your home folder:

Language: Windows PowerShell
PS> mkdir ~\code\difficulty-test
PS> cd ~\code\difficulty-test
PS> git init
Language: Shell
$ mkdir ~/code/difficulty-test
$ cd ~/code/difficulty-test
$ git init

Copy lighthouse-keepers-study.json from the download’s rooms folder into difficulty-test with your file manager or your editor.

Then give the agent your warm-up folder’s setup. The warm-up folder is the practice project where you first set up your agent and chose its permission settings. If you’re starting here and don’t have one, that’s fine: your agent’s version below has a “Without a warm-up folder” step with the settings to create instead.

With this setup, the agent asks before the usual rm commands, refuses the usual git push, and runs commands in a sandbox that keeps writes inside the folder. Each agent also asks before a few other commands. Those extra prompts don’t change what the agent decides.

Open the version for your agent, checked in December 2026 with Claude Code 2.1 and Codex CLI 0.172:

Claude Code’s sandbox needs macOS, Linux, or WSL2, so on Windows, make the folder above in your WSL2 terminal with the Linux commands. On Linux and WSL2, the sandbox also needs bubblewrap and socat, which sudo apt-get install bubblewrap socat installs on Ubuntu or Debian.

From inside difficulty-test, copy only the warm-up folder’s settings.json. Leave settings.local.json behind, since it may hold allow rules you approved there:

Language: Shell
$ mkdir .claude
$ cp ~/code/warm-up/.claude/settings.json .claude/

Without a warm-up folder, create .claude/settings.json with this instead:

Language: JSON
{
  "permissions": {
    "defaultMode": "default",
    "ask": ["Bash(rm *)"],
    "deny": ["Bash(git push *)"]
  },
  "sandbox": {
    "enabled": true,
    "allowUnsandboxedCommands": false,
    "autoAllowBashIfSandboxed": false
  }
}

With these settings, Claude Code also asks before most other commands, such as node.

Start claude in the folder, with no flags. Check that the status bar shows ⏸ manual mode on and that /sandbox shows the sandbox is on. Then type /context all. Any CLAUDE.md listed under Memory files, such as your personal one, still loads in this folder.

Codex needs the Git repository too, since it recommends a read-only sandbox for a folder outside one. From inside difficulty-test, copy the warm-up folder’s .codex folder, which holds config.toml and your rules file:

Language: Windows PowerShell
PS> Copy-Item -Recurse ~\code\warm-up\.codex .
Language: Shell
$ cp -r ~/code/warm-up/.codex .

Without a warm-up folder, create .codex/config.toml with this instead:

Language: TOML
sandbox_mode = "workspace-write"
approval_policy = "on-request"

[sandbox_workspace_write]
network_access = false

Then create .codex/rules/difficulty-test.rules:

Language: Python
prefix_rule(pattern = ["node"], decision = "prompt")
prefix_rule(pattern = ["rm"], decision = "prompt")
prefix_rule(pattern = ["git", "push"], decision = "forbidden")

The first rule makes Codex ask before node. These rules match only the start of a command, so python3 score.py or git -C . push gets past them. The sandbox still applies to every command, so writes stay in the folder and nothing reaches the network.

Start codex from inside the folder, with no flags, and trust the folder when it asks, since Codex loads .codex only for a trusted folder. Type /status to check for workspace-write and on-request. Then ask it to run node --version. If it asks you first, then your rules are loaded.

Finally, ask Which instruction files did you load for this session? Any AGENTS.md it names, such as your personal one, still loads here.

The room file is the folder’s only project file. If a personal instruction file loaded and names a language or a habit, then that decision was made before you typed anything.

Ask for a Difficulty Score

The owner’s first question about any new room is how hard it will be. Playtests answer that eventually, but they take weeks, so a number from the room file sounds useful. Here’s the request most people would try first. Type it into your agent, but don’t press Enter yet:

Language: Text
Write a function that gives this room a difficulty score.

Before you send it, note three decisions the agent has to make to write that function and whether you expect it to ask you about each one. Then send the request and answer its approval requests as usual.

When it’s done, run git status --untracked-files=all to list every new file, and open each one the agent created, since the agent’s summary can leave some out. Then compare your results with the sessions recorded for this lesson:

No Claude Code session was recorded for this request. If you use Claude Code, expect it to fill the same gaps with choices of its own.

Codex got this exact sentence twice, in December 2026, each time in a fresh copy of the folder with no instruction file. Both runs were non-interactive, so there was no one to answer a question, and there were no approval prompts. They show what an agent decides on its own. They can’t show whether yours would have asked first. Both wrote a working function, ran it, and reported a confident number.

The first session reported a score of 57.2/100. Its function documented the formula like this:

Language: Python
"""Return a heuristic difficulty score from 0 (empty) to 100 (hard).

Score = 70% critical-path time (60 minutes reaches the cap) +
30% dependency depth (8 sequential puzzles reaches the cap).
"""

The second session reported 5.5/10, “with two parallel solvers and a 60-minute limit,” and wrote seven tests for its function.

Both sessions wrote Python. Nothing in the request or the folder said which language to use, so the agent picked one. The agent chose the scale, the weights, the 60-minute cap, and the team of two the same way.

Your session will differ from these and from everyone else’s. In every session, though, the agent turns each open question into a choice and keeps going. Look for these choices in the files your agent wrote:

  • The language and the files: JavaScript or another language, the filenames, and whether it added tests or a script that prints the score.
  • The scale: 0 to 10, 0 to 100, or labels such as “Beginner” and “Expert”.
  • The formula: Which numbers from the file count, such as the minutes, the number of puzzles, or the longest chain, and the weights and caps that combine them.
  • The players: How many people are on a team, how long they get, and whether they can work on two puzzles at once.

Your agent may also have asked you a question or two before it started. That’s normal too. Check whether its questions covered every choice in the list, or only some of them.

When you’ve read your agent’s result, you can ask the mentor to go through it with you. Paste the agent’s final message and the function it wrote:

Sort the Decisions

The agent was capable enough to read the file, write the function, and test it. So why didn’t it ask about every choice in the list, even if it asked about some?

The agent works from its context: your sentence, the room file, and any loaded instruction files. Its model generates a plausible next step from that even when the request has a gap. “A difficulty score” can mean a dozen things, so the agent settles on one reading and builds it, because a working function is what you asked for.

Nothing in its context tells it which gaps matter to the escape room business. That knowledge is in your head, so you find out what it decided by reading the result.

The biggest choice is also the hardest to spot. Both recorded sessions treated difficulty as something code can calculate. But how hard a puzzle’s leap of logic feels to a team is a human judgment. A formula with weights the owner never chose looks more precise than the guesses it’s built on.

So the owner has decided. The code checks the room’s structure, such as whether it can be finished. Difficulty stays the designer’s estimate for each puzzle, the estimateMinutes value, which playtests check later. In the next lesson, that decision goes into the project’s brief.

Now turn what you found into a list. For each decision your agent made, write one line with what it chose and where that decision belongs:

  1. A requirement to state: Something you know the answer to, such as “JavaScript, running on Node.js.”
  2. Out of scope: Something the tool shouldn’t do, such as inventing a difficulty score.
  3. A question for the owner: Something only the business can answer, such as how long a team gets in the room.

For this project, the invented score always goes out of scope. The other decisions have no single right place. The team size, for example, could be a question for the owner or out of scope. Either works, as long as someone chose where it goes. Keep the list for the next lesson, and delete difficulty-test whenever you like.

If you’re unsure where one of your decisions belongs, paste your list and ask:

Check Your Understanding

Answer these before you open the answers:

  1. You start an agent in an empty folder and type Build a booking page for the escape rooms. Name three decisions the agent has to make before it writes the first file. Who makes them, and when do you find out what was decided?
  2. An agent’s summary says: “Added a Python function that scores rooms from 0 to 100, assuming teams of four.” Sort its three decisions into a requirement to state, out of scope, or a question for the owner.
  3. Why can’t you count on the agent to ask about the decisions that matter to you?
  1. Any three of these: the language and framework, where bookings are stored, whether customers need accounts, how payment works, and what a booking holds. The agent makes them, in its first few steps, and you find out by reading or running what it built.
  2. The language is a requirement to state: JavaScript, running on Node.js. The 0-to-100 score is out of scope, because the code checks the room’s structure and difficulty stays the designer’s estimate per puzzle. The team size is a question for the owner, though you might file it elsewhere, as long as you chose where.
  3. The agent works only from its context, which holds your request and the files it reads. Nothing in it says which gaps matter to you, so it fills each one with a plausible default and keeps going. It may ask a question or two, but nothing guarantees they’re the ones you care about.

You now have a list of decisions your agent made and a question: Where should those decisions have been made before any code was written? In the next lesson, Write the Project Brief, you’ll answer it by writing them down in the real escape room project.

Become a Member to join the conversation.