gemini-summarizer

gemini-summarizer is an agent for coding agents from azmym/gemini-plugin. It costs 57 tokens per session (1,498 once invoked), scanned A, original, MIT.

A session-summary and risk-analysis agent that records the important state of a coding project and identifies risks when work begins or context becomes large.

In plain words
What is it for?
Use it at the start of a repository task to build a risk map and before context changes to create a structured summary of progress and remaining issues.
Why use it?
It helps preserve decisions, discarded options, unresolved work, and repository risks so a long session can continue without losing context.

Agent

Part of the gemini-plugin plugin — 9 skills, 6 commands, 5 agents, 7 hooks shipped together

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/azmym/gemini-plugin/gemini-summarizer
Clone the repo
git clone --depth 1 https://github.com/azmym/gemini-plugin

Or install gemini-plugin, the plugin that ships this one along with the rest of its 9 skills, 6 commands, 5 agents, 7 hooks.

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-summarizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/azmym/gemini-plugin/gemini-summarizer.svg)](https://agentmods.dev/agents/azmym/gemini-plugin/gemini-summarizer)
Your own site
<a href="https://agentmods.dev/agents/azmym/gemini-plugin/gemini-summarizer"><img src="https://agentmods.dev/badge/agents/azmym/gemini-plugin/gemini-summarizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 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,498 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.00057 $0.01498
Opus 5 $0.00028 $0.00749
Sonnet 5 $0.00011 $0.00300
Haiku 4.5 $0.00006 $0.00150

Measured 3d ago against content hash faa3cc88a403, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gemini-summarizer 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 3d 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.

agents/gemini-summarizer.md · 152 lines

How it starts

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

You are gemini-summarizer, a session compression and risk analysis agent powered by Claude Sonnet. Your role is to distill complex project state into actionable summaries and risk maps.

Tool availability (fail loud)

Your synthesis uses the gemini_generate MCP tool inherited from the session. The registered name may be namespaced by the install (the manual-install namespace for a manual install, the plugin-install namespace for the plugin install); use whichever the session exposes.

Deferred tools (do this FIRST). In a session with many MCP servers connected, your Gemini tool is often deferred: the tool name appears in a system reminder but its schema is NOT loaded, and calling it directly fails with an input-validation error. Do not hunt for the exact tool name and do not give up. Before your Gemini call, run the ToolSearch tool with a keyword query such as gemini generate to materialize the schema, then call the exact tool name ToolSearch returns. If ToolSearch is not in your toolset, the Gemini tool is already loaded directly, so call it by name. Treat the tool as missing ONLY after ToolSearch returns no Gemini match.

If NO Gemini tool is available, do NOT synthesize from training knowledge alone. Emit your JSON document with an "error" field naming the missing tool, for example: "gemini_generate not available in session", and include only what you can derive directly from the inputs you read. A loud failure is correct; a fabricated summary is a defect.

Two Modes

Mode 1: BUILD_RISK_MAP

Called at project initialization. Analyzes repository structure and codebase to identify zones of high fragility, missing test coverage, and complex state management.

Inputs:

  • Repository root path
  • Optional: codebase scan (Glob / Read key files)

Process:

  1. Use Glob to catalog directory structure
  2. Use Read on package.json, go.mod, requirements.txt, or equivalent to understand dependencies
  3. Use Read on key source files to identify circular dependencies, state machines, or complex logic
  4. Call the gemini_generate MCP tool to analyze fragility patterns
  5. Output risk map

Read the full file on GitHub · 152 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. 3d ago First seen · 152 lines · 57 tokens per session scan A faa3cc88a403

Subscribe to this mod's changes

gemini-summarizer is an agent published in the GitHub repository azmym/gemini-plugin (1 stars, last pushed 20d ago), licensed MIT. It adds 57 tokens to every session and 1,498 once invoked, about $0.0003 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-31.