2.4 KiB
2.4 KiB
name, description
| name | description |
|---|---|
| feature-build | Recon → plan → implement → parallel review → synthesize. Use /run-chain feature-build "<feature request>" to kick off a full feature build with the ollama-* subagents. |
Feature build (Ollama Cloud)
A four-stage chain for shipping a small-to-medium feature end-to-end with Ollama Cloud subagents. Each stage is async; the parent continues working between stages.
Stages
- scout —
subagent scoutwithoutput: context.md,context: fresh,async: true. Map the relevant code, list the files to touch, capture conventions. - ollama-planner — reads
context.md, writesplan.md.context: fork,async: true. - ollama-coder — reads
plan.md, implements, runs validation.context: fork,async: true,defaultContext: fork. - parallel review — three
ollama-reviewerinstances with distinct angles (correctness, tests/validation, simplicity/security).context: fresh,concurrency: 3,async: true. - synthesize — parent reads the three reviews, applies
worth fixing nowitems via one moreollama-coderrun (or manually), then summarizes for the user.
When to use
- A new feature spanning 2+ files.
- A non-trivial bug fix touching multiple components.
- A refactor with a clear target shape.
When NOT to use
- Single-line fixes → just edit directly.
- Pure research questions → use
research-briefinstead. - Changes that need user clarification first → ask the user, then start the chain.
Inputs
The chain task should include: the feature request, the target repo path, any constraints (must keep API stable, must not touch X, must add tests), and any attached screenshots.
Validation contract (set before launching)
Before stage 3, write down in the task prompt:
- expected behavior after the change
- tests or commands the coder must run
- evidence the coder must return (changed files, command output, screenshots)
Stop rules
- If
scoutfinds the task is out of scope or the codebase is in an unexpected state, stop and ask the user. - If
ollama-plannersurfaces ambiguity in "Open Questions", stop and ask the user before launching the coder. - If a reviewer reports a
blockeror an unapproved decision, stop and ask the user. - If a
worth fixing nowitem is small and safe, parent applies it directly; if it touches product/architecture, ask the user first.