| name | consult |
| description | AI consultation CLI quick reference. Use when running consult commands to check syntax for general queries, protocol reviews, and stats across Gemini, Codex, and Claude. |
| disable-model-invocation | false |
consult - AI Consultation CLI
Synopsis
consult -m <model> [options]
consult stats [options]
The -m / --model flag is always required (except for stats).
Models
| Model | Alias | Speed | Approach |
|---|
gemini | pro | ~120-150s | File access via --yolo, fast |
codex | gpt | ~200-250s | Shell command exploration, thorough |
claude | opus | ~60-120s | Agent SDK with tool use |
Modes
General Mode
consult -m gemini --prompt "What's the best way to structure auth?"
consult -m codex --prompt-file review-checklist.md
Protocol Mode
consult -m gemini --protocol spir --type spec
consult -m codex --protocol spir --type plan
consult -m claude --protocol spir --type impl
consult -m gemini --protocol spir --type pr
consult -m codex --protocol spir --type phase
consult -m gemini --type integration
Stats Mode
consult stats
consult stats --days 7 --json
Options
-m, --model <model>
--prompt <text>
--prompt-file <path>
--protocol <name>
-t, --type <type>
--issue <number>
Review Types (--type with --protocol)
| Type | Use Case |
|---|
spec | Review specification completeness |
plan | Review implementation plan |
impl | Review code implementation |
pr | Review pull request before merge |
phase | Phase-scoped review (builder only) |
integration | Architect's integration review |
Protocol-specific prompts live in codev/protocols/<protocol>/consult-types/.
Context Resolution
- Builder context (cwd in
.builders/): auto-detects project from porch state
- Architect context (cwd outside
.builders/): requires --issue <N>
Parallel Consultation (3-Way / cmap)
Run all three models in parallel for thorough reviews:
consult -m gemini --protocol spir --type spec &
consult -m codex --protocol spir --type spec &
consult -m claude --protocol spir --type spec &
wait
Or from Claude Code, use cmap pattern: three parallel background Bash calls.
Common Mistakes
- The
-m flag is required — consult --type spec will fail without it
- Cannot combine
--prompt with --type (mode conflict)
- Cannot use
--prompt and --prompt-file together
--protocol requires --type — cannot use alone
- General mode:
--prompt text is passed directly, not as a positional arg