consult

consult is a command for Claude Code from cluesmith/codev. It costs 0 tokens per session (5,562 once invoked), scanned C, original, Apache-2.0.

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 for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Codex; mentions Gemini CLI.

Good fit Use it for ad-hoc prompts, design or code reviews, protocol-based consultations, and viewing consultation statistics.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cluesmith/codev/consult
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.

Clone the repo
git clone --depth 1 https://github.com/cluesmith/codev

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for consult

README.md
[![agentmods](https://agentmods.dev/badge/commands/cluesmith/codev/consult/github.svg)](https://agentmods.dev/commands/cluesmith/codev/consult)
Your own site
<a href="https://agentmods.dev/commands/cluesmith/codev/consult"><img src="https://agentmods.dev/badge/commands/cluesmith/codev/consult/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for consult

Your own site · 80×15
<a href="https://agentmods.dev/commands/cluesmith/codev/consult"><img src="https://agentmods.dev/badge/commands/cluesmith/codev/consult.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,562 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.05562
Opus 5.5 $0.00000 $0.02225
Sonnet 5.5 $0.00000 $0.01112
Haiku 4.5 $0.00000 $0.00556

Measured 15d ago against content hash 9b757b88737b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 15d 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 · 500 lines

How it starts

The opening of the file, as written. The whole thing — 500 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 · 500 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. 15d ago Changed · +7 lines 9b757b88737b
  2. 1mo 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 (289 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 5,562 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.