Skip to content

GSD-style cross-AI peer review: dispatch review to independent AI CLI #288

Description

@azalio

Summary

map-framework map-review runs within the same model session. GSD can dispatch reviews to independent AI CLIs (Codex, Gemini, Copilot, OpenCode) for truly independent second opinions. This is cross-AI peer review — the reviewer is a different model, possibly from a different vendor, with no shared context.

What GSD does

/gsd-review --cross-ai

  • Dispatches the review task to an independent AI CLI (different from the current runtime)
  • Supports: Claude Code, Gemini CLI, Codex, Copilot, OpenCode, Cursor, Windsurf, Kilo, Augment Code, Trae, Cline, Antigravity
  • Delivers prompt via stdin-based delivery to the external CLI
  • Review result is parsed and presented in the orchestrator session

Why cross-AI matters

  • Same-model review is "inbred" — the model reviews its own patterns and biases
  • Cross-AI review catches model-specific blind spots
  • Independent CLI = true fresh context, no shared session state
  • Different vendors = different strengths (Claude for reasoning, Gemini for breadth, Codex for code generation patterns)

Current map-framework state

  • map-review operates within a single model session
  • Review agents (Monitor, Predictor, Evaluator) share the same model and context
  • No mechanism to dispatch to external AI runtimes
  • No cross-model or cross-vendor comparison

Proposed design

map-review --cross-ai <runtime>

map-review --cross-ai codex       # Dispatch to Codex CLI
map-review --cross-ai gemini      # Dispatch to Gemini CLI
map-review --cross-ai all         # Dispatch to all available, aggregate

External CLI dispatch

  1. Detect available AI CLIs on the system
  2. Format prompt for target CLI format (Claude: markdown, Gemini: extension JSON, Codex: slash command)
  3. Execute: claude -p "$(cat review-prompt.md)" --output-format json
  4. Parse result, normalize to common review schema
  5. Present alongside in-session review for comparison

Multi-vendor aggregation

  • When --cross-ai all: dispatch to all detected CLIs
  • Vote/consensus: which issues do all reviewers agree on?
  • Disagreements: highlight contradictions for user judgment
  • Format: unified report with per-reviewer sections + consensus section

Integration

  • .map/config.yaml:
    review:
      cross_ai:
        enabled: true
        runtimes: [codex, gemini]   # Or "all" / "detect"
        fallback: claude             # If target unavailable

References

  • GSD: commands/gsd/gsd-review.md, cross-AI flag implementation
  • GSD Architecture: docs/ARCHITECTURE.md (cross-AI peer review section)

Acceptance criteria

  • map-review --cross-ai <runtime> flag
  • Auto-detect available AI CLIs on system
  • Prompt formatting for target CLI (Claude, Codex, Gemini, OpenCode)
  • Result parsing + normalization to common schema
  • --cross-ai all: dispatch to all, aggregate with consensus
  • .map/config.yaml cross_ai section
  • Fallback: if target unavailable, use in-session review

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions