research-plan-implement is a full pipeline for changes that need context before code. It asks one agent to research, another to plan, then passes the enriched prompt into the same ValidationLoop used by implement.
Inputs
| Input | Type | Default |
|---|---|---|
prompt | string | "Implement the requested change." |
tdd | boolean | false |
tdd is true, the planning task is instructed to start with test steps before any implementation steps, and the implementation task is instructed to write or update tests before production code.
Pass structured input when you want test-first planning:
How It Runs
- Research gathers repo context, prior art, and relevant implementation details.
- Planning turns the request and research into concrete steps.
- Implementation receives the original prompt plus research and plan context.
- Validation and review decide whether another implementation pass is needed.
Use it when
- The change needs repo context and a plan before code.
- You want research, planning, and a validated implementation in one run.
Use something else when
- You already know what to build: use
implement. - You only need context or a plan, not code: use
researchorplan. - The scope spans many units or milestones: use
tickets-createwithkanban, ormission.
Resume & retry
Runs are durable and resume withup --resume; completed research and planning are not re-run. The implementation stage uses the same validation loop as implement (up to 3 iterations, stopping on validation pass plus reviewer approval).