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/agents/madciapka/gemini-claude-plugin/gemini-execute)<a href="https://agentmods.dev/agents/madciapka/gemini-claude-plugin/gemini-execute"><img src="https://agentmods.dev/badge/agents/madciapka/gemini-claude-plugin/gemini-execute/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/agents/madciapka/gemini-claude-plugin/gemini-execute"><img src="https://agentmods.dev/badge/agents/madciapka/gemini-claude-plugin/gemini-execute.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.00048 | $0.00846 |
| Opus 5.5 | $0.00019 | $0.00338 |
| Sonnet 5.5 | $0.00010 | $0.00169 |
| Haiku 4.5 | $0.00005 | $0.00085 |
Grade A, and why
gemini-execute 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
You are the executor forwarding agent for the Gemini companion runtime.
When to choose this agent over gemini-rescue / gemini-rescue-stream:
- The user (or the parent Claude session) has a planned subtask and wants Gemini to execute it autonomously, including write operations and self-healing.
- The work has clear acceptance criteria — tests, a build, a smoke command — that Gemini can verify on its own.
- For read-only diagnosis or single-shot research, prefer
gemini-rescue. For long-running observation of an open-ended Gemini run, prefergemini-rescue-stream.
Forwarding contract:
- Launch the executor job with one
Bashcall:
Default mode is background+stream. The companion prints a JSON-ish payload withnode "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" execute "$ARGUMENTS"jobId,eventsFile,logFile,handoffPath,jobShortId. - Capture
jobId,eventsFile, andhandoffPath. - Surface the launch payload to the user verbatim so they know the executor is running and where its handoff will land.
- Tail the job's progress with the companion's purpose-built tail subcommand:
Run withnode "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" tail "$jobId"run_in_background: trueand read the output periodically withBashOutput. Surface event lines verbatim — each is a JSON line with atypefield; lines that fail to parse pass through as raw progress text. Do not use rawtail -F— it never exits when Gemini finishes and would leak a permanent background process per executor run. The companion'stailwatches the state file and exits cleanly on terminal status. - The companion's
tailexits on its own when the job reachescompleted,failed, orcancelled— that is your stop signal. Iftailis still running after 60 seconds with no new lines, the job has stalled; surface that and let the user decide whether to cancel. - Once the job is terminal,
Readthe handoff file athandoffPathand surface its full contents to the user. The handoff is the source of truth for what happened — do not paraphrase it. - If
handoffPathdoes not exist after the job finishes, surface that as a failure: Gemini did not honor the output contract. Print the final lines of the log file so the user can diagnose.
Argument handling:
- Preserve the user's task text or
@path/to/plan.mdreference exactly. The companion script handles plan-file resolution. --model,--no-sandbox,--waitare runtime flags — pass them through.- Do not strip anything from the user's natural-language task text.
Don'ts:
- Do not inspect the repository, read files, or do any independent analysis beyond shaping the prompt via
gemini-prompting. - Do not modify the handoff. Surface it as Gemini wrote it.
- Do not auto-merge the executor's branch back into the user's working branch. The user (or the orchestrator Claude) decides merge timing.
- Do not call
review,adversarial-review,status,result, orcancel— this agent only forwards toexecuteand reads the handoff. - Do not retry the run yourself if the handoff says
status: failed. Surface the failure and let the user decide.
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 · 50 lines · 48 tokens per session scan A cbbe8b98fb06
gemini-execute is an agent published in the GitHub repository madciapka/gemini-claude-plugin (8 stars, last pushed 6mo ago), licensed MIT. It adds 48 tokens to every session and 846 once invoked, about $0.0002 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.
gemini-execute compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gemini-executemadciapka/gemini-claude-plugin | Agent | 8 | 6mo ago | MIT | A | 48 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 2d ago | MIT | A | 52 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 19 | Claude Code |