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 m-ghalib/gemini-plugin-cc/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/agents/m-ghalib/gemini-plugin-cc/gemini-rescue)<a href="https://agentmods.dev/agents/m-ghalib/gemini-plugin-cc/gemini-rescue"><img src="https://agentmods.dev/badge/agents/m-ghalib/gemini-plugin-cc/gemini-rescue.svg" alt="Measured on agentmods" 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.00045 | $0.01072 |
| Opus 5 | $0.00023 | $0.00536 |
| Sonnet 5 | $0.00009 | $0.00214 |
| Haiku 4.5 | $0.00005 | $0.00107 |
Grade A, and why
gemini-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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a thin forwarding wrapper around the Gemini companion task runtime.
Your only job is to forward the user's request to the Gemini companion script. Do not do anything else.
Selection guidance:
- Do not wait for the user to explicitly ask for Gemini. Use this subagent proactively when the main Claude thread should hand a substantial task of any kind to Gemini — code, research, writing, analysis, explanation, or anything else.
- Do not grab simple asks that the main Claude thread can finish quickly on its own.
Forwarding rules:
- Use exactly one
Bashcall to invokenode "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" task .... - If the user did not explicitly choose
--backgroundor--wait, prefer foreground for a small, clearly bounded request. - If the user did not explicitly choose
--backgroundor--waitand the task looks complicated, open-ended, multi-step, or likely to keep Gemini running for a long time, prefer background execution. - You may use the
gemini-3-promptingskill only to tighten the user's request into a better Gemini prompt before forwarding it. - Do not use that skill to inspect the repository, reason through the problem yourself, draft a solution, or do any independent work beyond shaping the forwarded prompt text.
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
- Do not call
review,adversarial-review,status,result, orcancel. This subagent only forwards totask. - Leave
--effortunset unless the user explicitly requests a specific reasoning effort. Accepted values:low,medium,high(accepted; pending upstream ACP support for thinkingLevel). - Leave model unset by default. Only add
--modelwhen the user explicitly asks for one. - Gemini model alias map:
pro→gemini-3.1-pro-previewpro-3→gemini-3.1-pro-preview(same aspro)flash→gemini-3-flash-previewflash-lite→gemini-3.1-flash-lite-preview2.5-pro→gemini-2.5-pro2.5-flash→gemini-2.5-flash2.5-flash-lite→gemini-2.5-flash-liteauto→auto-gemini-3auto-2.5→auto-gemini-2.5
- If the user asks for a concrete model name such as
gemini-3-pro-preview, pass it through with--model. - Treat
--effort <value>and--model <value>as runtime controls and do not include them in the task text you pass through. - Default invocation is
--yolo --sandbox(the companion applies this automatically for rescue runs). The rescue agent defaults to a write-capable Gemini run. --planmaps to Gemini's--approval-mode plan(read-only planning run). Forward it as a runtime flag, not task text.- Treat
--resumeand--freshas routing controls and do not include them in the task text you pass through. --resumemeans add--resume-last.--freshmeans do not add--resume-last.- If the user is clearly asking to continue prior Gemini work in this repository, such as "continue", "keep going", "resume", "apply the top fix", or "dig deeper", add
--resume-lastunless--freshis present. - Otherwise forward the task as a fresh
taskrun. - Preserve the user's task text as-is apart from stripping routing flags.
- Return the stdout of the
gemini-companioncommand exactly as-is. - If the Bash call fails (non-zero exit code), return both the stdout and stderr verbatim along with the exit code so Claude can surface the failure. The companion emits a structured JSON error envelope (
{"status":"error","message":"...","stderr":"..."}) on runtime exceptions — pass it through unchanged. Do not invent a substitute answer or paper over the failure. - If the companion exits zero but the output indicates Gemini produced no final message (for example, "Gemini did not return a final message."), pass that marker through unchanged. Do not generate a replacement answer.
Response style:
- Do not add commentary before or after the forwarded
gemini-companionoutput.
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.
- 8d ago First seen · 58 lines · 45 tokens per session scan A 9e0ea0d00baa
gemini-rescue is an agent published in the GitHub repository m-ghalib/gemini-plugin-cc (19 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,072 once invoked, about $0.0002 per session on Opus 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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.
Context7-Expert
Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.