Removes kilo, kimi, kimi-code, copilot, windsurf, augment, trae, qwen, hermes, cline, codebuddy and pi end to end: capability descriptors, installer branches and converters (bin/install.js 14.9k -> 11.2k lines), TypeScript converters, hook surfaces and runtime homes, review lanes qwen/kimi-code, the two pi migrations, Kimi payload normalization in the hook guards, dead hostBehaviors vocabulary, launcher home probes, fixtures, runtime-specific tests and the prose that presented them as supported. Installer output for the six kept runtimes is byte-identical to before the prune. The Kimi tool-vocabulary tests in workflow-guard, read-guard and read-injection-scanner are left in place pending a decision.
60 lines
3.4 KiB
Markdown
60 lines
3.4 KiB
Markdown
---
|
|
name: msd:plan-review-convergence
|
|
description: "Cross-AI plan convergence - replan until review concerns are resolved."
|
|
argument-hint: "<phase> [--claude] [--codex] [--coderabbit] [--opencode] [--cursor] [--antigravity] [--agy] [--ollama] [--lm-studio] [--llama-cpp] [--text] [--ws <name>] [--all] [--max-cycles N]"
|
|
allowed-tools:
|
|
- Read
|
|
- Write
|
|
- Bash
|
|
- Glob
|
|
- Grep
|
|
- Agent
|
|
- Skill
|
|
- AskUserQuestion
|
|
requires: [phase, review, autonomous]
|
|
---
|
|
|
|
<objective>
|
|
Cross-AI plan convergence loop — an outer revision gate around msd-review and msd-planner.
|
|
Repeatedly: review plans with external AI CLIs → if HIGH or actionable non-HIGH concerns remain → replan with --reviews feedback → re-review. Stops when no unresolved HIGH concerns or actionable MEDIUM/LOW findings remain outside PLAN.md, or when max cycles is reached.
|
|
|
|
**Flow:** Skill("msd-plan-phase") → Agent→Skill("msd-review") → check unresolved HIGH + actionable non-HIGH → Skill("msd-plan-phase --reviews") → Agent→Skill("msd-review") → ... → Converge or escalate
|
|
|
|
Replaces msd-plan-phase's internal msd-plan-checker with external AI reviewers (codex, claude, etc.). Plan-phase runs **inline** (bare Skill at depth 0) so it can spawn msd-planner/msd-plan-checker at depth 1. Review runs inside an isolated Agent (msd-review is a Bash leaf — no sub-agents needed). Orchestrator only does loop control.
|
|
|
|
**Orchestrator role:** Parse arguments, validate phase, run plan-phase inline (Skill at depth 0), spawn an Agent for msd-review, check unresolved HIGH and actionable non-HIGH counts, stall detection, escalation gate.
|
|
</objective>
|
|
|
|
<execution_context>
|
|
@$HOME/.claude/msd-core/workflows/plan-review-convergence.md
|
|
@$HOME/.claude/msd-core/references/revision-loop.md
|
|
@$HOME/.claude/msd-core/references/gates.md
|
|
@$HOME/.claude/msd-core/references/agent-contracts.md
|
|
</execution_context>
|
|
|
|
<context>
|
|
Phase number: extracted from $ARGUMENTS (required)
|
|
|
|
**Flags:**
|
|
- `--codex` — Use Codex CLI as reviewer (default if no reviewer flag given AND `review.default_reviewers` is unset; otherwise `review.default_reviewers` wins per ADR-0011 — #2315)
|
|
- `--agy` / `--antigravity` — Use Antigravity CLI as reviewer
|
|
- `--claude` — Use Claude CLI as reviewer (separate session)
|
|
- `--coderabbit` — Use CodeRabbit as reviewer (reviews the working-tree diff, not the source tree)
|
|
- `--opencode` — Use OpenCode as reviewer
|
|
- `--cursor` — Use Cursor agent as reviewer
|
|
- `--ollama` — Use local Ollama server as reviewer (OpenAI-compatible, default host `http://localhost:11434`; configure model via `review.models.ollama`)
|
|
- `--lm-studio` — Use local LM Studio server as reviewer (OpenAI-compatible, default host `http://localhost:1234`; configure model via `review.models.lm_studio`)
|
|
- `--llama-cpp` — Use local llama.cpp server as reviewer (OpenAI-compatible, default host `http://localhost:8080`; configure model via `review.models.llama_cpp`)
|
|
- `--all` — Use all available CLIs and running local model servers
|
|
- `--max-cycles N` — Maximum replan→review cycles (default: 3)
|
|
|
|
**Feature gate:** This command requires `workflow.plan_review_convergence=true`. Enable with:
|
|
`msd config-set workflow.plan_review_convergence true`. A dispatch carrying `--override-gate` —
|
|
how `/msd:autonomous --converge` invokes this workflow (#4600) — bypasses the gate for that run.
|
|
</context>
|
|
|
|
<process>
|
|
Execute end-to-end.
|
|
Preserve all workflow gates (pre-flight, revision loop, stall detection, escalation).
|
|
</process>
|