VibecodingScoping the buildLevel 2: Context

How Do You Make AI Plan Before It Writes Code?

Switch your tool into its planning mode, describe the change, and read the plan before approving it. Plan modes can read your project but can't change it, so a bad idea costs a message rather than a broken app. Use one for anything touching the database, sign-in, payments or several pages.

Prompt to copy
Plan this change. Don't edit anything yet.

Change: [describe it].
Must keep working: [list what matters].

Give me:
1. A plain-language summary a non-developer can follow.
2. Every file you'd change or create, with one line on why.
3. Any database change, marked clearly. Say whether existing data could be lost.
4. Any new package, environment variable or outside service.
5. What this means for who can see or change what.
6. How it could go wrong, and how I'd undo it.
7. Small steps, each one testable by me, in order.
8. Questions you need answered first. Ask them now rather than guessing.

Wait for my approval before you build anything.
  1. 1Switch to plan modeIt reads your project but can't change it
  2. 2Describe the changeInclude what it can't see, like budgets
  3. 3Read the planStart with database changes and access rules
  4. 4Redirect itA fix here costs one message
  5. 5Approve one stepTest it before approving the next
Rule of thumb, drawn from Claude Code, Cursor and Lovable docs. Planning can still cost credits, depending on your tool.

Try it now

  1. 1Switch to planning mode in your tool, using the shortcuts above, and paste the prompt with a real change you've been putting off.
  2. 2Read section 3 first. Then ask: "What's the simplest version of this that would still work?"
  3. 3Approve only the first step, then test it. It worked if the code changed only where the plan said it would. To check, ask the tool to list the files it changed and compare them with section 2.

Use it when

For a change you can't describe in one sentence, anything hard to undo, and any bug you can't pin down. Lovable's debugging docs recommend switching to Plan mode after one or two failed fix attempts.

Skip it when

Skip it for small visual changes, such as a color or a label, where trying it is quicker than planning and easy to undo. Also don't keep planning once you're just rewording the same steps. Build a small part, because running code will teach you more.

Why it works

Most major tools now have this, each slightly different:

  • **Claude Code:** press Shift+Tab until the status bar shows plan mode on, or start one prompt with /plan. Edits stay blocked until you approve, and Ctrl+G opens the plan in your editor.
  • **Cursor:** press Shift+Tab in the chat input to reach Plan Mode. It asks clarifying questions and writes a plan you can edit. Plans go to your home directory unless you click Save to workspace.
  • Lovable: Plan mode never changes code, and each message costs 1 credit plus any research. Select Approve to build it.
  • Replit: Plan Mode needs Core or above, and Replit says it can incur billable reasoning even without code changes. Free Mode is the exception, within its allowance.
  • v0: ask directly, for example "Create a PRD for a restaurant reservation system".

Reading a plan is much easier than reading code, which is why this suits non-developers. Plain-language steps show the mistake before it exists.

Example

You want teams in an app that currently has one owner per project. Without a plan, the AI starts editing screens right away. With this prompt, section 3 says it will add teams and team_members tables and replace the projects table's owner column. Section 5 reveals that its current access rules would stop working.

That's the moment to step in. You ask it to keep the owner column until everything else works, and to write new access policies first. You also ask for the migration to be separate from the screen changes. Nothing has been changed yet, so this redirect costs one message.

Going further

Plan with a stronger model and build with a cheaper one, if your tool lets you. In Claude Code, /model switches mid-session, and Anthropic reserves Opus for complex decisions and suggests Sonnet for most coding. It also says to tell Claude what it can't see, such as a deploy process or a budget, since a plan can only account for what's in front of it.

Save the plans that matter. Cursor's Save to workspace puts a plan in your project, where the next session can read it. A saved plan also gives you something to check the final work against: ask a fresh session, "Here's the plan and here's what changed. What's missing?"

Be careful with approval settings. In Claude Code, the approval step offers "Yes, and use auto mode" and "Yes, manually approve edits". Choose manual for anything touching production.

Common mistakes

  • Approving without reading the database section. That's the part that's hard to undo: Lovable's revert restores code but leaves data changes in place.
  • Assuming planning is free. Lovable charges 1 credit a message plus research, and Replit can bill for reasoning on the paid modes.
  • Accepting a plan that lists no way to test or undo the work. Ask for both.
  • Approving the whole plan at once, then facing one giant change. Approve one step at a time.

Sources

Checked 6 November 2026. Products change often, so confirm details with the vendor.

Related

Beyond the course