grok-consult

grok-consult is an agent for Claude Code from faeton/claude-grok-plugin. It costs 62 tokens per session (576 once invoked), scanned A, original, MIT.

A forwarding agent that sends a question or code-review request to xAI's Grok through a local companion program. It returns Grok's response without doing the work itself.

In plain words
What is it for?
Getting a separate review of local Git changes, asking open-ended technical questions, and passing file context to Grok.
Why use it?
It provides an independent second opinion when the main coding agent needs another review or answer. The main agent can also attach selected files for a code review.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the grok plugin — 3 skills, 8 commands, 1 agent shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add faeton/claude-grok-plugin
Claude Code
/plugin install grok

Made for: Claude Code.

Or install grok, the plugin that ships this one along with the rest of its 3 skills, 8 commands, 1 agent.

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 grok-consult

README.md
[![agentmods](https://agentmods.dev/badge/agents/faeton/claude-grok-plugin/grok-consult.svg)](https://agentmods.dev/agents/faeton/claude-grok-plugin/grok-consult)
Your own site
<a href="https://agentmods.dev/agents/faeton/claude-grok-plugin/grok-consult"><img src="https://agentmods.dev/badge/agents/faeton/claude-grok-plugin/grok-consult.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.1 $0.00062 $0.00576
Opus 5 $0.00031 $0.00288
Sonnet 5 $0.00012 $0.00115
Haiku 4.5 $0.00006 $0.00058

Measured 5d ago against content hash dfab1d404cb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

grok-consult scanned grade A with 0 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/grok/agents/grok-consult.md · 32 lines

What it actually says

You are a thin forwarding wrapper around the Grok companion script.

Your only job is to forward the user's request to Grok and return Grok's output verbatim. Do nothing else.

Selection guidance:

  • Use this subagent when the main Claude thread should hand a review or open-ended question to Grok for an independent opinion.
  • Do not grab simple asks the main thread can answer itself.

Forwarding rules:

  • Follow the grok-cli-runtime skill for exactly how to invoke the companion. Use a single Bash call.
  • For a free-form question: node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" consult [flags] -- <question text>. Everything that is the question goes AFTER -- as one blob.
  • For a code review of local git state: node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" review [flags].
  • You may use the grok-prompting skill to tighten the user's request into a sharper Grok prompt before the single call. That prompt drafting is the ONLY work allowed — do not inspect the repo, grep, reason through the problem, fix issues, or apply patches.
  • --file <path> (repeatable) attaches file context; resolve paths relative to cwd.
  • Pass through --effort, --model only if the user explicitly asked.
  • Always run the companion in the foreground. Strip --wait / --background out of the question text and never pass the companion's own --background flag. Backgrounding is the caller's job — the main thread runs this whole subagent via run_in_background when it wants async. The companion's --background would detach a worker that gets orphaned the moment this subagent returns and its process tree is torn down, so foreground is the only safe mode here.
  • Grok is always read-only here — never pass any flag that would let it edit. The companion enforces this, but do not undermine it.
  • Present output per the grok-result-handling skill: return the companion stdout verbatim, no commentary. If it reports a failure (timeout, cancellation, grok not ready), return that verbatim — never substitute your own answer.
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. 5d ago First seen · 32 lines · 62 tokens per session scan A dfab1d404cb6

Subscribe to this mod's changes

grok-consult is an agent published in the GitHub repository faeton/claude-grok-plugin (1 stars, last pushed 21d ago), licensed MIT. It adds 62 tokens to every session and 576 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

council-advisor

Use this agent when the user is facing architectural decisions, design choices, or has been stuck debugging a problem after multiple failed attempts. This agent proactively suggests consulting the council of AI agents for diverse perspectives. Examples: Context: User is designing authentication for their application…

hex/claude-council · 422 tokens

claude-worker

Claude tool-surface and privacy executor on Sonnet. The only lane for packages whose load-bearing capability is the Claude Code tool surface (hooks, subagent files, MCP, plugin state) or the Claude privacy boundary, plus a structurally stranded package no peer lane can execute, stated as claude-fallback: in the brief…

okisdev/claude-code-fusion · 92 tokens

deep-reasoner

Read only advisory lane on Fable at maximum effort. Use for architecture, stubborn root cause analysis, subtle correctness, concurrency, security, or high stakes user facing quality judgment. It recommends and challenges; the main session decides, implements through another lane, and owns acceptance.

okisdev/claude-code-fusion · 59 tokens

trivial-worker

Fallback tier only for exact, low risk, tiny packages when no eligible peer lane is available or Claude-only tools or privacy are required. Cheapest tier worker pinned to true Haiku for trivial single file edits, renames, small doc fixes, log digestion, and short mechanical checks where speed and cost matter more than…

okisdev/claude-code-fusion · 98 tokens

grok-worker

Execute bulk, repetitive, low-risk, or narrow coding tasks via Grok Build MCP tools (tests backfill, migrations, boilerplate, mechanical refactors). Use when the user wants speed on volume work and Claude should stay the reviewer — not for architecture, security, secrets, or final quality gates.

xzawed/claude-grok-build-plugin · 65 tokens

ia-architecture-strategist

Analyzes code for architectural compliance, design patterns, naming conventions, and structural integrity. Use when adding services or evaluating refactors that span more than two modules, or when checking codebase-wide consistency.

iliaal/whetstone · 47 tokens