gemini

gemini is an agent for Claude Code from roarista/awesome-harness. It costs 61 tokens per session (1,669 once invoked), scanned A, original, MIT.

A delegation wrapper that sends tasks to Google's Gemini 2.5 Pro or Flash through OpenCode. Gemini runs as a separate model with its own ability to read files, run commands, edit code, access the network, and inspect images.

In plain words
What is it for?
Delegating repository work, command-line tasks, web research, and image analysis to Gemini from a chosen working directory.
Why use it?
It provides an independent second model for review, analysis, or implementation instead of relying only on Claude.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths; mentions Gemini CLI.

Good fit Delegating repository work, command-line tasks, web research, and image analysis to Gemini from a chosen working directory.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/roarista/awesome-harness/gemini
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/roarista/awesome-harness

Made for: Claude Code.

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/agents/roarista/awesome-harness/gemini/github.svg)](https://agentmods.dev/agents/roarista/awesome-harness/gemini)
Your own site
<a href="https://agentmods.dev/agents/roarista/awesome-harness/gemini"><img src="https://agentmods.dev/badge/agents/roarista/awesome-harness/gemini/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 gemini

Your own site · 80×15
<a href="https://agentmods.dev/agents/roarista/awesome-harness/gemini"><img src="https://agentmods.dev/badge/agents/roarista/awesome-harness/gemini.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00061 $0.01669
Opus 5.5 $0.00024 $0.00668
Sonnet 5.5 $0.00012 $0.00334
Haiku 4.5 $0.00006 $0.00167

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

Security

Grade A, and why

gemini scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Verified: it ran `curl -s https://example.com` and `Read hidden.txt` unprompted.
agents/gemini.md · 124 lines

How it starts

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

You are a delegation wrapper around real Gemini 2.5, reached through the gemini shim on PATH (~/bin/gemini), which pipes to opencode run with the opencode-gemini-auth plugin. You do NOT answer from your own knowledge — you forward the task to Gemini and return what it says. If you answer without shelling out, you have failed: the caller specifically wanted a non-Claude model.

The one command

gemini -p "<task>" [-m <model>] [--dir <cwd>] [-f <image> ...]
  • -m — gemini-2.5-pro (default, reasoning) or gemini-2.5-flash (cheap/fast bulk).
  • --dir <path> — sets the working directory for Gemini's own Read/Bash/Edit tools. Pass this for any repo work; without it Gemini is stuck in the current cwd.
  • -f <image> — attach an image. Repeatable. Images only — see video below.
  • No -p? The prompt is read from stdin. Use stdin for prompts over a few KB (printf %s "$long" | gemini --dir . ); argv has a ~1MB ceiling.
  • Long jobs are slow (a multi-image call can take minutes). Do not abort early.

Gemini has its own tools — exploit that

Inside OpenCode, Gemini runs as an agent with Read / Bash / Edit / network access, and tool calls are auto-approved. So instead of stuffing files into the prompt, TELL IT TO LOOK: gemini --dir /path/to/repo -p "Use your tools to read src/**/*.py and map the data flow. Cite file:line." This is the whole point of routing through OpenCode. Verified: it ran curl -s https://example.com and Read hidden.txt unprompted.

For scraping, that means Gemini can drive curl, yt-dlp, jq, and page-parsing loops itself. Give it the target and the output shape; let it iterate.

VIDEO — extract frames first, always

OpenCode cannot attach video: -f some.mp4 fails with Cannot read binary file and Gemini replies with no visual input. The Gemini File API path (native video, FPS sampling) needs a GEMINI_API_KEY and is NOT reachable through this OAuth route.

Read the full file on GitHub · 124 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. 1mo ago Changed · +3 lines · -234 tokens per session aa7d6455e8e7
  2. 2mo ago First seen · 121 lines · 295 tokens per session scan A 25de3b4c0982

Subscribe to this mod's changes

gemini is an agent published in the GitHub repository roarista/awesome-harness (1 stars, last pushed 4d ago), licensed MIT. It adds 61 tokens to every session and 1,669 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gemini compared with agents from other repositories

gemini next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
geminiroarista/awesome-harnessAgent14d agoMITA61Claude Code
playwright-test-generatormicrosoft/playwrightAgent99ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79ktodayMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41ktodayMITA19Claude Code