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.
/plugin marketplace add madciapka/gemini-claude-plugin/plugin install geminiWrote 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.
[](https://agentmods.dev/commands/madciapka/gemini-claude-plugin/rescue-stream)<a href="https://agentmods.dev/commands/madciapka/gemini-claude-plugin/rescue-stream"><img src="https://agentmods.dev/badge/commands/madciapka/gemini-claude-plugin/rescue-stream/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.
<a href="https://agentmods.dev/commands/madciapka/gemini-claude-plugin/rescue-stream"><img src="https://agentmods.dev/badge/commands/madciapka/gemini-claude-plugin/rescue-stream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.00586 |
| Opus 5.5 | $0.00005 | $0.00234 |
| Sonnet 5.5 | $0.00003 | $0.00117 |
| Haiku 4.5 | $0.00001 | $0.00059 |
Grade A, and why
rescue-stream 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 2mo 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.
What it actually says
Use this when the Gemini run is long, open-ended, or write-capable and you want Claude to react to interim progress (file edits, tool calls, partial findings) instead of waiting for one final blob.
Use /gemini:rescue (not this command) when you only need Gemini's final answer as a single artifact.
Raw user request: $ARGUMENTS
Operating contract:
- Run a Bash call to launch the streamed background job:
The companion prints a JSON-ish payload (node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" task --stream "$ARGUMENTS"jobId,eventsFile,logFile). - Capture the
jobIdandeventsFilefrom that output. - Tail the job with
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" tail "$jobId"(run_in_background: true) and read new lines viaBashOutputperiodically. Do not use rawtail -F— it leaks. The companion'stailexits on terminal job status. - Each event line is JSON-line (
stream-json). Commontypevalues includeinit,message,tool_use,error. Treat lines that fail to parse as raw progress text. - The companion's
tailexits on its own when the job iscompleted/failed/cancelled. If it's still running after 30 s with no new lines, surface a stall. - After completion, fetch the final response with:
and return that verbatim, exactly likenode "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" result <jobId>/gemini:rescue.
Argument handling:
- Preserve the user's natural-language task text exactly.
--model,--read-only,--yolo,--sandboxare runtime flags — pass them through.- Do not strip
--stream; the helper requires it. - Default to
--read-onlywhen the user asked for review/diagnosis/research with no explicit request to apply fixes.
Don'ts:
- Do not paraphrase or summarize Gemini's events. Surface them verbatim.
- Do not fall back to
/gemini:rescueif streaming fails — surface the error and stop. - Do not auto-apply fixes from a streamed review. Same rule as
/gemini:rescue.
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.
- 2mo ago First seen · 44 lines · 13 tokens per session scan A e3893aababce
rescue-stream is a command published in the GitHub repository madciapka/gemini-claude-plugin (8 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 586 once invoked, about $0.0001 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-31.
rescue-stream compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rescue-streammadciapka/gemini-claude-plugin | Command | 8 | 6mo ago | MIT | A | 13 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |