embeddinggemma-multimodal-firewall

embeddinggemma-multimodal-firewall is a skill for Claude Code from IgorGanapolsky/ThumbGate. It costs 73 tokens per session (360 once invoked), scanned A, original, MIT.

A local embedding-based gate for checking agent actions using text, interface images, screenshots, and commands in one representation. Embeddings are numerical representations used to compare related content; RAG means retrieving relevant information from a store of such representations.

In plain words
What is it for?
It is for pre-action checks involving text and visual state, including browser screens, shell commands, and retrieved vector data.
Why use it?
It is intended to evaluate larger context, such as multi-file diffs and stack traces, without sending those checks to a cloud service. It also prevents comparisons between incompatible embedding models.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

Part of the thumbgate plugin — 89 skills, 8 commands, 1 agent, 10 hooks, 2 MCP servers, 3 plugins shipped together

Good fit It is for pre-action checks involving text and visual state, including browser screens, shell commands, and retrieved vector data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall
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.

Any agent
npx skills add IgorGanapolsky/ThumbGate --skill embeddinggemma-multimodal-firewall
Clone the repo
git clone --depth 1 https://github.com/IgorGanapolsky/ThumbGate

Made for: Claude Code.

Or install thumbgate, the plugin that ships this one along with the rest of its 89 skills, 8 commands, 1 agent, 10 hooks, 2 MCP servers, 3 plugins.

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 embeddinggemma-multimodal-firewall

README.md
[![agentmods](https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall/github.svg)](https://agentmods.dev/skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall)
Your own site
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall/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 embeddinggemma-multimodal-firewall

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/embeddinggemma-multimodal-firewall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00073 $0.00360
Opus 5.5 $0.00029 $0.00144
Sonnet 5.5 $0.00015 $0.00072
Haiku 4.5 $0.00007 $0.00036

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

Security

Grade A, and why

embeddinggemma-multimodal-firewall 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 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.

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/skills/embeddinggemma-multimodal-firewall/SKILL.md · 29 lines

What it actually says

EmbeddingGemma 2 Multimodal Firewall (DeepMind Steal)

Replaces brittle, single-modality 512-token embeddings with 8K-context, sub-0.5ms MRL-truncated multimodal pre-action interdiction that costs $0 in cloud tokens.

Commands

# Run system doctor diagnostic
npm run embeddinggemma:doctor

# CLI diagnostic (JSON or text)
npx thumbgate embeddinggemma --json

# Run unit test suite
node --test tests/embeddinggemma-adapter.test.js

Architectural Pillars

  1. 8K Context Window: Ingests up to 8,192 tokens (~32KB chars) without chunking, capturing entire multi-file diffs and terminal stack traces.
  2. Matryoshka Representation Learning (MRL): Native 768d truncates to 256d fast-gate with unit L2 re-normalization, cutting dot product compute by 66.7% for <0.5ms PreToolUse firewall evaluation.
  3. Multimodal State Unification: Maps visual UI DOM/screenshots (BrowserOS Neo / Playwright) and bash commands into the same vector space.
  4. Fail-Closed RAG Identity Diode: Blocks cross-model vector distance calculations to prevent embedding pollution.
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 First seen · 29 lines · 73 tokens per session scan A e40efc8269eb

Subscribe to this mod's changes

embeddinggemma-multimodal-firewall is a skill published in the GitHub repository IgorGanapolsky/ThumbGate (34 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 360 once invoked, about $0.0003 per session on Opus 5.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-10-12.

Related

embeddinggemma-multimodal-firewall compared with skills from other repositories

embeddinggemma-multimodal-firewall next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
embeddinggemma-multimodal-firewallIgorGanapolsky/ThumbGateSkill34todayMITA73Claude Code
llamaguarddavila7/claude-code-templatesSkill34ktodayMITA74Claude Code, Codex
llamaguardsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A74Claude Code, Codex
rag-pipeline-designRBraga01/builder-aiSkill22d agoMITA40Claude Code
llamaguardOrchestra-Research/AI-Research-SKILLsSkill15k1mo agoMITA74Claude Code
rag-implementationaisa-group/skill-injectSkill10223d agoMITA49Claude Code, Codex
agentfootprintfootprintjs/agentfootprintSkill22yesterdayMITA72Claude Code, Codex