<objective>
Cross-AI plan convergence loop — an outer revision gate around gsd-review and gsd-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("gsd-plan-phase") → Agent→Skill("gsd-review") → check unresolved HIGH + actionable non-HIGH → Skill("gsd-plan-phase --reviews") → Agent→Skill("gsd-review") → ... → Converge or escalate
Replaces gsd-plan-phase's internal gsd-plan-checker with external AI reviewers (codex, gemini, etc.). Plan-phase runs inline (bare Skill at depth 0) so it can spawn gsd-planner/gsd-plan-checker at depth 1. Review runs inside an isolated Agent (gsd-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 gsd-review, check unresolved HIGH and actionable non-HIGH counts, stall detection, escalation gate.
</objective>
<execution_context>
@$HOME/.claude/gsd-core/workflows/plan-review-convergence.md
@$HOME/.claude/gsd-core/references/revision-loop.md
@$HOME/.claude/gsd-core/references/gates.md
@$HOME/.claude/gsd-core/references/agent-contracts.md
</execution_context>
<runtime_note>
Copilot (VS Code): Use
wherever this workflow calls
. They are equivalent —
is the VS Code Copilot implementation of the same interactive question API. Do not skip questioning steps because
appears unavailable; use
instead.
</runtime_note>
<context>
Phase number: extracted from $ARGUMENTS (required)
Flags:
- — Use Codex CLI as reviewer (default if no reviewer flag given AND is unset; otherwise wins per ADR-0011 — #2315)
- — Use Gemini CLI as reviewer
- / — Use Antigravity CLI as reviewer (successor to the discontinued Gemini CLI)
- — Use Claude CLI as reviewer (separate session)
- — Use CodeRabbit as reviewer (reviews the working-tree diff, not the source tree)
- — Use OpenCode as reviewer
- — Use Qwen Code CLI as reviewer (Alibaba Qwen models)
- — Use Cursor agent as reviewer
- — Use local Ollama server as reviewer (OpenAI-compatible, default host ; configure model via )
- — Use local LM Studio server as reviewer (OpenAI-compatible, default host ; configure model via )
- — Use local llama.cpp server as reviewer (OpenAI-compatible, default host ; configure model via )
- — Use Kimi Code CLI as reviewer (Moonshot AI)
- — Use all available CLIs and running local model servers
- — Maximum replan→review cycles (default: 3)
Feature gate: This command requires
workflow.plan_review_convergence=true
. Enable with:
gsd config-set workflow.plan_review_convergence true
</context>
<process>
Execute end-to-end.
Preserve all workflow gates (pre-flight, revision loop, stall detection, escalation).
</process>