IA Dev Learn

Plan first, then verify

Correcting a plan costs one sentence. Correcting finished code costs a review.

Plan mode

In plan mode the agent explores the project and writes a numbered plan, but changes nothing. You read it, correct it ("use a comma, not a dot"), then approve. Only then does it edit files.

ToolHow to plan first
Claude CodeShift+Tab cycles to plan mode, or start with claude --permission-mode plan
AntigravityChoose the Planning mode for the conversation
Codex, Gemini CLIAsk for it: "Propose a plan first and wait for my OK"

In the simulator, /plan toggles plan mode and yes (or oui) approves.

Plan anything bigger than a one-line fix, anything that touches several files, and anything you're not sure how you'd do yourself.

Close the loop

An agent that runs the tests catches most of its own mistakes before you see them. Ask for it in the prompt ("add a test and run it"), or once and for all in your rules: Test: pnpm test (run it after every change).

Review before you keep

Read the diff. git diff in the terminal, or the Changes view in the editor, shows exactly what changed. Commit before a big request, so that throwing a bad result away is one command.