grok-cli-runtime

grok-cli-runtime is a skill for Claude Code from bigu1/grok-plugin-codex. It costs 19 tokens per session (1,159 once invoked), scanned A, a copy of grok-cli-runtime, Apache-2.0.

An internal helper for calling the Grok companion runtime from Codex, with options for project folders, background jobs, planning, and permissions.

In plain words
What is it for?
Use it when Codex needs to start, monitor, retrieve, or cancel Grok runtime jobs.
Why use it?
It provides a defined way to run Grok tasks in the intended workspace and manage several running jobs.

Skill for Claude Code

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

Good fit Use it when Codex needs to start, monitor, retrieve, or cancel Grok runtime jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bigu1/grok-plugin-codex/grok-cli-runtime
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.

Any agent
npx skills add bigu1/grok-plugin-codex --skill grok-cli-runtime
Clone the repo
git clone --depth 1 https://github.com/bigu1/grok-plugin-codex

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 grok-cli-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/bigu1/grok-plugin-codex/grok-cli-runtime/github.svg)](https://agentmods.dev/skills/bigu1/grok-plugin-codex/grok-cli-runtime)
Your own site
<a href="https://agentmods.dev/skills/bigu1/grok-plugin-codex/grok-cli-runtime"><img src="https://agentmods.dev/badge/skills/bigu1/grok-plugin-codex/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/bigu1/grok-plugin-codex/grok-cli-runtime"><img src="https://agentmods.dev/badge/skills/bigu1/grok-plugin-codex/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 1,159 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 89% copy Near-identical to another mod 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.01159
Opus 5.5 $0.00008 $0.00464
Sonnet 5.5 $0.00004 $0.00232
Haiku 4.5 $0.00002 $0.00116

Measured 1mo ago against content hash 2f7331474918, 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.

Origin

This is a copy

89% identical to grok-cli-runtime — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/grok/skills/grok-cli-runtime/SKILL.md · 102 lines

How it starts

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

Grok Runtime

Use through the Grok MCP tools. If MCP is unavailable, call the companion directly with node plugins/grok/scripts/grok-companion.mjs <command> ....

Recommended Grok CLI version: ≥ 1.0.5 (minimum still 0.2.118; flags are capability-gated).

Workspace

Installed Codex plugin MCP servers start from the plugin cache. Pass cwd with the active project directory on every Grok MCP call so Grok inspects, edits, and stores artifacts in the intended workspace rather than the cached plugin directory. Direct companion calls can use --cwd <path>.

Concurrency

  • Multiple companion jobs may run at once. There is no global single-agent lock.
  • Prefer background: true or --background when a Codex turn is launching more than one Grok job.
  • Each MCP call should make exactly one companion invocation.
  • Parallelism = multiple background companion jobs, not a serialized queue.
  • When several jobs are running, always pass job ids to status / result / cancel.

Control flags (most write/plan commands)

MCP input keys map to companion flags:

MCP property Companion flag
sandbox --sandbox
planMode --plan
permissionMode --permission-mode
agent --agent
noSubagents --no-subagents
memory / noMemory --memory / --no-memory
allow / deny --allow / --deny (repeatable)
disableWebSearch --disable-web-search
forkSession --fork-session
maxTurns --max-turns

CLI posture

  • Prefer denylist (--disallowed-tools) over tools allowlist (Grok session-create bugs).
  • Media: no yolo / no tools allowlist.
  • --dry-run / --validate-only / babysit list: read-only (no yolo).
  • Write-capable default for rescue/design/execute/babysit add|check|remove.

Depth notes

  • grok_execute_plan with latest=true resolves newest .grok-designs/*.md.
  • Design/workflow/plan/document jobs harvest copies into .grok-designs/ / .grok-workflows/ / .grok-plans/ / .grok-docs/.
  • Review postPending=true: skips empty findings; empty/oversize diffs fail closed and save findings under .grok-reviews/.
  • Plan results prefer harvested plan.md body over narration.
  • Stop-gate uses sandbox read-only + denylist (no yolo).

Read the full file on GitHub · 102 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. 1mo ago First seen · 102 lines · 19 tokens per session scan A 2f7331474918

Subscribe to this mod's changes

grok-cli-runtime is a skill published in the GitHub repository bigu1/grok-plugin-codex (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 1,159 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to grok-cli-runtime, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

gpt-5-4-prompting

Internal guidance for composing Codex and GPT-5.4 prompts for coding, review, diagnosis, and research tasks inside the Grok Codex plugin.

jinxlzc/grok-codex-plugin · 40 tokens

codex-result-handling

Internal guidance for presenting Codex helper output back to the user.

jinxlzc/grok-codex-plugin · 18 tokens

grok-subagent

Delegate bounded coding, investigation, review, implementation, and real-time X/Reddit/web research tasks from Codex to the locally authenticated Grok Build CLI. Use when the user asks Codex to consult Grok, use Grok as a subagent, compare independent model conclusions, spend SuperGrok quota on useful project work…

Walvez/grok-subagent · 112 tokens

delegate-to-grok

Delegate coding, repository inspection, comparisons, web research, and public X search from Codex to the locally installed Grok Build CLI on Windows. Use when a user asks to run or consult Grok, resume Grok Build authentication, compare Codex and Grok, inspect or modify a project with Grok, or perform public X…

Sunwood-ai-labs/delegate-to-grok-skill · 74 tokens

grok-prompting

Internal guidance for composing Grok Build prompts for coding, review, diagnosis, and research tasks inside the Grok Claude Code plugin.

davit-khaburdzania/grok-plugin-cc · 31 tokens

grok-bridge

Delegate any substantial local task to Grok Build as one durable logical job, in a repository or a non-repository workspace, and retrieve its genuine final result across turn, token, context, and caller-session boundaries. Use when the user asks for Grok/Grok Build, an independent builder/tester/reviewer/researcher…

conrad85/grok-bridge · 90 tokens