Get your API key

Lesson 4 of 6

Plan first, then build in small steps

Use plan mode and one testable step at a time so nothing breaks silently.

7 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will make the AI plan before it codes, then build your app one small, testable step at a time.

You need: a coding agent and a project with a SPEC.md (from the last lesson) · Time: 7 minutes

  1. If you say "build the whole app", the agent writes hundreds of lines at once. When something is wrong, you can't tell which part broke, and fixing one thing often breaks another.

    Builders draw a map before laying bricks. Do the same: plan → build one small step → test → save → repeat.

    The build loop as four boxes joined by arrows in a circle: 1 Plan, no code yet; 2 Build, one small step only; 3 Test, see evidence and click it; 4 Save, a save point or commit. Then back to the next step.
    Plan, build one step, test, save. Then the next step.
    Why?

    A wrong plan costs one message to fix. Wrong code spread across ten files costs an evening. Plans are cheap; code is expensive.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Switch on plan mode (or ask for a plan)
  2. Read the plan like a manager
  3. Build the simplest next step you can test
  4. Ask for evidence, not "done"
  5. Repeat the loop
  6. Recap