zo draft is how you go from an empty plans/<project>.md skeleton to a fully-populated, schema-valid plan ready for zo build.
Synopsis
What it does
The Plan Architect (Opus, lead) coordinates with the Data Scout (Sonnet) and Research Scout (Sonnet) to populate every section of the plan againstspecs/plan.md:
Inspect inputs
Reads any source documents you provide (
--docs), inspects data samples (--data), or asks you for a description (--description). All optional — the agent can also work conversationally with no inputs.Research
Research Scout surfaces relevant prior art: published benchmarks, baseline ranges, open-source implementations of analogous problems. For domain-specific projects, finds relevant techniques.
Data understanding
Data Scout characterises the dataset: schema, class distribution, splits, known issues, scale. For remote data, reads a YAML manifest if provided.
Draft
Plan Architect drafts every section: objective, oracle (with must/should/could tiers), workflow mode, data sources, domain priors, agents (with adaptations and custom agents if relevant), constraints, milestones, delivery, environment.
Confirm and write
Each section is presented for your approval. Validates against the schema as it generates. The agent runs
--dry-run first; you see exactly what will land. Then writes to the main repo (not worktrees — see PR-013).Inputs (all optional)
- Documents
- Data samples
- Description
- Conversational (no inputs)
Custom agents and adaptations
Two of the most powerful plan features are populated during draft:Custom agents
Custom agents
Project-specific specialists not in the standard roster. The Plan Architect proposes them based on Research Scout findings. Example: for vibration-signal analysis, a
signal-analyst: Sonnet — frequency-domain reasoning, BPFO/BPFI fault frequencies, envelope demodulation block lands in the plan, and the orchestrator auto-creates .claude/agents/custom/signal-analyst.md at build start.Agent adaptations
Agent adaptations
Per-project tuning of generic agents. The Plan Architect drafts adaptations for
xai-agent and domain-evaluator (which are generic shells by design — see PR-020). Adaptations are appended to the spawn prompt at build time; the agent’s .md file stays unchanged and reusable.Options
| Option | Purpose |
|---|---|
-p, --project | Project name. Required. |
--docs PATH | Source document (PDF, MD, TXT). Repeatable. |
--data PATH | Data file or manifest. Repeatable. |
-d, --description | One-line description of the project. |
--no-tmux | Disable conversational mode. Headless run with single best-effort draft. |
Examples
Conversational, no inputs
Conversational, no inputs
With a scope document
With a scope document
With data and description
With data and description
Output
After a successful draft, the plan atplans/<project>.md is fully populated and ready for preflight:
zo build.
Important notes
Next
zo preflight
Validate the drafted plan before spending compute.
zo build
Launch the agent team against the validated plan.