Imagine asking a contractor to renovate your kitchen and they immediately start tearing out cabinets — no blueprint, no discussion, no plan. That’s terrifying. Now imagine they walk you through exactly what they’re going to do first, step by step, and you get to say “yes, that’s right” or “wait, actually don’t touch the island.” That second contractor is what Claude Code’s Plan Mode gives you.
This is part of our complete How Claude Code Works — A Beginner’s Deep Dive.
TL;DR
- Plan Mode** makes Claude Code show you a full plan before writing any code
- You review the plan, give feedback, and only then does Claude Code execute
- It’s the safest way to tackle large or complex tasks
- Plan Mode is separate from the normal conversational mode — you switch into it deliberately
- You can edit the plan before Claude Code acts on it
What Is Plan Mode?
Plan Mode is a setting in Claude Code where it shifts from “act immediately” to “think first, then ask.” Instead of writing code right after you give it a task, Claude Code reads your codebase, figures out what needs to happen, and writes out a detailed plan in plain English. You review that plan. If something looks wrong, you say so. If it looks right, you approve it and Claude Code executes.
Think of it like a surgeon who explains the entire procedure before making the first cut. You still get the surgery — but you understand exactly what’s happening and you have a chance to raise concerns before it’s too late to change course easily.
Plan Mode is especially valuable for big tasks: adding a new feature, doing a refactor across many files, migrating from one library to another. For small one-line fixes, it might be overkill. But for anything that touches more than two or three files, Plan Mode is worth it.
Step 1: Activate Plan Mode
You can activate Plan Mode in two ways.
Option A: Using the keyboard shortcut
While in a Claude Code session, press Shift+Tab to cycle through modes. Keep pressing until you see “Plan” mode activated.
# Plan Mode keyboard shortcut
Shift+Tab # Cycles through: Normal → Plan → Auto → Normal
Option B: Using a slash command
Type /plan at the start of your session or before your prompt:
# Activating Plan Mode with a slash command
/plan
You’ll see a confirmation that Plan Mode is active. Now anything you ask Claude Code to do will be planned first, not executed immediately.
💡 Pro Tip: You can also start a session directly in Plan Mode. This is useful when you know upfront the task is complex and you don’t want to accidentally trigger any immediate changes.
Step 2: Give Claude Code Your Task
With Plan Mode active, write your prompt exactly as you normally would. Don’t change anything about how you describe the task — Claude Code will handle the rest differently under the hood.
# Example prompt in Plan Mode — same as normal, but Plan Mode changes what happens next
Add a user notification system to the app. When a new order is placed, the user should
receive an in-app notification and an email. Use the existing EmailService in src/services/email.js.
After you send this, Claude Code reads your codebase. It figures out what files are involved, what changes need to be made, and in what order. Then it writes the plan.
Step 3: Read the Plan Claude Code Produces
Claude Code will produce something like this:
# Example Plan Mode output — Claude Code's plan before any code is written
## Plan: Add User Notification System
### Files I'll create:
1. src/services/NotificationService.js — handles creating and storing notifications
2. src/components/NotificationBell.tsx — UI component showing notification count
3. src/hooks/useNotifications.js — React hook for fetching user notifications
### Files I'll modify:
4. src/api/orders.js — add notification trigger after successful order creation
5. src/services/email.js — add sendOrderConfirmation() method
6. src/components/Header.tsx — add NotificationBell component to the header
7. src/db/schema.sql — add notifications table
### Order of execution:
1. Create database schema (step 7)
2. Build NotificationService (step 1)
3. Extend EmailService (step 5)
4. Hook notification trigger into order creation (step 4)
5. Build frontend components (steps 2, 3)
6. Wire into Header (step 6)
### Assumptions:
- Using existing PostgreSQL database (from src/db/config.js)
- Email notifications use the existing EmailService template system
- Not adding push notifications in this pass — in-app only + email
This is a lot of information. And that’s the point. You can now see exactly what Claude Code is planning to do before a single line of code is written.
Step 4: Review and Give Feedback
Now you actually read the plan. Check these things:
Are the right files being touched? If Claude Code plans to modify a file that’s currently being worked on by someone else, or that’s off-limits for some reason, now is the time to say so.
Are the assumptions correct? In the example above, Claude Code assumed “in-app only + email, no push notifications.” If you wanted push notifications too, you’d catch that here.
Is the order of operations sensible? Database schema before application code — yes, that’s right. If the order seems wrong, tell Claude Code.
Are there files missing from the plan? Maybe you know that changing the orders API will also require updating src/middleware/auth.js. Tell Claude Code.
To give feedback, just type your response:
# Responding to the plan with corrections
The plan looks mostly right, but two things:
1. Don't modify src/db/schema.sql directly — we use Prisma migrations. Create a migration file instead.
2. Add src/tests/NotificationService.test.js to the list — write tests for the new service.
Claude Code will revise the plan based on your feedback. You can go back and forth until the plan is right.
Step 5: Approve the Plan and Execute
When the plan looks correct, tell Claude Code to proceed:
# Approving the plan and starting execution
Looks good. Go ahead.
Or simply:
# Short approval
Approved.
Claude Code will now execute the plan, file by file, in the order it specified. For each file it changes or creates, it will show you a diff to review before applying.
⚠️ Warning: Approving the plan doesn’t mean approving every change automatically. You still review each file change as it happens. Plan Mode determines what Claude Code will do — you still control whether each individual change gets applied.
When to Use Plan Mode vs. Normal Mode
Plan Mode isn’t always necessary. Here’s a quick guide:
Use Plan Mode when:
- The task touches more than 3 files
- You’re refactoring existing code (not just adding to it)
- You’re implementing a new feature that spans multiple layers (database, API, frontend)
- You’re not sure exactly what files are involved
- The task is irreversible or risky (database migrations, auth changes)
Stick with Normal Mode when:
- It’s a small, contained fix (one file, one function)
- You know exactly what needs to change
- You’ve done this type of task before and trust the output
- You’re exploring or prototyping and want fast iteration
For a full comparison of all modes, see Claude Code Modes Explained: Normal, Plan, Auto.
Common Mistakes and How to Fix Them
Mistake 1: Approving the Plan Without Reading It
Problem: You glance at the plan, think “looks fine,” and approve — then Claude Code modifies files you didn’t expect.
Fix: Read every item in the plan. It takes two minutes. Those two minutes can save you an hour of reverting changes.
Mistake 2: Not Giving Feedback When Something Looks Wrong
Problem: You see something in the plan that seems off but you figure Claude Code knows best and approve anyway.
Fix: Trust your instincts. You know your project. If something in the plan doesn’t look right, say so. Claude Code revises plans gracefully.
Mistake 3: Using Plan Mode for Tiny Tasks
Problem: You switch to Plan Mode to fix a typo in a function name, adding unnecessary overhead.
Fix: Plan Mode is for complex tasks. For small changes, Normal Mode is faster and equally safe since you still review diffs before accepting.
Mistake 4: Forgetting That Plans Can Change Mid-Execution
Problem: Halfway through executing the plan, Claude Code encounters something unexpected and deviates. You assume it’s still following the original plan.
Fix: Keep reading Claude Code’s output as it executes, not just during the planning phase. It will tell you if it encounters something that changes the plan.
Mistake 5: Not Using Plan Mode for Refactors
Problem: You ask Claude Code to “clean up the auth module” in Normal Mode and it refactors 12 files before you realize the scope.
Fix: Any task with the words “refactor,” “reorganize,” “clean up,” or “migrate” should probably start with Plan Mode.
Key Takeaways
- Plan Mode makes Claude Code show you a complete plan before writing any code
- Use it for complex, multi-file tasks — skip it for small, contained changes
- You can give feedback on the plan and iterate before approving
- Approving the plan still leaves you in control — you review each file change as it’s applied
- Plan Mode is a safety net, not a slowdown — it saves time by catching wrong assumptions early
Next Steps
- Claude Code Modes Explained: Normal, Plan, Auto — understand all three modes and when to use each
- How to Accept or Reject Claude Code’s Changes — once the plan executes, here’s how to review every change
- How to Give Claude Code Context — The Basics — better context leads to better plans
Return to How Claude Code Works — A Beginner’s Deep Dive for the full picture.