The Plan Phase
The Plan phase turns a raw idea into a set of agreed, AI-ready documents that drive the rest of the project. You run it once at the start of a greenfield project, or once when adopting Cody on an existing codebase (in which case the brownfield variant runs instead).
What the Plan phase produces
Three documents, all stored under cody-projects/product-builder/plan/:
| Document | What it captures |
|---|---|
discovery.md | The raw, unfiltered idea plus the Q&A between you and the agent. The starting point for greenfield projects. |
brownfield-analysis.md | An autonomous technical audit of an existing codebase: tech stack, architecture, dependencies, existing features, plus targeted Q&A. Replaces discovery.md for brownfield projects. |
prd.md | The Product Requirements Document. Defines the “what and the why”: goals, users, features, success criteria. |
plan.md | The Implementation Plan. Defines the “how and when”: architecture, components, data model, milestones, risks. |
The agent drafts each document, you review and revise, and you sign off before moving on. The whole phase is iterative: nothing is locked in until you agree.
How to run it
For a new project, type:
:cody planCody walks you through the full flow:
- Idea capture. Cody asks
What do you want to create?and runs an interactive Q&A to understand the outcome you want. Typehelp meif you need example answers. Typeno moreto cut the questions short. - Confirm understanding. Cody summarizes what it heard back to you and asks for explicit approval before writing anything.
- Create the discovery document. Cody copies the
discovery.mdtemplate into your plan folder and fills it in from the conversation. - Create the PRD. Cody reads
discovery.mdand draftsprd.md. You iterate on it until you’re both happy. - Create the plan. Cody reads
prd.mdand draftsplan.md. Same iteration loop.
When all three documents are signed off, Cody prints PLAN PHASE : COMPLETED and points you at :cody build to start the Build phase.
For the full step-by-step command reference, see :cody plan.
Brownfield projects
If you’re adopting Cody Product Builder on an existing codebase, you don’t run :cody plan. Instead, run :cody refresh. Cody auto-detects the existing code, performs an autonomous codebase analysis, asks you targeted questions, and generates brownfield-analysis.md, prd.md, and plan.md automatically. The same explicit review gates apply between each document.
When the Plan phase is “done”
You’re done with the Plan phase when:
prd.mdandplan.mdexist and you’ve signed off on both.cody.jsonhasphase: "plan"(it flips to"build"automatically when you create the feature backlog).- You can describe, in one or two sentences, what the product is and how the first version will be built.
If anything in those three statements is missing, stay in Plan a little longer. Catching gaps now is cheaper than catching them in Build.
What’s next
When you’re ready, move to The Build Phase. The Build phase turns the plan into a feature backlog and shippable versions.