mcpField
C
consult

consult

github.com/cluesmithTesting & quality29343 installsUpdated 1d ago
Repository

About consult

consult is a CLI for querying Gemini, Codex, and Claude for analysis and reviews. It supports general prompts, protocol-based review workflows, and usage statistics.

Key features

  1. 01Query Gemini, Codex, and Claude
  2. 02Submit inline or file-based prompts
  3. 03Review specs, plans, code, and pull requests
  4. 04Save results to a file
  5. 05View usage statistics

Use cases

  1. 01Get an external review of an implementation plan
  2. 02Review a pull request with multiple models
  3. 03Ask a model a general project question

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cluesmith/codev --skill consult

After installing, type/consultin Claude Code to confirm it loaded.

Details

From the project README

consult - AI Consultation CLI

Query external AI models for reviews and analysis. Supports Gemini, Codex, and Claude.

Synopsis

consult -m <model> [options]
consult stats [options]

The -m / --model flag is always required except for consult stats.

Models

Flag valueAliasNotes
geminiproFast (~120-150s), file access via --yolo
codexgptThorough (~200-250s), shell exploration
claudeopusAgent SDK with tool use (~60-120s)

All flags

-m, --model <model>         Model to use (required except stats)
--prompt <text>              Inline prompt (general mode)
--prompt-file <path>         Prompt file path (general mode)
--protocol <name>            Protocol: spir, aspir, air, bugfix, tick, maintain
-t, --type <type>            Review type (see below)
--issue <number>             Issue number (required in architect context)
--output <path>              Save result to file
--plan-phase <phase>         Scope review to a plan phase (porch use)
--context <path>             Context file with feedback (porch use)
--project-id <id>            Project ID for metrics (porch use)
--days <n>                   Stats: limit to last N days (default: 30)
--project <id>               Stats: filter by project ID
--last <n>                   Stats: show last N invocations
--json                       Stats: output as JSON

Review types (--type)

TypeWhen to use
specReview a specification for completeness
planReview an implementation plan
implReview code implementation
prReview a pull request before merge
phasePhase-scoped review (builder context only)
integrationArchitect's integration review of a PR

Usage patterns

General query:

consult -m gemini --prompt "What's the best way to structure auth?"
consult -m codex --prompt-file review-checklist.md

Protocol review:

consult -m gemini --type spec --issue 42
consult -m codex --type plan --issue 42
consult -m claude --type integration --issue 42

3-way parallel review (cmap): Always use --output for background runs — without it, results go to a temp file that may be garbage-collected.

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

Stats:

consult stats                     # 30-day summary
consult stats --days 7 --json     # Last 7 days as JSON
consult stats --project 42        # Filter by project

Rules

  • -m is required for all non-stats commands
  • --prompt and --type are mutually exclusive (different modes)
  • --prompt and --prompt-file are mutually exclusive
  • --protocol requires --type
  • From architect context (outside .builders/), --issue is required for protocol reviews
  • From builder context (inside .builders/), project auto-detects from porch state

Comments

Markdown supported