grok-consult

grok-consult is an agent for Claude Code from faeton/claude-grok-plugin. It costs 62 tokens per session (605 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

Good fit Getting a separate review of local Git changes, asking open-ended technical questions, and passing file context to Grok.

Compare 6 agents from other repositories ↓
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/github.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/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 grok-consult

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00062 $0.00605
Opus 5.5 $0.00025 $0.00242
Sonnet 5.5 $0.00012 $0.00121
Haiku 4.5 $0.00006 $0.00060

Measured 1mo ago against content hash 14c352ff8732, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 with timeout: 600000.
  • 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 --profile, --effort, --model only if the user explicitly asked. If the user asks for a deeper or more thorough pass, use --profile deep.
  • 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. 1mo ago Changed 14c352ff8732
  2. 3mo 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 1mo ago), licensed MIT. It adds 62 tokens to every session and 605 once invoked, about $0.0002 per session on Opus 5.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

grok-consult compared with agents from other repositories

grok-consult next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-consultfaeton/claude-grok-pluginAgent11mo agoMITA62Claude Code
code-reviewernyldn/claude-octopusAgent4.5ktodayMITA19Claude Code
edge-case-explorertestdouble/hanAgent363yesterdayMITA135Claude Code
adversarial-validatortestdouble/hanAgent363yesterdayMITA45Claude Code
code-reviewerNikiforovAll/claude-code-rulesAgent1441mo agoApache-2.0A37Claude Code
claude-deep-reviewrube-de/cc-skillsAgent112d agoMITA71Claude Code
fec-ui-checkerbovinphang/frontend-craftAgent2415d agoMITA89Claude Code