consult
27
总安装量
26
周安装量
#13446
全站排名
安装命令
npx skills add https://github.com/cluesmith/codev --skill consult
Agent 安装分布
amp
26
github-copilot
26
codex
26
kimi-cli
26
gemini-cli
26
opencode
26
Skill 文档
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 # Review a specification
consult -m codex --protocol spir --type plan # Review a plan
consult -m claude --protocol spir --type impl # Review implementation
consult -m gemini --protocol spir --type pr # Review a PR
consult -m codex --protocol spir --type phase # Phase-scoped review
consult -m gemini --type integration # Integration review
Stats Mode
consult stats # 30-day summary
consult stats --days 7 --json # Last 7 days as JSON
Options
-m, --model <model> # Model to use (required except stats)
--prompt <text> # Inline prompt (general mode)
--prompt-file <path> # Prompt from file (general mode)
--protocol <name> # Protocol: spir, bugfix, tick, maintain
-t, --type <type> # Review type: spec, plan, impl, pr, phase, integration
--issue <number> # Issue number (architect context)
--output <path> # Save result to file (recommended for background runs)
Output Persistence
Always use --output when running consultations in the background. Without it, results are written to a temporary file that may be garbage-collected before you read them.
# Bad â output may be deleted before you can read it
consult -m claude --type integration --issue 42 &
# Good â result is saved to a stable path
consult -m claude --type integration --issue 42 --output /tmp/review-claude-42.md &
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. Always use --output:
consult -m gemini --type integration --issue 42 --output /tmp/cmap-gemini-42.md &
consult -m codex --type integration --issue 42 --output /tmp/cmap-codex-42.md &
consult -m claude --type integration --issue 42 --output /tmp/cmap-claude-42.md &
wait
Or from Claude Code, use cmap pattern: three parallel background Bash calls with --output.
Common Mistakes
- The
-mflag is required âconsult --type specwill fail without it - Cannot combine
--promptwith--type(mode conflict) - Cannot use
--promptand--prompt-filetogether --protocolrequires--typeâ cannot use alone- General mode:
--prompttext is passed directly, not as a positional arg