grok-runtime

grok-runtime is a skill for Claude Code from VasiHemanth/grok-build-plugin. It costs 38 tokens per session (904 once invoked), scanned A, original, Apache-2.0.

A runtime helper connects Claude Code or Codex to a Grok companion, including its command-line tool and search function. Grok is another AI assistant that can provide searches, code reviews, or implementation help.

In plain words
What is it for?
Use it to route live searches, review a code change, or delegate a substantial implementation or debugging pass to Grok.
Why use it?
It explains which Grok tool to use for current information, a second code-review opinion, or a larger debugging task.

Skill for Claude Code

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

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 — 1 skill, 7 commands, 1 agent shipped together

Good fit Use it to route live searches, review a code change, or delegate a substantial implementation or debugging pass to Grok.

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 VasiHemanth/grok-build-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 1 skill, 7 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-runtime

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasihemanth/grok-build-plugin/grok-runtime"><img src="https://agentmods.dev/badge/skills/vasihemanth/grok-build-plugin/grok-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 904 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.00038 $0.00904
Opus 5.5 $0.00015 $0.00362
Sonnet 5.5 $0.00008 $0.00181
Haiku 4.5 $0.00004 $0.00090

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

Security

Grade A, and why

grok-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 3mo 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-runtime/SKILL.md · 53 lines

How it starts

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

Grok companion runtime

The Grok plugin wraps the local grok CLI's headless mode (grok -p "<prompt>" --output-format json). Grok manages its own session store under ~/.grok/sessions, so the plugin does not run a separate server or broker.

Always invoke through the companion script so job tracking, prompt shaping, and tool filtering stay consistent:

node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" <subcommand> [flags] [text]

Or, for live search from any MCP-capable agent, call the grok_search tool (auto-wired when the plugin is installed; otherwise npx -y grok-build-x-search-mcp).

When to use Grok (routing guidance for host agents)

Need Prefer
Live X sentiment, breaking news, "what are people saying" grok_search / /grok:search
Current package/version/docs facts beyond training cutoff grok_search / /grok:search
Second opinion code review on a diff /grok:review
Substantial implement/debug pass with write access /grok:rescue or grok:grok-rescue subagent
Trivial local edit the host can do in one step Do not delegate — handle inline

Subcommands

Subcommand Purpose Tool surface
setup [--json] Check install + login (no API call) none
review [--base <ref>] [--background] [--model <m>] [focus] Read-only code review of a git diff denylist of write/shell/MCP/media; --sandbox read-only
task <text> [--background] [--resume-last|--fresh] [--read-only] [--model <m>] [--effort <low|medium|high>] Delegate work; write-capable by default full (or read-only with --read-only)
search <query> [--background] [--model <m>] Live X/web search same safe profile as review (web tools kept)
status [--job <id>] List or show jobs n/a
result [--job <id>] Final output + Grok session id n/a
cancel [--job <id>] Cancel a running job n/a

Tool filtering note (CLI bug)

On grok-cli 0.2.x, grok -p ... --tools <allowlist> often fails session creation when web tools or shell are involved (Requirements unsatisfied / run_terminal_cmd / auto_background_on_timeout). This plugin never uses --tools for search/review; it uses --disallowed-tools + --sandbox read-only + --no-subagents, and disables vendor MCP imports in the child env to prevent recursive grok_search fork-bombs.

Read the full file on GitHub · 53 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. 3mo ago First seen · 53 lines · 38 tokens per session scan A b4ce7a339d80

Subscribe to this mod's changes

grok-runtime is a skill published in the GitHub repository VasiHemanth/grok-build-plugin (29 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 904 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-30.

Related

grok-runtime compared with skills from other repositories

grok-runtime next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-runtimeVasiHemanth/grok-build-pluginSkill292mo agoApache-2.0A38Claude Code
connectgreenpolo/cc-multi-cli-pluginSkill197yesterdayApache-2.0A11Claude Code
mirrord-operatormetalbear-co/skillsSkill31yesterdayMITA124Claude Code
profession-evaluate-skillstrzhao/autopilotSkill338d agoMITA170Claude Code
writer-profession-skillstrzhao/autopilotSkill338d agoMITA102Claude Code
cursor-delegateVanyangyang/cursor-bridgeSkill8412d agoMITA163Claude Code, Codex
autopilot-projectstrzhao/autopilotSkill338d agoMITA39Claude Code