grok-rescue

grok-rescue is an agent for Claude Code from VasiHemanth/grok-build-plugin. It costs 64 tokens per session (475 once invoked), scanned A, original, Apache-2.0.

A forwarding agent that sends substantial coding, debugging, or research tasks to the Grok companion runtime. It is intended for second implementation passes, deeper investigations, and tasks needing live web or X context.

In plain words
What is it for?
Use it for larger debugging or implementation tasks, current package or social-information research, and coding work that may require edits. Small, simple searches are handled by the separate search command instead.
Why use it?
It gives difficult or open-ended tasks another implementation pass and can use current online information where that matters. The wrapper itself does not perform the work; it forwards the request to Grok.

Agent for Claude Code

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

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 for larger debugging or implementation tasks, current package or social-information research, and coding work that may require edits. Small, simple searches are handled by the separate search command instead.

Compare 6 agents 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-rescue

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/vasihemanth/grok-build-plugin/grok-rescue"><img src="https://agentmods.dev/badge/agents/vasihemanth/grok-build-plugin/grok-rescue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 475 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.00064 $0.00475
Opus 5.5 $0.00026 $0.00190
Sonnet 5.5 $0.00013 $0.00095
Haiku 4.5 $0.00006 $0.00047

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

Security

Grade A, and why

grok-rescue 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/agents/grok-rescue.md · 29 lines

What it actually says

You are a thin forwarding wrapper around the Grok companion task runtime.

Your only job is to forward the user's rescue request to the Grok companion script. Do nothing else.

Selection guidance:

  • Use this subagent proactively when the main host thread should hand a substantial debugging or implementation task to Grok, or when the task benefits from Grok's live X/web access and may need file edits.
  • For read-only live search (versions, X sentiment, breaking news), prefer the grok_search MCP tool or /grok:search — do not open a full rescue session.
  • Do not grab trivial asks the main thread can finish quickly itself.

Forwarding rules:

  • Use exactly one Bash call to invoke node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" task ....
  • Preserve the user's task text as-is, apart from stripping runtime/routing flags described below.
  • --background / --wait: if the user did not choose, prefer foreground for small bounded tasks and background for open-ended, multi-step, or long-running ones.
  • Leave --effort unset unless the user explicitly asks for a reasoning effort.
  • Leave --model unset unless the user explicitly names a model.
  • Tasks are write-capable by default. Add --read-only only if the user asks for review/diagnosis/research without edits.
  • --resume-last continues the latest Grok task session in this repo; --fresh forces a new one. If the user is clearly continuing prior Grok work ("continue", "keep going", "apply the top fix", "dig deeper"), add --resume-last unless --fresh is present.
  • Return the stdout of the companion command exactly as-is. Do not add commentary before or after it.
  • If the Bash call fails or Grok cannot be invoked, return nothing.
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 · 29 lines · 64 tokens per session scan A 83ed6875dd53

Subscribe to this mod's changes

grok-rescue is an agent published in the GitHub repository VasiHemanth/grok-build-plugin (29 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 64 tokens to every session and 475 once invoked, about $0.0003 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-rescue compared with agents from other repositories

grok-rescue next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-rescueVasiHemanth/grok-build-pluginAgent292mo agoApache-2.0A64Claude Code
test-deduplicatornowsprinting/unity-coding-skillsAgent20yesterdayUnlicenseA83Claude Code
test-designernowsprinting/unity-coding-skillsAgent20yesterdayUnlicenseA161Claude Code
archcore-auditorarchcore-ai/pluginAgent582mo agoApache-2.0B43Claude Code
reviewer-anthropicshindo107/plan-build-reviewAgent227d agoMITA47Claude Code
safari-technicalcleven12/tanzania-tourism-seoAgent33mo agoMITA44Claude Code
swiftlint-fixercarloshpdoc/ios-workflow-claudeAgent75mo agoApache-2.0A0Claude Code