Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that intercepts Read calls on image files and replaces them with Gemini-generated text descriptions, preventing image bytes from invalidating Anthropic's prompt cache.
Anthropic's prompt cache is invalidated when inline images change in a prompt (docs). In a long Claude Code session, every screenshot or diagram you ask Claude to read silently blows away your cache hit rate — and your wallet.
This plugin hooks into PreToolUse for the Read tool, detects image files by extension, and calls agy (Antigravity CLI) to produce a compact text description. Claude receives the description instead of the image, the cache stays warm, and you still get the information.
Claude Code
Read(image.png) ──► PreToolUse hook
│
├── resize (magick → sips → skip)
├── spawn agy with --agent gemini-image-describe
└── parallel: tesseract OCR
│
└──► updatedInput.file_path = desc.txt
Claude reads text, not image
Sister plugin gemini provides slash commands (/gemini:review, /gemini:ask, etc.) and shares the same agy OAuth credentials — install whichever ones you want.
agy plugin install <repo>/plugins/gemini-images/agyjq: brew install jqOCR_LANG=chi_tra+eng): brew install tesseract tesseract-langbrew install imagemagickbash)jq: download from https://jqlang.github.io/jq/download/ or winget install jqlang.jqOCR_LANG=chi_tra+eng): winget install UB-Mannheim.TesseractOCR (select Traditional Chinese in the installer)winget install ImageMagick.ImageMagickLinux is not supported.
1. Install the plugin in Claude Code
/plugin marketplace add https://github.com/haunchen/gemini-plugin-cc
/plugin install gemini-images
Restart Claude Code — plugins are not picked up until you do.
2. Install the agent into agy
Required. agy cannot take a system prompt per call, so the image-describe prompt has to be registered with it up front. From a clone of this repo:
agy plugin install "$(pwd)/plugins/gemini-images/agy"
Expect agents : 1 processed. Re-running upgrades in place.
Without this step the hook still returns a description, but a generic one — --agent silently ignores names it does not recognise, so nothing reports an error. Descriptions will be markdown-formatted, English or Simplified Chinese, and padded with filler instead of the compact single paragraph the prompt specifies.
Run the diagnostic from the repository root:
bash plugins/gemini-images/scripts/doctor.sh
Required checks must all pass — including agent installed: gemini-image-describe, which is the check for step 2 above. Optional warnings are fine for basic use but reduce quality.
| Variable | Default | Purpose |
|---|---|---|
AGY_MODEL | gemini-4-hydrogen-high | Model passed to agy --model |
MAX_WIDTH | 1568 | Resize ceiling (pixels) |
OCR_BIN | tesseract | OCR binary; set to none to disable |
OCR_LANG | chi_tra+eng | tesseract -l value. Falls back to default if the pack is missing. |
AGY_BIN | agy | agy binary name |
Set these in your shell profile or per-session before launching Claude Code.
Hook runs but Claude still sees images
Confirm the plugin is loaded: /plugin list should show gemini-images. Restart Claude Code after install.
agy fails with OAuth error
Run gemini interactively once to complete Google OAuth.
Chinese text missing or garbled in OCR
Default OCR_LANG=chi_tra+eng needs the chi_tra pack. Install via brew install tesseract-lang (macOS) or pick Traditional Chinese in UB-Mannheim's Windows installer. Override with e.g. OCR_LANG=eng if you don't want Chinese.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub haunchen/gemini-plugin-cc --plugin gemini-images