DeepSeek Harness plugin

dsh-vision-joyiok

DeepSeek Harness 识图插件:为 Agent 注册 image_analyze 工具,把本地图片或 URL 发送给 OpenAI 兼容视觉模型(默认 OpenRouter google/gemini-3.7-flash)并返回文字分析

Jump to install

Source facts

Repository
joyiok/dsh-vision
Latest update
Aug 15, 2026
Category
Models & Providers
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/joyiok/dsh-vision
Plugin: dsh-vision-joyiok
Author: joyiok

Check the source files

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

File explorer3 files
README.mdSource · read only

dsh-vision

DeepSeek Harness 识图插件。安装后,Agent 获得 image_analyze 工具: 把本地图片 / URL / data URL 发给 OpenAI 兼容的视觉模型,返回文字分析, 让当前不支持图片输入的主模型也能“看图”。

默认接口:https://openrouter.ai/api/v1/chat/completions,模型 google/gemini-3.7-flash(支持 png / jpeg / gif / webp)。

安装

dsh plugin --profile web add github:joyiok/dsh-vision
# 或本地目录
dsh plugin --profile web add /home/joy/Documents/dsh-vision-plugin
dsh plugin --profile headless add /home/joy/Documents/dsh-vision-plugin

安装后重启 dsh web。

密钥

export OPENROUTER_API_KEY=sk-or-v1-xxxx
# 或
export VISION_API_KEY=sk-xxxx

也可以放在 $DSH_HOME/.credentials.yaml.env,插件通过 dsh credentials 服务分层解析。

使用

用户:看看 ~/Documents/memory-panel-preview.png 的 UI 有没有问题?
Agent:调用 image_analyze(images: ["/home/joy/Documents/memory-panel-preview.png"],
       question: "检查这张界面截图的视觉设计和可用性问题")

工具参数:

参数说明
images必填,本地路径 / http(s) URL / data URL 数组,最多 4 张
question可选,分析问题;默认详细描述 + UI 问题检查
model可选,覆盖默认视觉模型
maxTokens可选,默认 2000

配置

可在 profile 的 cordis.patch.yml 覆盖(覆盖整行 config):

- id: vision
  config:
    apiKeyEnv: OPENROUTER_API_KEY
    model: google/gemini-3.7-flash
    baseUrl: https://openrouter.ai/api/v1/chat/completions
    maxTokens: 2000
    timeoutMs: 180000
    maxImages: 4
    maxImageBytes: 20971520

禁用插件:

- id: vision
  disabled: true

说明

  • 图片本地读取后在内存中转 base64,不落盘。
  • 429 / 5xx 自动重试 2 次;超时使用 AbortSignal,可被上层取消。