
Grok rescue
Hands a long coding task or root-cause investigation to xAI Grok via a companion script
Grok rescue is an open-source agent skill for developer tools. It is available on Claude Code and Codex.
- Scripts
- None
- Platforms
- Claude Code, Codex
- GitHub stars
- 5
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Grok rescue
This skill forwards a substantial, open-ended coding job to xAI Grok through a companion script's task subcommand. The agent runs one shell command that starts Grok in its agentic mode, which can read files, optionally write them, search the web and reason over several turns, then returns the streamed output unchanged. Write mode is off by default and only turned on when the user explicitly asks for code changes and the GROK_PLUGIN_ALLOW_WRITE environment variable is set as a safety gate.
The skill also covers session handling and timeouts. It can resume a prior session by id or continue the latest one for the current directory, and it accepts model and effort flags only when the user names them. Rescue runs have no default time limit, and a timeout is reported back to the user rather than retried with a longer window. In Claude Code the work can run in a background subagent, while Codex CLI runs it in the foreground.
The skill expects the Grok companion plugin to be installed and authenticated with a grok login or an XAI_API_KEY. It is meant to act as a pure forwarder: the agent passes Grok's output along without inspecting files, polling status or adding its own follow-up work.
When your agent uses it
Delegate a long-form coding task, root-cause investigation, multi-file refactor, or open-ended fix to xAI Grok via the companion's `task` subcommand. Use when the work is too large or specialized to handle inline and benefits from Grok's distinct training (live web search, code-focused models, 512K context).
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 (3 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-ccOr copy only this skill to ~/.claude/skills/grok-rescue:
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-rescue &&
cp -R "$tmp/plugins/grok/skills/grok-rescue" ~/.claude/skills/grok-rescue &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/grok-rescue inside it instead.
Copy the skill folder to ~/.agents/skills/grok-rescue 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-rescue &&
cp -R "$tmp/plugins/grok/skills/grok-rescue" ~/.agents/skills/grok-rescue &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/grok-rescue inside it instead.
Copy the skill folder to ~/.cursor/skills/grok-rescue 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-rescue &&
cp -R "$tmp/plugins/grok/skills/grok-rescue" ~/.cursor/skills/grok-rescue &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/grok-rescue inside it instead.
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-rescueOr copy the folder to ~/.gemini/skills/grok-rescue yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/grok-rescue:
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-rescue &&
cp -R "$tmp/plugins/grok/skills/grok-rescue" ~/.copilot/skills/grok-rescue &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/grok-rescue inside it instead.
Get the folder:
git clone --depth 1 https://github.com/LovelaceLoom/grok-plugin-cc.gitThen copy grok-plugin-cc/plugins/grok/skills/grok-rescue into your agent's skills folder as grok-rescue. Agents that support SKILL.md read one folder per skill.
What it does
- Delegated long-form tasks
- Hands multi-file refactors, audits and open-ended fixes to Grok in one command.
- Root-cause investigation
- Sends regressions and failing tests to Grok for diagnosis and a proposed fix.
- Opt-in write mode
- File edits happen only when the user asks for changes and the environment gate is set.
- Session resume
- Resumes a specific session by id or continues the latest one for the working directory.
- Timeout control
- Accepts duration limits, with rescue runs unbounded by default.
- Verbatim output forwarding
- Returns Grok's stdout unchanged, without summarizing or polling.
Good for
- Investigate why a test started failing and propose a fix
- Refactor a module that spans several files
- Audit a codebase directory for security issues
- Get a second implementation pass from a different model family
- Continue an earlier Grok session on the same project
Grok rescue FAQ
When does Grok rescue trigger?
When a task is large or specialized enough to handle inline, such as multi-file work or root-cause investigation, or when the user asks to delegate to Grok.
Can Grok rescue edit my files by default?
No. Read-only is the default. Write mode needs the user to request code changes and the GROK_PLUGIN_ALLOW_WRITE=1 environment variable to be set.
What does Grok rescue need installed?
The Grok companion script from the grok-plugin-cc plugin, plus authentication through grok login or the XAI_API_KEY variable.
Does Grok rescue work with every AI client?
The content describes Claude Code and Codex CLI use. Background mode is Claude Code only.
How do I install Grok rescue in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/grok-rescue to use it in all your projects, or to .claude/skills/grok-rescue 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 rescue 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 rescue?
Claude Code and Codex. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Grok rescue?
The closest alternatives to Grok rescue are Grok CLI runtime, 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

Sends a one-off question to xAI Grok and returns its answer unchanged
- Open source
- 5 GitHub stars
- AI models and LLM tooling

Lets a Claude Code subagent hand rescue tasks to the Grok companion runtime
- Open source
- 5 GitHub stars
- Developer tools

Runs parallel Grok analyses from several expert angles and merges them into one verdict
- Open source
- 5 GitHub stars
- Developer tools

Generates images from text prompts through xAI Grok's imagine builtin
- Open source
- 5 GitHub stars
- Design and media

Guides an agent in writing focused prompts for Grok coding, review and research tasks
- Open source
- 5 GitHub stars
- AI models and LLM tooling

Runs deep web-grounded research on a topic through xAI Grok with self-verification
- Open source
- 5 GitHub stars
- Web search and scraping

