Skip to content
Skill

Grok CLI runtime

Lets a Claude Code subagent hand rescue tasks to the Grok companion runtime

Grok CLI runtime is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Grok CLI runtime

This skill is an internal contract for the grok:grok-rescue subagent in the Grok plugin for Claude Code. It tells the subagent to send each rescue request to a single task call of the companion script, passing the user's text through unchanged and returning the output as-is. The subagent acts only as a forwarder: it does not inspect the repository, poll status or summarize results on its own.

The skill sets the safety defaults for that handoff. Work is read-only unless the user explicitly asks for code changes with a write flag, which the environment must also allow. Model and effort settings are left unset unless requested, and routing flags such as background, wait, timeout, session id and resume are handled as described. It also forbids calling the setup, review, status, cancel and purge commands from the rescue subagent.

It expects Node.js to run the companion script from the plugin root, a Grok CLI setup available to that script, and the Claude Code plugin environment. It is not meant to be invoked directly by a user.

When your agent uses it

Internal helper contract for calling the grok-companion runtime from Claude Code

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the grok plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add LovelaceLoom/grok-plugin-cc
/plugin install grok@grok-plugin-cc

Or copy only this skill to ~/.claude/skills/grok-cli-runtime:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/grok-cli-runtime &&
cp -R "$tmp/plugins/grok/skills/grok-cli-runtime" ~/.claude/skills/grok-cli-runtime &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/grok-cli-runtime inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/grok-cli-runtime to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/grok-cli-runtime &&
cp -R "$tmp/plugins/grok/skills/grok-cli-runtime" ~/.agents/skills/grok-cli-runtime &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/grok-cli-runtime inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/grok-cli-runtime to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/grok-cli-runtime &&
cp -R "$tmp/plugins/grok/skills/grok-cli-runtime" ~/.cursor/skills/grok-cli-runtime &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/grok-cli-runtime inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/LovelaceLoom/grok-plugin-cc.git --path plugins/grok/skills/grok-cli-runtime

Or copy the folder to ~/.gemini/skills/grok-cli-runtime yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/grok-cli-runtime:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/grok-cli-runtime &&
cp -R "$tmp/plugins/grok/skills/grok-cli-runtime" ~/.copilot/skills/grok-cli-runtime &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/grok-cli-runtime inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.git

Then copy grok-plugin-cc/plugins/grok/skills/grok-cli-runtime into your agent's skills folder as grok-cli-runtime. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Single task handoff
Routes each rescue request through one call to the companion task helper.
Read-only by default
Keeps Grok in read-only mode unless the user explicitly asks for code changes.
Write gating
Requires an environment variable before write mode runs and surfaces refusals to the user.
Session and resume control
Passes through session identifiers and resume or continue flags to continue earlier threads.
Timeout handling
Accepts explicit durations and reports timeout exits instead of retrying.

Good for

  • Ask Grok to diagnose a bug from inside Claude Code
  • Have Grok draft a plan for a refactor without changing files
  • Continue an earlier Grok rescue thread in a new session
  • Request a Grok fix that writes code after explicit approval

Grok CLI runtime FAQ

Can I invoke Grok CLI runtime directly?

It is marked as not user-invocable and is meant to be used only inside the grok:grok-rescue subagent.

Does Grok CLI runtime change files by default?

No. Grok runs read-only unless the user explicitly asks for code changes and the write environment variable is set.

How do I resume a previous rescue thread?

Pass a session identifier or a resume flag in the named form with an equals sign, since the space-separated form is not parsed as a named resume.

How do I install Grok CLI runtime in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/grok-cli-runtime to use it in all your projects, or to .claude/skills/grok-cli-runtime in one project. Or install the grok plugin, which includes it: /plugin marketplace add LovelaceLoom/grok-plugin-cc, then /plugin install grok@grok-plugin-cc.

Does Grok CLI runtime run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Grok CLI runtime?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Grok CLI runtime?

The closest alternatives to Grok CLI runtime are Grok rescue, Grok result handling, Grok prompting, Grok fan out and Grok bot.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from LovelaceLoom/grok-plugin-cc

  1. Sends a one-off question to xAI Grok and returns its answer unchanged

    • Open source
    • 5 GitHub stars
    • AI models and LLM tooling
  2. Runs parallel Grok analyses from several expert angles and merges them into one verdict

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates images from text prompts through xAI Grok's imagine builtin

    • Open source
    • 5 GitHub stars
    • Design and media
  4. Guides an agent in writing focused prompts for Grok coding, review and research tasks

    • Open source
    • 5 GitHub stars
    • AI models and LLM tooling
  5. Hands a long coding task or root-cause investigation to xAI Grok via a companion script

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Runs deep web-grounded research on a topic through xAI Grok with self-verification

    • Open source
    • 5 GitHub stars
    • Web search and scraping