agentleFS
IgorGanapolskyIgorGanapolsky/ThumbGate/.agents/skills/embeddinggemma-multimodal-firewall/SKILL.md

embeddinggemma-multimodal-firewall

Skill29 starsChanged 7 months agoMITView on GitHub

Google DeepMind EmbeddingGemma 2 architectural steal: 8K token context window, unified 768d multimodal representation, Matryoshka Representation Learning (MRL 256d fast-gate), and sub-0.5ms PreToolUse invariant gating on local CPU with zero cloud tokens.

Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.