New Tool Radar

AI Agents & Automation

How to Draft an Implementation Plan With Claude Code Plan Mode

Use Claude Code plan mode with a subagent to draft an implementation plan before any code is changed.

Schematic with three steps: Enter plan mode and state the task; Let a subagent research the codebase; Read the plan, fix it, then approve.

Plan mode is the cheapest change with the biggest effect in Claude Code: it tells Claude to research and propose without acting, reading files and running exploratory commands, then writing a plan that waits for your approval before any code is touched. Pair it with a subagent for the research, so the exploration runs in its own context and returns as one message instead of polluting the main conversation. Enter plan mode, ask the questions that matter, and approve only a plan you would sign off on.

What you need

  • Claude Code installed and a project folder open
  • A task big enough to need a plan, not a one-line fix
  • A subagent available for codebase research, such as the built-in Explore agent

Step 1: Enter plan mode and state the task

Switch to plan mode and state the task in one sentence, asking Claude to ask two or three clarifying questions if anything is genuinely ambiguous, then write the plan.

Step 2: Let a subagent research the codebase

Have a subagent explore the relevant code and report back what exists, so the plan is grounded in the real code instead of a guess. The subagent’s findings come back as one message.

Step 3: Read the plan, fix it, then approve

Read the written plan, correct anything wrong, and approve it only when you would sign off on it. The plan is a draft until you approve; nothing changes before that.

Worked example: synthetic planning run

The table below is a synthetic example. It shows the expected result of plan mode; no plan was written.

Check Expected Result
No code changed during planning 0 files Pass
Plan written to a file Yes Pass
Plan names the files to touch Yes Pass
Ambiguities asked first Yes Pass

Expected result (UNTESTED). the plan is researched, written and approved with no code changed before approval. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Plan mode drafts and waits; it does not act until you approve, so do not approve a plan you have not read.
  • A subagent’s findings come back as one message, so ask it to be specific about file names and lines.
  • Plan mode is for non-trivial work; a one-line fix does not need a written plan.

Sources

See all