consult - AI Consultation CLI

SkillAI & models

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.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the consult - AI Consultation CLI skill

What this skill tells your AI

The instructions your AI receives, as published by ansari-project/ansari-frontend in .claude/skills/consult/SKILL.md and read by ahel’s review.

Synopsis

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

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

Models

ModelAliasSpeedApproach
geminipro~120-150sFile access via --yolo, fast
codexgpt~200-250sShell command exploration, thorough
claudeopus~60-120sAgent 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)

Review Types (--type with --protocol)

TypeUse Case
specReview specification completeness
planReview implementation plan
implReview code implementation
prReview pull request before merge
phasePhase-scoped review (builder only)
integrationArchitect'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 requiredconsult --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

Signals

GitHub stars
27
Forks
16
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
consult
Source
github.com/ansari-project/ansari-frontend