delegate_implementation
Plan, implement, and review code changes in one call. Delegates tasks to CLI agents to automate the full development cycle.
Instructions
Plan → implement → review in one MCP call.
The composite tool runs three stages sequentially:
Plan via the
plannertool (planner_agent).Implement via the
implementtool (implementer_agent; mutation flags enabled).base_pathmust be allow-listed viaCONSULT_MCP_ALLOWED_BASEexactly as forimplement.Review via
diff_revieworcodereview(reviewer_agents, in parallel). Choice is automatic based onimplement's output: a unified git diff routes todiff_review; otherwise the list of modified files routes tocodereview.
Returns one of:
{"status": "success", ...}— all three stages ok{"status": "partial_success", ...}— implement ok, ≥1 reviewer failed or review skipped{"status": "partial_error", "stage_failed": "implement", ...}— implement failed; review run best-effort against any partial diff{"status": "error", "stage_failed": "plan", ...}— planner failed, downstream stages skipped
The tool never raises — all errors are surfaced as structured fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| base_path | Yes | ||
| planner_agent | No | claude | |
| implementer_agent | No | codex | |
| reviewer_agents | No | ||
| plan_depth | No | tree | |
| plan_timeout | No | ||
| implement_timeout | No | ||
| review_timeout | No | ||
| constraints | No |