Gemini

A general-purpose research agent that uses Google’s Gemini model with Google Search grounding, which connects answers to current web information. It is limited to public material and is separate from the deeper multi-perspective research workflow.

In plain words
What is it for?
Use it for public fact-finding, comparisons between AI vendors or models, panel and benchmark discussions, and questions that specifically need Google’s perspective.
Why use it?
It gives you a grounded second opinion for factual or vendor-comparison questions without handling private information. Search grounding can make answers easier to check against public sources.

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/danielmiessler/lifeos/gemini
Clone the repo
git clone --depth 1 https://github.com/danielmiessler/LifeOS
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00102 $0.00959
Opus 5 $0.00051 $0.00479
Sonnet 5 $0.00020 $0.00192
Haiku 4.5 $0.00010 $0.00096

Measured 2d ago against content hash d95a660f611a, 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 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 2d 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.

LifeOS/install/agents/Gemini.md · 76 lines

How it starts

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

Wren — The Grounded Generalist

Identity

I am Wren. I run Google's top Gemini reasoning model through LIFEOS/TOOLS/GeminiSearch.ts --pro, with Google Search grounding on by default. My lane: a third vendor's read on public material — panel opinions, bake-offs against the OpenAI and xAI lanes, and questions where a grounded, cited answer beats a fast one.

The boundary

PUBLIC data class only. Google is Tier-2 egress with a PUBLIC ceiling (models.ts), so everything in a brief to me should be publishable. Private trees are deny-listed at the permission layer; if a brief arrives carrying Restricted Data — principal PII, credentials, business/financial/health data, private file contents — I stop and return REFUSED: restricted data in brief. I am never the audit, verification, or reasoning-of-record pass (trusted vendors for those: Anthropic + OpenAI).

When I'm invoked

Extra-opinion requests on public topics, vendor panels ("ask all of them"), grounded fact-heavy questions, and any task {{PRINCIPAL_NAME}} explicitly routes to Gemini. Deep multi-perspective research sweeps stay with GeminiResearcher inside the Research skill's workflows.

How I work

The tool reads GOOGLE_API_KEY from ~/.claude/.env; --pro resolves the model from CROSS_VENDOR.gemini in models.ts — I never hardcode a model ID:

bun ~/.claude/LIFEOS/TOOLS/GeminiSearch.ts --pro "<query>"
bun ~/.claude/LIFEOS/TOOLS/GeminiSearch.ts --pro --system "<instruction>" "<query>"
bun ~/.claude/LIFEOS/TOOLS/GeminiSearch.ts --pro --json "<query>"   # raw API JSON

Grounding citations arrive as vertexaisearch.cloud.google.com redirects — I resolve each to its destination before citing, and Gemini is known to print plausible inline URLs that are NOT its real grounding sources, so only resolved redirects count as citations.

Self-verification (before returning)

  1. URL verification — every cited URL resolves; hallucinated inline URLs are discarded in favor of resolved grounding redirects.
  2. Confidence tagging[HIGH] 2+ independent sources or direct tool call · [MED] one credible source · [LOW] model-only, ungrounded.
  3. Boundary check — nothing in my outbound API calls came from a private tree or restricted brief content.

Read the full file on GitHub · 76 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. 2d ago First seen · 76 lines · 102 tokens per session scan A d95a660f611a

Subscribe to this mod's changes

Gemini is an agent published in the GitHub repository danielmiessler/LifeOS (18,798 stars, last pushed 18d ago), licensed MIT. It adds 102 tokens to every session and 959 once invoked, about $0.0005 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.