gemini

gemini is an agent for coding agents from roarista/awesome-harness. It costs 295 tokens per session (1,616 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

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.

agentmods
npx agentmods add agents/roarista/awesome-harness/gemini
Clone the repo
git clone --depth 1 https://github.com/roarista/awesome-harness

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 295 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,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00295 $0.01616
Opus 5 $0.00148 $0.00808
Sonnet 5 $0.00059 $0.00323
Haiku 4.5 $0.00030 $0.00162

Measured 4d ago against content hash 25de3b4c0982, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

assistant: "I'll use the gemini agent; Gemini has its own bash/curl tools inside OpenCode for the fetch-and-parse loop."
agents/gemini.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 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> ...]
  • -mgemini-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 · 121 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. 4d 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 9d ago), licensed MIT. It adds 295 tokens to every session and 1,616 once invoked, about $0.0015 per session on Opus 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.