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.
git clone --depth 1 https://github.com/ooples/token-optimizer-mcpWrote 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.
[](https://agentmods.dev/plugins/ooples/token-optimizer-mcp/gemini)<a href="https://agentmods.dev/plugins/ooples/token-optimizer-mcp/gemini"><img src="https://agentmods.dev/badge/plugins/ooples/token-optimizer-mcp/gemini.svg" alt="Measured on agentmods" height="20"></a>Grade A, and why
token-optimizer 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 yesterday.
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.
This is a copy
100% identical to token-optimizer — 7 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.
What it actually says
{
"name": "token-optimizer",
"version": "5.1.2",
"description": "Context-window optimization tools (caching, compression, smart file tooling) for the Gemini CLI.",
"mcpServers": {
"token-optimizer": {
"command": "npx",
"args": ["-y", "@ooples/token-optimizer-mcp@latest"]
}
},
"settings": [
{
"name": "Enforcement mode",
"description": "Optional override: enforce is the default; use advise for non-blocking guidance or off to disable lifecycle hooks.",
"envVar": "TOKEN_OPTIMIZER_MODE",
"sensitive": false
},
{
"name": "Large-read threshold in bytes",
"description": "Optional byte threshold for large-read guidance and routing (default 25600).",
"envVar": "TOKEN_OPTIMIZER_LARGE_READ_BYTES",
"sensitive": false
}
],
"contextFileName": "GEMINI.md"
}
What ships with it
60 files beside gemini-extension.json in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- GEMINI.md 1.3 KB
- hooks/hooks.json 1.7 KB
- hooks/lib/adapter.mjs 61 KB runs code
- hooks/lib/advise.mjs 14 KB runs code
- hooks/lib/audit.mjs 21 KB runs code
- hooks/lib/authored.mjs 6.0 KB runs code
- hooks/lib/cache.mjs 16 KB runs code
- hooks/lib/calibration.mjs 12 KB runs code
- hooks/lib/capabilities.mjs 10 KB runs code
- hooks/lib/compact-stage.mjs 5.9 KB runs code
- hooks/lib/compact.mjs 5.9 KB runs code
- hooks/lib/consolidate.mjs 10 KB runs code
- hooks/lib/crosslayer.mjs 17 KB runs code
- hooks/lib/curate.mjs 23 KB runs code
- hooks/lib/decide.mjs 44 KB runs code
- hooks/lib/derive.mjs 37 KB runs code
- hooks/lib/disclose.mjs 17 KB runs code
- hooks/lib/doctor.mjs 51 KB runs code
- hooks/lib/expand.mjs 17 KB runs code
- hooks/lib/experiment.mjs 5.9 KB runs code
- hooks/lib/fleet.mjs 22 KB runs code
- hooks/lib/forecast.mjs 21 KB runs code
- hooks/lib/harvest-worker.mjs 11 KB runs code
- hooks/lib/harvest-write.mjs 39 KB runs code
- hooks/lib/harvest.mjs 14 KB runs code
- hooks/lib/inject.mjs 64 KB runs code
- hooks/lib/keepwarm.mjs 25 KB runs code
- hooks/lib/lessons.mjs 13 KB runs code
- hooks/lib/lexical.mjs 7.8 KB runs code
- hooks/lib/loo.mjs 33 KB runs code
- hooks/lib/manifest.mjs 7.5 KB runs code
- hooks/lib/metrics.mjs 80 KB runs code
- hooks/lib/observability.mjs 20 KB runs code
- hooks/lib/paths.mjs 9.3 KB runs code
- hooks/lib/pending.mjs 23 KB runs code
- hooks/lib/policy.mjs 39 KB runs code
- hooks/lib/pricing.mjs 2.6 KB runs code
- hooks/lib/projects.mjs 8.7 KB runs code
- hooks/lib/recall.mjs 16 KB runs code
- hooks/lib/recording.mjs 7.6 KB runs code
- hooks/lib/redact.mjs 2.4 KB runs code
- hooks/lib/remedy.mjs 11 KB runs code
- hooks/lib/restore.mjs 8.3 KB runs code
- hooks/lib/rewrite.mjs 29 KB runs code
- hooks/lib/routing.mjs 17 KB runs code
- hooks/lib/safe-text.mjs 6.6 KB runs code
- hooks/lib/seed.mjs 11 KB runs code
- hooks/lib/skeleton.mjs 8.3 KB runs code
- hooks/lib/staleness.mjs 71 KB runs code
- hooks/lib/standing.mjs 15 KB runs code
- hooks/lib/stop-harvest.mjs 14 KB runs code
- hooks/lib/substitute.mjs 7.9 KB runs code
- hooks/lib/surface.mjs 10 KB runs code
- hooks/lib/symbols.mjs 11 KB runs code
- hooks/lib/transcript.mjs 16 KB runs code
- hooks/lib/ucr-guard.mjs 4.3 KB runs code
- hooks/lib/usage.mjs 16 KB runs code
- hooks/lib/utility.mjs 4.9 KB runs code
- hooks/lib/waste.mjs 14 KB runs code
- hooks/lib/wiki.mjs 51 KB runs code
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.
- yesterday First seen · 27 lines scan A 664a273067a2
token-optimizer is a plugin published in the GitHub repository ooples/token-optimizer-mcp (507 stars, last pushed yesterday), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. It is 100% identical to token-optimizer, differing in 7 lines, and is treated as a copy.
Other plugins, from other repositories
openloomi
Connect Claude Code to your local OpenLoomi runtime. One-command install, mirror Claude's lifecycle onto the Loomi Pet, and auto-archive every Stop into your OpenLoomi memory. Talks to your local OpenLoomi over HTTP and the OpenLoomi helper CLI. AI provider config is owned by OpenLoomi itself — this plugin never reads.
Elpis
Provider-neutral terminal agent shell for controlled context, persistent memory, safe execution, and session continuity.
hebb-mind
Neuroscience-inspired long-term memory for Claude Code — auto-captures and recalls cross-session context.
titen-memory
Use Titen's evidence-grounded collaborative memory. The local stdio mode needs no configuration; a served Titen endpoint is the alternative for a shared store.
kb
Build and maintain LLM-powered knowledge bases as Obsidian wikis with compile, query, lint, and evolve workflows.
pensyve
Universal memory runtime — ambient working-memory substrate for Claude Code. Memory is not a feature you invoke — it's the substrate the agent operates on.