DeepSeek Harness 插件

dsh-vision-uachargg

Vision recognition plugin for DeepSeek Harness: paste images into the composer, recognize them via GLM-4V on the host side, and inject the result into the conversation.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
uAcharGG/dsh-vision
最近更新
2026年8月16日
分类
模型与服务商
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/uAcharGG/dsh-vision
插件名:dsh-vision-uachargg
作者:uAcharGG

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

@uachar/dsh-vision-plugin

Vision recognition plugin for DeepSeek Harness: paste images into the Web composer, recognize them via GLM-4V on the host side, and inject the result into the conversation as a hidden context message. A native dual-face (host + browser) plugin installed as a standalone package.

Features

  • Paste & send images — one or more images pasted into the composer are forwarded to the host for recognition.
  • GLM-4V recognition — the host calls Zhipu GLM-4V and appends the result as a hidden context user message, so the main model answers based on what the image actually shows.
  • Visible thumbnails — recognized images are stored as durable attachments and rendered as thumbnails in history.
  • Model / API key settings — a dock above the composer lets you add models (default glm-4v-flash) and API keys; persisted to $DSH_HOME/vision-config.json.
  • Self-healing dsh patch — on load, the host half checks the dsh checkout for the attachment-authorization patch and applies it automatically (idempotent one-line change + apiproxy rebuild).

How to use

1. Open a session — the 视觉识别 dock appears above the composer. 2. Click the gear icon, add a model (default glm-4v-flash) and a Zhipu API key (endpoint https://open.bigmodel.cn/api/paas/v4/chat/completions). 3. Paste images and send; a bare image auto-fills "请描述这张图片的内容".

> Model entries and API keys persist to a plain local JSON file, $DSH_HOME/vision-config.json (default ~/.dsh/vision-config.json): auto-created empty on first load, rewritten on every config change, re-read on restart. The file is local-only, unencrypted, not tracked by git, and removed automatically when the plugin is uninstalled through the manager panel.

Installation & removal

> Requires a working dsh CLI (pnpm) and a profile, e.g. web.

Install from npm (recommended)

pnpm dsh plugin --profile web add @uachar/dsh-vision-plugin

Install from the GitHub release tarball

pnpm dsh plugin --profile web add https://github.com/uAcharGG/dsh-vision/releases/download/v0.1.0/uachar-dsh-vision-plugin-0.1.0.tgz

Build & install from source

git clone https://github.com/uAcharGG/dsh-vision.git
cd dsh-vision
pnpm install
# host half:
node node_modules/typescript/bin/tsc -p tsconfig.json
node node_modules/tsdown/dist/run.mjs --config tsdown.config.ts
pnpm dsh plugin --profile web add link:<absolute path to this checkout>

> The client bundle (lib/client.js) and the typert-generated faces (lib/typert.host.js / lib/typert.remote-client.js) are build-time artifacts produced by the dsh workspace build; the checked-in tsconfig.client.json still references the dsh checkout. To rebuild the client half outside the workspace, migrate that config and the typert generation step first.

Restart dsh after any install to take effect. The browser half is discovered automatically through the package's dsh.client declaration.

Removal

pnpm dsh plugin --profile web remove @uachar/dsh-vision-plugin

Then restart dsh. (Uninstalling through the manager panel also deletes $DSH_HOME/vision-config.json.)

Project structure

FileResponsibility
src/index.tshost half: VisionService extends TypertRemoteService@Remote queue/config/status + agent/pre-step & llm/stream listeners + GLM call
src/client/index.tsbrowser half: conversation.input.dock slot — paste capture, submit interception, model/API-key settings menu
src/patch.ts + scripts/apply-dsh-patch.mjsself-healing dsh attachment-authorization patch
src/types.tscross-face wire types (lossless JSON)
cordis.patch.ymlbundle composition layer
lib/build output (published)

Limitations

  • Config persistence is a plain unencrypted JSON file under $DSH_HOME; the API key is sensitive local data.
  • GLM-4V recognition needs a valid Zhipu API key configured in the dock.
  • The dsh attachment patch is applied against the local checkout's api-proxy.ts; if the checkout layout differs, the script refuses to patch automatically and reports the needed change.

License

MIT