consult

A command-line interface for asking external AI models for advice. It supports ordinary questions, structured review protocols, and statistics about consultations across models such as Gemini, Codex, Claude, and Hermes.

In plain words
What is it for?
Use it for ad-hoc prompts, design or code reviews, protocol-based consultations, and viewing consultation statistics.
Why use it?
It gives a project one way to request feedback from different AI providers. You can choose a model lane or specify the provider's exact model identifier for a particular consultation.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/cluesmith/codev/consult
Clone the repo
git clone --depth 1 https://github.com/cluesmith/codev
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.05377
Opus 5 $0.00000 $0.02688
Sonnet 5 $0.00000 $0.01075
Haiku 4.5 $0.00000 $0.00538

Measured 2d ago against content hash 947febf6ec84, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

consult scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://antigravity.google/cli/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://antigravity.google/cli/install.sh | bash
codev-skeleton/resources/commands/consult.md · 493 lines

How it starts

The opening of the file, as written. The whole thing — 493 lines — stays where its author put it; the contents beside it link to each section on GitHub.

consult - AI Consultation CLI

The consult command provides a unified interface for AI consultation with external models (Gemini, Codex, Claude, Hermes). It operates in three modes: general (ad-hoc prompts), protocol-based (structured reviews), and stats.

Synopsis

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

Required Option

-m, --model <model>    Model to use (required for all modes except stats)

Model Selection Options

--model-id <id>        Override the provider model id for THIS invocation

-m/--model picks the lane (claude, codex, gemini, hermes); --model-id picks the model that lane runs. The two are independent — see Configuration for setting an id persistently instead.

consult -m codex --model-id gpt-5.6-sol --prompt "Review this design"
  • Precedence: --model-id > consult.models.<lane> > the lane's shipped default.
  • Supported lanes: claude, codex, gemini. Using it with hermes is an error, not a silent no-op — hermes chat -q has no model selector, so accepting the flag there would mean ignoring it.
  • Validation is syntax-only. Whether the id exists is the provider's call; a rejection fails loudly with no fallback to the default. See the fail-fast contract.

Models

Model Alias Backend Shipped default model id Notes
gemini pro Antigravity CLI (agy) (agy's own default — no pinned id) Agentic file access (--sandbox --add-dir), OAuth/subscription login. Skips non-blockingly if agy is missing/unauthed.
codex gpt @openai/codex gpt-5.6-sol (medium reasoning effort) Read-only sandbox, thorough
claude opus Claude Agent SDK claude-opus-5 Balanced analysis with tool use
hermes - hermes CLI (hermes chat -q) (hermes' own default) Uses Hermes agent as consult backend

Read the full file on GitHub · 493 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 493 lines · 0 tokens per session scan C 947febf6ec84

Subscribe to this mod's changes

consult is a command published in the GitHub repository cluesmith/codev (286 stars, last pushed 5d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 5,377 tokens. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.