# Grok CLI runtime

> Grok CLI runtime is an open-source agent skill for developer tools. Lets a Claude Code subagent hand rescue tasks to the Grok companion runtime. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/LovelaceLoom/grok-plugin-cc/tree/main/plugins/grok/skills/grok-cli-runtime
- **Repository:** https://github.com/lovelaceloom/grok-plugin-cc
- **GitHub stars:** 5
- **License:** Apache-2.0
- **Skill name:** grok-cli-runtime
- **Collection:** https://github.com/LovelaceLoom/grok-plugin-cc
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/LovelaceLoom/grok-plugin-cc/tree/HEAD/plugins/grok/skills/grok-cli-runtime)
- [License: Apache-2.0](https://github.com/LovelaceLoom/grok-plugin-cc/tree/HEAD/plugins/grok/skills/grok-cli-runtime)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Grok rescue](https://ai-powered.com/skills/grok-rescue): Grok rescue is an open-source agent skill for developer tools.
- [Grok result handling](https://ai-powered.com/skills/grok-result-handling): Grok result handling is an open-source agent skill for developer tools.
- [Grok prompting](https://ai-powered.com/skills/grok-prompting): Grok prompting is an open-source agent skill for ai models and llm tooling.
- [Grok fan out](https://ai-powered.com/skills/grok-fan-out): Grok fan out is an open-source agent skill for developer tools.
- [Grok bot](https://ai-powered.com/skills/grok-bot-adamanz): Grok bot is an open-source agent skill for developer tools.
- [Breezing](https://ai-powered.com/skills/breezing-chachamaru127-2): Breezing is an open-source agent skill for developer tools.
- [Autonomous agent harness](https://ai-powered.com/skills/autonomous-agent-harness): Autonomous agent harness is an open-source agent skill for developer tools.
- [Setup matt pocock skills](https://ai-powered.com/skills/setup-matt-pocock-skills): Setup matt pocock skills is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/grok-cli-runtime
