Devplan raises $2.5M to bring product intelligence to teams. Read more on GeekWire.

BlogGuides

Claude Code planning: plan before you build

Use Claude Code planning to review a change before coding, with product decisions, acceptance criteria and evidence from Devplan.

Claude Code planning an offline-mode change, with the scope and acceptance criteria from Devplan

Short answer: Claude Code planning lets you inspect a repository and agree an implementation approach before any edits begin. Start in Plan Mode, give Claude the change you are considering, and ask it to separate requirements, code evidence and open questions. Connect Devplan when the plan depends on customer requests or product decisions that live outside the repository.

A note before we start. We build Devplan, which gives Claude, ChatGPT, Grok and any agent on MCP the product context behind a change. This guide follows one example project: offline mode in a mobile app.

What Claude Code planning should produce

A useful plan gives you something you can review: the intended behavior, the parts of the code likely to change, the tests that would prove it works, and the decisions still needed. You should be able to spot a disagreement before it becomes a code change.

That review matters. In Stack Overflow's 2025 Developer Survey, 66% of the 31,476 developers who answered the question on AI frustrations picked "solutions that are almost right, but not quite". A detailed answer is not the same as a correct one, so inspect the agent's assumptions before it writes code.

Start with one bounded change. In this guide, the request is to let people view previously downloaded information when their phone has no connection. Whether they can also edit it offline is a separate product decision.

Enter Plan Mode before making a change

In the terminal, start Claude Code in your repository in Plan Mode:

claude --permission-mode plan

In a session that is already running, type /plan or press Shift+Tab until the status bar shows that Plan Mode is on. Anthropic's planning workflow describes this mode: Claude reads files and proposes a plan, and makes no edits until you approve.

Then ask for an assessment, with a clear boundary:

Plan the offline-mode change. Inspect the repository and explain the
approach before making edits. Identify the affected areas, tests,
assumptions and product decisions that need confirmation.

If Devplan isn't connected yet, follow our Claude Code connection guide first, and check that you are in the right workspace before asking a product question.

Bring the product decision into the plan

For each part of the request, ask what kind of evidence would settle it. The repository shows how the cache works today. It doesn't show whether the team agreed to allow offline edits.

EvidenceWhat it can establishWhat still needs checking
A customer requestThe problem someone reportedWhether the team agreed to address it
A product decisionThe intended scope and exclusionsWhether a later decision changed it
Repository code and testsExisting behavior and implementation constraintsWhether that version is deployed and enabled
A missing or conflicting sourceA question the plan cannot settleWho can resolve it before implementation

Devplan is product memory for agents and teams: what customers asked for, what you decided and what actually shipped, with every answer traced to its source. Connected to Claude, it brings that evidence into the planning session next to the repository.

Ask Claude to find the evidence before it suggests a scope:

Use Devplan to find the request and decisions behind offline mode.
Link each relevant source and flag conflicting or missing evidence.
Then inspect the local repository. Separate agreed behavior from
what the code currently implements. Do not infer release status
from a merged change alone.

With a direct MCP connection, Devplan's guide recommends adding a few product-context lines to your existing CLAUDE.md, next to your other rules. The Devplan plugin already includes that guidance, so check which setup you have before adding a second connection.

Claude Code in Plan Mode pulling the offline-mode request and product decision from Devplan: viewing downloaded records offline is in scope, offline editing is out, with each line linked to its source
Example: the request and the product decision from Devplan, next to the scope of the plan.

Plan one change against the repository

Say the product decision allows viewing previously downloaded records offline, while edits stay online-only. The plan should keep that boundary in both the interface and the tests.

Give Claude a concrete output to prepare:

Prepare a plan for viewing downloaded records offline.
Treat the linked product decision as the proposed scope to review.
For each step, name the affected code area and the test needed.
Cover an empty cache, a stale record, sign-out and reconnecting.
List any decision you cannot verify. Do not implement the plan yet.

A good result might propose keeping the most recent downloaded version, showing when it was last updated, and stopping an offline edit from looking as if it succeeded.

Look at the awkward cases as carefully as the main path. What should the app show if a record was never downloaded? Should signing out clear local records? What happens if the server version changes before the phone reconnects? If the evidence doesn't answer a question, leave it open and name the person who needs to decide.

The plan should then connect those decisions to the code. A reference to a cache module should point to a real file in the repository, and a proposed test should name the behavior it checks. Don't accept an invented file path because it looks plausible.

Review the plan before approving implementation

Read the plan as the person responsible for the change. Does it keep the agreed exclusions? Does it say how the app behaves when the cache is empty? Can an engineer follow the evidence behind each requirement without repeating the investigation?

Review questionWhat to look for
Does the scope match the decision?Offline viewing is separate from offline editing.
Does each requirement have support?A linked source, or a decision still to be made.
Does the approach fit the code?Real files, existing conventions and known constraints.
Can the behavior be checked?Tests for the normal path and the failure cases.
Are unknowns visible?Release state, missing sources and open choices stay open.

Correct the scope before you approve any edits. After implementation, check the result against the same acceptance criteria. Passing tests answer questions about the code; release and rollout checks answer different ones.

For the full path from a written spec to working code, see our spec-driven development guide. If the request needs a clearer product document first, the annotated PRD examples show how to structure one.

Frequently asked questions

Does Claude Code have a planning mode?

Yes. Claude Code has Plan Mode, and Devplan can bring the product evidence into the plan when it's connected. Start with claude --permission-mode plan, or type /plan or press Shift+Tab in a session and check the status bar. Review the approach and the open questions before you allow implementation.

What does plan do in Claude Code?

Plan Mode makes Claude Code read and research before it changes anything. Claude reads files, searches the codebase and asks clarifying questions, then proposes a plan, and it makes no edits until you approve. With Devplan connected, the plan also starts from the customer requests and decisions behind the change.

How to use Claude Code for planning?

Use Claude Code planning with Devplan to connect the requested behavior to product evidence, then check that scope against the local code. Ask for the affected areas, acceptance criteria, tests and open decisions. Review them before you approve edits, and check the finished work against the agreed criteria.

Check the decision before the first edit

Start every plan from what was actually decided. Add Devplan to Claude.

About the author. Chris Bee is the co-founder and CEO of Devplan.

All posts

Put the ideas to work.

Devplan turns customer requests into specs, estimates and tickets, then tracks progress from your code.