Version 2.1.0 · latest
:cody plan
:cody plan kicks off the Plan phase for a new project. It walks you through idea discovery, then drafts a Discovery document, a PRD, and an Implementation Plan, with explicit review gates between each.
When to use it
Use :cody plan once, at the start of a brand-new (greenfield) project.
Do not use :cody plan if:
- You already have application code in the project. Run
:cody refreshinstead. Cody auto-detects the brownfield case and runs the equivalent flow. - You already have a Plan phase in progress.
:cody planchecks for existing plan documents before doing anything and stops if it finds them, so you don’t overwrite work in progress.
What it does
When you run :cody plan, Cody walks through this flow:
- Safety check. Cody checks
cody-projects/product-builder/plan/for existing documents. If any are found, the command stops and lists them. This prevents accidental overwrites. - Note available prototypes. If you’ve built any prototypes already, Cody mentions them so you can pull one into the planning conversation if you want.
- Idea discovery. Cody asks
What do you want to create?and runs an interactive Q&A to understand the outcome you want.- Type
help mefor example answers if you’re stuck. - Type
no moreto cut the Q&A short.
- Type
- Confirm understanding. Cody summarizes its understanding back to you and asks for explicit approval. This is the “we both agree” gate before anything is written.
- Create the project workspace. Cody creates
cody.jsonat the project root and thecody-projects/product-builder/plan/folder. - Draft
discovery.md. Cody fills in the discovery template from the conversation. You review and request edits, or saycontinue. - Draft
prd.md. Cody readsdiscovery.mdand drafts the Product Requirements Document. Iterate until you’re both happy with it. - Draft
plan.md. Cody readsprd.mdand drafts the Implementation Plan. Same iteration loop. - End of phase. Cody prints
PLAN PHASE : COMPLETEDand points you at:cody buildto start the next phase.
Output
By the time :cody plan finishes, you’ll have:
cody.json # phase: "plan", version: "0.0.0"cody-projects/product-builder/plan/├── discovery.md├── prd.md└── plan.mdFor the brownfield variant (existing codebase), brownfield-analysis.md replaces discovery.md. That flow is triggered by :cody refresh, not by :cody plan.
What’s next
When the Plan phase ends, run :cody build to create the feature backlog and start shipping versions.
For the conceptual overview, see The Plan Phase.