gemini

gemini is a command for Claude Code from chrisblattman/claudeblattman. It costs 25 tokens per session (657 once invoked), scanned C, a copy of codex, MIT.

A one-question second-opinion command that sends a request to Gemini, Google's AI assistant, and returns its answer. It is intended for questions involving very long documents and does not edit files.

In plain words
What is it for?
Use it to ask Gemini about a question or long document when the content is safe to share and you approve sending it to another AI service.
Why use it?
It gives you another AI-generated view when one answer may not be enough, while requiring a privacy check and your confirmation before sending the request.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Gemini CLI.

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 starter-kit plugin — 3 skills, 2 commands, 4 agents shipped together

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 chrisblattman/claudeblattman
Claude Code
/plugin install starter-kit

Made for: Claude Code.

Or install starter-kit, the plugin that ships this one along with the rest of its 3 skills, 2 commands, 4 agents.

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 gemini

README.md
[![agentmods](https://agentmods.dev/badge/commands/chrisblattman/claudeblattman/gemini.svg)](https://agentmods.dev/commands/chrisblattman/claudeblattman/gemini)
Your own site
<a href="https://agentmods.dev/commands/chrisblattman/claudeblattman/gemini"><img src="https://agentmods.dev/badge/commands/chrisblattman/claudeblattman/gemini.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 657 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin 89% copy Near-identical to another mod 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.00025 $0.00657
Opus 5 $0.00013 $0.00329
Sonnet 5 $0.00005 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured 6d ago against content hash 1e2a2083a822, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

gemini scanned grade C with 1 finding 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 6d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

10. **Clean up.** Remove the temp directory (`rm -rf <rundir>`).
Origin

This is a copy

89% identical to codex — 26 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/starter-kit/commands/gemini.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/gemini — one-shot Gemini query

Send the user's request to the Gemini CLI and relay the answer. One question, one reply — Gemini edits nothing.

Steps

  1. Privacy check (required, every time). Sending this question transmits its content to another AI service. If the request or any pasted content includes confidential records, personal contact details, research-participant or human-subjects data, unpublished sensitive material, or anything the user wouldn't paste into a public website — do NOT send it. Explain why in one sentence and offer either a Claude-only answer or a redacted version the user approves first.

  2. Explicit send confirmation (required, every time). If the privacy check passes, ask: "Send this prompt to Gemini for a second opinion? (yes/no)" Proceed only if the user answers yes. If they answer no or do not answer clearly, stop and offer a Claude-only answer.

  3. Check it's enabled. Read ~/.claude/starter-kit/engines.json. If the file is missing, unparseable, or gemini.available is not true, print exactly this and stop:

    Running on Claude only — that's the normal setup and everything here works. (Have ChatGPT or Gemini? Run /kit-setup to plug them in.)

  4. Re-check the binary. Run command -v gemini. Not found → print the same note and stop.

  5. Make a private workspace. Run mktemp -d once and use the directory it prints (below: <rundir>) for both files. Never use predictable fixed paths like /tmp/gemini-prompt.txt.

  6. Write the prompt to <rundir>/prompt.txt with the Write tool (NOT echo or a heredoc — shell quoting mangles multi-line prompts). Content: the user's request, verbatim. If empty, ask one line: "What should I ask Gemini?"

  7. Run the wrapper (it picks the best available model and falls back automatically — never call gemini -p directly):

    bash "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-run.sh" <rundir>/reply.txt < <rundir>/prompt.txt
    

    Run in the foreground and wait.

Read the full file on GitHub · 39 lines

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. 6d ago First seen · 39 lines · 25 tokens per session scan C 1e2a2083a822

Subscribe to this mod's changes

gemini is a command published in the GitHub repository chrisblattman/claudeblattman (453 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 657 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It is 89% identical to codex, differing in 26 lines, and is treated as a copy.