## Setting Up Multi-Model Quorum

### Gemini (Video Review) — via Gemini API

**Important:** Gemini CLI (`gemini` command) cannot process video — its `read_file` tool doesn't support
video MIME types through `function_response.parts` (tracked in google-gemini/gemini-cli#16741).
We call the Gemini API directly via `apt-proof-video`.

**Setup:**
1. Get a free API key at https://aistudio.google.com/apikey
2. Set the environment variable:
   ```bash
   export GEMINI_API_KEY="your-key-here"
   ```
3. Install the SDK (if not already an optional dep):
   ```bash
   npm install @google/genai
   ```

**How it works:** The `apt-proof-video` binary reads the `.webm` file, base64-encodes it, and sends it
to the Gemini API via inline data. Gemini samples frames at 1 FPS (~258 tokens/frame + 32 tokens/s audio)
and returns structured analysis. A 5-minute recording ≈ 90,000 tokens, costs ~$0.005.

**Benchmarked model presets:**

| Preset | Model | Speed | Detail | Best for |
|--------|-------|-------|--------|----------|
| `default` | gemini-2.5-flash | ~18s | Highest — reads star counts, exact text, tag lists | General verification |
| `thorough` | gemini-3.1-pro-preview | ~26s | Best interaction precision — catches hover states, dropdown bugs | UI regression testing |
| `fast` | gemini-3.1-flash-lite-preview | ~6s | Good — catches major issues, 3x faster | CI pipelines |

### Codex CLI (Second Opinion)

OpenAI Codex provides an independent perspective from a different model family. Install via the Claude Code plugin marketplace or:
```bash
# Available as Claude Code plugin
/codex:setup
```

Codex is invoked for:
- Independent code correctness analysis
- Security review from a different training distribution
- Catching blind spots in Claude's analysis

### Future Models

The quorum system is extensible. As new AI CLIs become available, they can be added as additional
`ModelVerdict` entries. The manifest type supports any `provider` string.
