ykononov.com bb + agents / hands-on course Glossary FAQ RU

ykononov.com / Vibe coding from scratch: bb, Claude Code, Codex, and OpenCode / Module 06

Plan your first app with an AI agent: idea, SPEC.md, plan mode

Module 06 of 11 · 25 min · updated 2026-11-28

Pick an idea of the right size, turn it into a spec, and get a plan before the first line of code.

In short

Don’t tell the agent “build me an app.” First ask it to interview you and write the spec to a SPEC.md file, then use plan mode to get the work broken into stages and approve them. That way the result follows your decisions, not the model’s guesses.

An idea of the right size

The most common reason a first project never gets finished isn’t the agent or the tools. It’s the size of the idea. An agent will start on “I want my own marketplace” with the same enthusiasm as “I want a shopping list.” The difference is that you’ll finish the second one today.

A good first idea passes four tests.

Good for a first projectSave for later
A habit trackerA social network for habit enthusiasts
A personal expense tracker with a chartA service that connects to your bank
A quote calculator for your own workA CRM for a sales team
A personal landing pageAn online store with payments
A workout schedule generatorA mobile app for the App Store

From here on, I’ll stick with one running example, the habit tracker. If you’re using your own idea, just substitute it in the prompts.

About “later”The right-hand column isn’t off-limits. Big things get built the same way, only with more loops and stricter checks. But the first loop has to close quickly: a small thing that works teaches you more than a huge thing left half-built.

Creating the project

Let’s set up a clean folder for the app and turn on change history in it right away.

  1. Create an empty folder. Give it a name with no spaces: habits. Put it somewhere you’ll find it again, for example Documents/projects/habits.
  2. In bb, click New thread, open the project list below the prompt box, and choose New project.
    The project list below the bb prompt box, with the New project item
    The project list below the prompt box. The item you want is New project.
  3. In the Add project dialog, find the habits folder and click Add project.
    The Add project dialog in bb: a folder picker and the project name
    The Add project dialog. bb fills in the project name from the folder name.
  4. Check that your project now appears below the prompt box, with Project checkout next to it.
  5. Send your first message:
    This is a new, empty project. Set up a git repository here, add a .gitignore file with the usual entries, and make the first commit. Then tell me, in one sentence each, why I need these three steps.

Here’s what just happened. Git is a program that remembers what a project looked like at different points. Each saved state is called a commit, and you can go back to any of them. Think of commits as save points in a video game: you save before a hard section, and if it goes badly, you reload.

With agents, this is a necessity, not a luxury. Every so often an agent confidently breaks something that was working a minute ago, and “put it back the way it was” only works reliably when “the way it was” has been recorded.

You don’t have to run git yourselfYou won’t type a single git command in this entire course. It’s enough to tell the agent “save” and “roll back,” and to understand what’s behind those words. Module 8 goes into detail.

A spec instead of a wish

This is the most important part of the course. If you remember only one technique from all of it, make it this one.

Beginners write to the agent: “Build a habit tracker.” The agent builds one. Some habit tracker. It has a sign-up screen you didn’t ask for, a monthly calendar where you wanted a single week, and none of the weekly stats that were the whole point. That isn’t the agent’s fault: it filled the gaps with its most likely guesses. The shorter the request, the more of the result is guesswork and the less of it is you.

The cure is a spec: a page of text about what the app does, who it’s for, and what it definitely doesn’t include. You don’t have to write it yourself. Have the agent interview you.

I want to build a small web app: a habit tracker, just for me. Don’t write any code or create any files yet.

First, interview me so you can write a spec. Ask one question at a time, in plain language, no jargon. Give me a few options to pick from whenever you can. Find out who’s going to use it and how, what the main screens and actions are, what needs to be saved, how it should look, and what’s definitely NOT going in the first version.

A few things to keep in mind: I’m not a programmer. The app has to run in a browser on my own computer, with no sign-up and no server out on the internet. You pick the tech, and keep it as simple as you can.

When you’re out of questions, write it all up in a file called SPEC.md and show me what’s in it.

Answer the way you would answer a person: briefly, in your own words. If you don’t know, say so: “I don’t know, what would you suggest?” It usually comes to eight to twelve questions and about ten minutes.

agentHow do you want to track each habit: just check it off as done for the day, or record an amount, like “8 glasses of water”?
youJust check it off. I don’t need amounts.
agentDo you want to see previous days too? Your options: (a) today only, (b) the current week, or (c) a monthly calendar.
youThe week. And my streak, how many days in a row I haven’t missed.

When the file is ready, read all of it. It’s a page or a page and a half of ordinary text. If you disagree with something, say so: “take out the export and add a dark theme.” Pay particular attention to the section on what the first version won’t include: it protects you from a task that keeps growing.

Why a file and not just the conversationThe agent will eventually forget the conversation, and a new thread won’t see it at all. The SPEC.md file sits in the project, and any agent in any thread can read it. It’s the project’s memory, both yours and the agents’.

A plan before the code

The spec answers the question “what.” Before the agent starts writing, it’s worth getting an answer to “how,” and that’s what plan mode is for.

  1. Open a new thread in the same project: the interview is over, and this is a different task.
  2. Click + in the prompt box and choose Plan. In this mode the agent reads and thinks but changes nothing. A plan tag appears in the prompt box.
    The bb prompt box with a plan tag in front of the task text
    A plan tag at the start of the message means the agent will show a plan first. You can also turn the mode on by typing a slash in the prompt box and choosing plan.
  3. Send:
    Read SPEC.md and put together a plan for the first version of the app.
    
    Break the work into small stages, so that after each one there’s something I can open in the browser and check. For each stage, tell me in plain language what I’ll see on the screen and how to check that it works. Keep the technical details to one line.
    
    At the end, list the technologies you picked and why they’re the simplest choice for this job.
  4. The agent shows the plan and asks you to approve or reject it.

What to look for if you’re not a programmer:

Changing a plan is cheap: it takes a couple of sentences back and forth. Changing finished code written to the wrong plan is expensive. So don’t approve a plan you don’t understand. “Explain stage three like I’m ten” is a perfectly normal thing to ask.

ONE ROUND OF WORK Spec what to build Plan how to build it Build the agent codes Check you take a look Commit progress saved the next small task once at the start and whenever the direction changes
Before you move on
  • The project exists, git is set up, and the first commit is made
  • SPEC.md is in the project, and I’ve read all of it
  • The spec has a section on what the first version doesn’t include
  • I got a plan, understood every stage, and approved it

Review questions

Which idea is the better fit for a first project?

A personal expense tracker with a chart that you’ll use yourself. One user, runs on your computer, and you need it yourself. Sign-up, payments, and publishing are all possible, but the first loop should close in an evening.

Why does the request “build a habit tracker” produce a weak result?

The agent fills the gaps with guesses, so the result is more its guesses than your wishes. The agent will build something that works, but it will be “some” tracker. A spec replaces its guesses with your decisions.

Why write the spec to a SPEC.md file instead of leaving it in the conversation?

Any agent in any thread can read a file in the project; a new thread can’t see the conversation. The file is the project’s memory. A conversation fades over time and doesn’t carry over between threads; the file stays.

The plan for the first version includes sign-up and a database you never asked for. What do you do?

Ask it to remove everything from the plan that isn’t in the spec. A plan can be fixed in a couple of sentences, and this is the cheapest moment to fix things. Extra parts mean more work and more places for something to break.

This page covers a single module. The interactive version of the course has steps, quizzes, and checklists that save your progress.

Open this module in the course →
← 05. A tour of bb 07. Building the first version →

By Yury Kononov, Chief Technology Officer. The course is free and licensed under CC BY 4.0. Updated 2026-11-28. Contact the author: @ykononov.