DeepSeek Harness plugin

dsh-image-read

DeepSeek Harness plugin: structured image analysis via vision APIs (read_image_mimo tool) with Web UI config card. Attachment input moved to dsh-input-enhancement.

Jump to install

Source facts

Repository
Triple3h/dsh-image-read
Latest update
Aug 20, 2026
Category
UI Enhancements
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Triple3h/dsh-image-read
Plugin: dsh-image-read
Author: Triple3h

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-image-read

DeepSeek Harness 原生插件:用多模态模型识图,返回结构化 JSON 证据。

与 modlens 对比:不依赖 (modlens vision) 模型变体,直接通过工具调用传图片路径,任何模型都能用。

功能

  • general 通用识图 / ocr 专注文字提取 / 多图对比
  • 结构化输出:summary + ocr (full_text + lines) + layout (regions with type/reading_order) + uncertainty
  • Provider 故障转移:配多个 provider,一个失败自动切下一个
  • 结果缓存:本地文件缓存 1 小时,失败冷却 60 秒
  • SSRF 防护:拦截私有 IP、保留主机名、DNS 重绑定检测
  • 大图自动压缩sips,默认 >1024px 缩放)
  • 全透明 PNG 本地预检(IDAT alpha 扫描)
  • API Key 脱敏:报错中自动替换 key 和 URL 为 ***
  • 指数退避重试:429 / 5xx / 超时 / 网络错误,1s/2s/4s

工具名

read_image_mimo

安装(web profile)

1. ~/.dsh/profiles/web/package.json 增加依赖和 bundle 条目 2. pnpm install 3. 重启 web 宿主

配置

优先在 Web UI 配置:设置 → 插件 → 插件配置 → 图像识别,可填接口地址(baseUrl)、模型名与 API Key;留空则回退到 cordis.patch.yml 的 provider 链。baseUrl 未带 /chat/completions 时会自动补全。

cordis.patch.ymlconfig 下可配置 provider 链(故障转移):

config:
  providers:
    - name: mimo
      baseUrl: 'https://api.xiaomimimo.com/v1'
      apiKey: 'sk-...'
      model: 'mimo-v2.5'
    # 可选 fallback
    - name: dashscope
      baseUrl: 'https://dashscope.aliyuncs.com/compatible-mode/v1'
      apiKey: 'sk-...'
      model: 'qwen3-vl-plus'
  timeoutMs: 120000
  maxImageDimension: 1024

兼容旧版单 provider 配置(baseUrl / apiKey / model 放在顶层)。

输出格式

{
  "summary": "图片核心内容描述",
  "ocr": {
    "full_text": "图中所有文字...",
    "lines": [{"text": "第一行", "language": "zh"}]
  },
  "layout": {
    "regions": [
      {"type": "title", "reading_order": 1, "text": "标题文字"},
      {"type": "paragraph", "reading_order": 2, "text": "正文..."}
    ]
  },
  "uncertainness": ["模糊处说明"]
}

本地冒烟

MIMO_API_KEY=sk-xxx node --input-type=module -e "
import('./lib/index.js').then(async (m) => {
  const r = await m.readImage(
    { image_path: '/tmp/test.png', mode: 'general' },
    undefined,
    { providers: [{ name: 'test', baseUrl: 'https://api.xiaomimimo.com/v1', apiKey: process.env.MIMO_API_KEY, model: 'mimo-v2.5' }], timeoutMs: 120000, maxImageDimension: 1024 }
  );
  console.log(JSON.stringify(r, null, 2));
});
"