PlanGate

RFC: Gemini CLI Provider Support

Status: Implemented (v8.1.0 — plangate review, PLANGATE_EXTERNAL_REVIEWER=gemini) Created: 2026-04-27 Issue: #82

Motivation

PlanGate’s external review step (C-2 / V-3) currently uses Codex CLI as the default reviewer. Gemini CLI provides an alternative LLM perspective that can catch blind spots Codex might miss. Adding Gemini CLI as an optional provider would:

Proposed Configuration

In a project’s plangate.yaml (or equivalent config):

providers:
  external_reviewer:
    type: gemini-cli
    model: gemini-2.5-pro
    args: ["--yolo"]

The plangate harness would dispatch to gemini CLI using the same prompt template currently sent to codex review.

Implementation Plan

  1. Abstract the external reviewer invocation in bin/plangate into a call_external_reviewer function.
  2. Add a PLANGATE_EXTERNAL_REVIEWER environment variable (default: codex).
  3. Add a gemini branch: invoke gemini --yolo -p "<prompt>" and capture stdout.
  4. Validate that the output contains a structured review block before writing to review-external.md.
  5. Update workflows/high-risk.yaml and workflows/critical.yaml to reference provider: gemini-cli.
  6. Document the configuration in README.md under ## Provider Support.

Open Questions