AI Agent Hub
Back to plugins
🖥️

dsh-image-model-router

Client Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install Blue-2571/dsh-image-model-router

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install Blue-2571/dsh-image-model-router in your DeepSeek Harness terminal to install the plugin; the source code is at https://github.com/Blue-2571/dsh-image-model-router . After installing, enable it in your profile's cordis.patch.yml and restart the profile.

About this plugin

In a DeepSeek Harness agent workflow, one turn may need only text reasoning while the next carries a screenshot, a photo, or a diagram. Sticking to a text-only model discards image context; switching everything to a vision model pays extra compute on every plain-text turn.

dsh-image-model-router inspects each agent request: it walks nested tool-result content for images the same way the harness does, routes to a configurable multimodal model (default deepseek-v4-flash-vision-exp) when an image is found, and keeps the original model for text-only turns. The routing flag is keyed by the agent object in a WeakMap, so state can never leak across agents or turns.

Built for dsh users who mix text reasoning with image-heavy workflows such as debugging with screenshots, reading diagrams, or analyzing photos; the plugin handles model selection automatically without manual provider switches.

Use Cases

  • Mixing screenshots, photos, and diagrams into agent chat and wanting automatic model matching
  • Tool calls return image results that need visual understanding rather than plain-text reasoning
  • Avoiding extra cost from routing every single turn through a vision model

Best For

  • Developers running agent workflows on DeepSeek Harness daily
  • Users whose workflows frequently involve image analysis or screenshot debugging
  • dsh users who want per-message auto model selection without manual switching