grok-cli-runtime

grok-cli-runtime is a skill for Claude Code from faeton/claude-grok-plugin. It costs 19 tokens per session (982 once invoked), scanned A, original, MIT.

A read-only helper for sending questions and code reviews to the Grok companion runtime from Claude Code.

In plain words
What is it for?
It helps a Claude Code subagent request advice, review code, or run an adversarial review while returning the companion's response unchanged.
Why use it?
It avoids manually constructing Grok commands and keeps reviews inside a safety wrapper that blocks changes and other risky actions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; mentions Claude Code.

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 It helps a Claude Code subagent request advice, review code, or run an adversarial review while returning the companion's response unchanged.

Compare 6 skills 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-cli-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/faeton/claude-grok-plugin/grok-cli-runtime/github.svg)](https://agentmods.dev/skills/faeton/claude-grok-plugin/grok-cli-runtime)
Your own site
<a href="https://agentmods.dev/skills/faeton/claude-grok-plugin/grok-cli-runtime"><img src="https://agentmods.dev/badge/skills/faeton/claude-grok-plugin/grok-cli-runtime/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-cli-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/faeton/claude-grok-plugin/grok-cli-runtime"><img src="https://agentmods.dev/badge/skills/faeton/claude-grok-plugin/grok-cli-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 982 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.00019 $0.00982
Opus 5.5 $0.00008 $0.00393
Sonnet 5.5 $0.00004 $0.00196
Haiku 4.5 $0.00002 $0.00098

Measured 1mo ago against content hash 422931be8b0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

grok-cli-runtime 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/skills/grok-cli-runtime/SKILL.md · 34 lines

What it actually says

Grok Runtime

Use this skill only inside the grok:grok-consult subagent (and when reasoning about how grok commands shell out).

Primary helpers (one Bash call each, never combined):

  • node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" consult [flags] -- <question>
  • node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" review [flags]
  • node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" adversarial-review [flags] [focus text]

Execution rules:

  • The subagent is a forwarder, not an orchestrator. Invoke exactly once and return stdout unchanged.
  • Prefer the helper over hand-rolled git, raw grok strings, or any other Bash activity.
  • Always read-only. The companion allowlists grok's read-only tools (read_file, grep, list_dir, plus web search/fetch for consult), removes the mutating and MCP tools, denies Write/Edit/Bash/MCPTool, refuses anything that would need approval (--permission-mode dontAsk), runs grok under the OS read-only sandbox (and stops the run if the sandbox cannot be applied; on Linux without bwrap it runs unsandboxed and the result carries a warning — relay it), disables subagents and memory, and supervises it with idle and wall-clock watchdogs. Never add flags that would re-enable editing, and never call grok directly — that bypasses the safety wrapper.
  • Leave --profile / --effort / --model unset unless the user explicitly asked. The default profile fast (grok-4.7-build-fast, effort low) finishes a typical review in about a minute; thrifty (grok-4.7, low) takes about twice as long on about half the subscription allowance; deep (grok-4.7, medium) is the thorough option when the user asks for a deeper or slower pass (4-15 minutes). GROK_PLUGIN_PROFILE sets the user's default; --model / --effort override any profile. The companion drops effort for models that do not support it.
  • Give the Bash call timeout: 600000 (10 minutes). Without it the Bash tool's default 2-minute cap cuts the run off, and Claude moves it to the background. The companion's own deadline is 8 minutes, so it always finishes and reports inside that window.
  • Shell-quote the question: pass it after -- inside single quotes (escape any embedded ' as '\''), never in double quotes or bare — $(...), backticks and ; in the text would otherwise run in the shell.
  • Always run the companion in the foreground — never pass the companion's --background. Strip --wait/--background from the natural-language task text. 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 detaches its own worker, which gets orphaned the moment this subagent returns and its process tree is torn down (the worker then reconciles to failed / "Worker process exited without finishing"). Foreground is the only safe mode inside the subagent.

Command selection:

  • Free-form question or "what do you think of X" → consult. Put the whole question after --.
  • "Review my changes / this diff / this branch" → review (add --scope / --base if the user specified).
  • "Review, and specifically hunt for " → adversarial-review <X>.
  • Background jobs (created only by the direct /grok:consult / /grok:review slash commands, never by this subagent) are tracked: the user reads them back with /grok:status, /grok:result <id>, /grok:cancel <id>. Do not poll these yourself from the subagent.

Failure handling:

  • If the companion says grok is missing/unauthenticated, return that verbatim and stop (point the user at /grok:setup).
  • If it reports a timeout or stopReason cancellation, return that verbatim. Do not retry silently or answer yourself.
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 · +2 lines 422931be8b0c
  2. 3mo ago First seen · 32 lines · 19 tokens per session scan A c9019f06dc50

Subscribe to this mod's changes

grok-cli-runtime is a skill published in the GitHub repository faeton/claude-grok-plugin (1 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 982 once invoked, about $0.0001 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-cli-runtime compared with skills from other repositories

grok-cli-runtime next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-cli-runtimefaeton/claude-grok-pluginSkill11mo agoMITA19Claude Code
grok-promptingdavit-khaburdzania/grok-plugin-ccSkill13mo agoApache-2.0A31Claude Code
grok-result-handlingdavit-khaburdzania/grok-plugin-ccSkill13mo agoApache-2.0A18Claude Code
brooks-sweephyhmrright/brooks-lintSkill1.6ktodayMITA178Claude Code
critical-code-reviewerposit-dev/skillsSkill57820d agoMITA67Claude Code
pr-reviewnitinjain999/platform-skillsSkill742d agoApache-2.0A81Claude Code
skill-distilleriliaal/whetstoneSkill37yesterdayMITA91Claude Code