The first time I asked an AI coding agent to add dark mode, it did exactly that. It just added it to the wrong app.
The project was a monorepo: the customer-facing app, the admin panel, the shared backend, and the infrastructure all lived in the same repository. I wanted dark mode in the admin panel, but I deliberately left that detail out to see what the agent would do. My entire prompt was:
Add dark mode.
In Build mode, the agent started coding without asking any questions. When I reviewed the result, dark mode was in the customer-facing app. I had to roll back the changes and start over.
In Plan mode, I gave the agent the exact same prompt. This time, it asked which app I meant, how users should select dark mode, and whether dark should be the only theme. I made those decisions before implementation started, and the feature ended up in the right app.
The lesson wasn’t that Plan mode can rescue a vague prompt. I could have avoided the biggest mistake by typing “Add dark mode to the admin panel.” What made planning useful was that it surfaced decisions I hadn’t written down, including some I might not have thought to specify.
Why a Plan Is Cheaper to Change Than Code
When an agent starts implementing right away, its assumptions can be hard to spot until they’re scattered across a diff. In a plan, the same assumption might be a single sentence: “Add a theme toggle to the customer-facing app.” Correcting that sentence takes a moment. Undoing the implementation takes longer.

Planning does cost an extra round of conversation. For a typo in README.md, that round might take longer than reviewing the edit itself. But when a request could reasonably be interpreted in several ways, or when the change touches multiple parts of a project, a short review can save you a much longer cycle of generating, testing, and rewriting code. That can mean fewer tokens spent overall, too - not because planning is free, but because rework isn’t either.
I also use Plan mode to brainstorm when I have a rough idea but haven’t worked out the details. Instead of trying to write the perfect prompt, I tell the agent what I know and ask it to help me think through what I haven’t decided yet. For example: “I’d like to add dark mode to the admin panel, but I’m not sure how it should work. Ask me questions and walk me through the options before proposing a plan.” The Claude Code best practices guide suggests a similar approach, and Microsoft’s Research, Plan, Implement (RPI) workflow formalizes the same pattern. Ask the agent to gather context and interview you, then turn your answers into a short spec (structured with clear Markdown semantics so your intent stays unambiguous) before implementation begins.
When I already have an approach in mind, I use Plan mode to see what I might have missed. Instead of asking the agent to implement it immediately, I ask what it would change and why. It might point out an existing helper I missed or suggest a simpler way to fit the change into the codebase. If it proposes something I don’t understand, I can ask it to explain the trade-off before I approve it. A convincing plan doesn’t prove the solution works - that’s what verification is for - but it helps me understand what I’m agreeing to.
How I Review an AI Agent’s Plan (4 Key Questions)
I’m not looking for a design document. I want enough detail to answer four questions:
1. Is it changing the right thing? Check which apps and files the agent plans to touch. If you asked for a button color change and the plan proposes a global CSS refactor, push back. If it proposes a new utility, ask whether the project already has one that does the job.
2. Does it fit the codebase? Look for existing components, libraries, and patterns the agent can reuse. If the project fetches data on the server, find out why the plan introduces client-side fetching. If it adds a dependency, make sure the benefit is worth maintaining another package.
3. What happens off the happy path? For a UI change, that might mean loading, empty, and error states. For a new endpoint, it means checking permissions on the server. For a migration or deletion, ask what happens if the operation fails halfway through.
4. How will we know it works? Look for checks tied to the behavior you asked for. For dark mode, I’d want the agent to verify that switching themes actually changes the admin panel and leaves the customer-facing app unaffected. The plan should say what the agent will check and what counts as success. After implementation, the agent should report what passed and what it couldn’t verify. “Run the tests” is useful only if you know what those tests cover.
If the plan misses something or doesn’t match what you intended, you don’t have to rewrite it yourself. Tell the agent what to change and ask it to revise the plan:
Dark mode is for the admin panel only. Keep the customer-facing app unchanged. Reuse the existing theme utilities.
Then review the revised plan to make sure it addresses your feedback before switching to Build mode.
When I Skip Plan Mode and Go Straight to Build
If the change is small, unambiguous, and easy to review, I usually go straight to Build mode. For example, if the customer-facing app’s docs incorrectly mention dark mode, I ask the agent to remove those references without touching the app code, then review the diff.
But if there’s an important decision I don’t want the agent to make for me - like which app to change, what users should see, or whether to add a dependency - I start in Plan mode. That way, I can make the call before the agent starts coding.
Is your team figuring out where AI coding agents fit into your development workflow? Talk to our engineering team about AI workflow integration - we’d be happy to help.