wendou-chen/dsh_image-modlens-bridge

wendou-chen★ 0JavaScript最后同步: 2026-08-15

在 GitHub 打开

DSH plugin: for text-only model routes, save uploaded images under .dsh_images and analyze them via modlens (external vision provider), replacing the image block with text evidence.

README 摘要

dsh-image-modlens-bridge A DeepSeek Harness plugin that lets text-only model routes "see" user-uploaded images. When a user uploads an image in a session whose model does not declare image input, the plugin intercepts it at agent/pre-step , saves the image to /.dsh images/ , runs the external vision provider modlens , and replaces the image block with text evidence (summary + OCR + layout + semantics) before the message is persisted. The model request therefore never carries an image, while the model can still reason over the image content. 给纯文本模型路由用的图片桥接插件:用户上传图片时,在 agent/pre-step 拦截,把图片落盘到会话工作目录下的 .dsh images/ ,调用 modlens 外部视觉通道识别,再把图片 block 替换为文本证据(summary + OCR 全文 + 版面 + 语义),因此模型请求里永远不会携带图片——纯文本模型也能"看到"图片内容。 Requires a working modlens setup (e.g. the modlens skill's run.ps1 / run.sh launcher, or a modlens CLI on PATH). Vision-capable model routes are never touched — they keep the native image path. Features / 特性 - Text-only routes only : gate on resolveModelInfo().inputModalities ; routes that declare image input pass through untouched. - Clean interception point : agent/pre-step runs before the loop persists decision messages, so neither durable history nor the request ever co…

在 GitHub 查看完整 README →
工具/开发dsh-pluginocragentvision

分类