dshbase

插件目录 / Developer / dsh-her-eyes

dsh-her-eyes

已验证 · 实测可装 huashenglian

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

4Stars
1Forks
0未关闭 issue
JavaScript语言
2026-08-13最近推送
跨平台平台

功能简介

让 AI 自动调用 VLM 做视觉分析的 dsh 插件。

✅
我们的评价
可用 — 实测通过,早期项目

让 AI 自动调用 VLM 做视觉分析的 dsh 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-her-eyes

English | 中文

A Vision-Language-Model (VLM) analyzer plugin for DeepSeek Harness (dsh). It gives the AI an analyze_image tool backed by primary/backup OpenAI-compatible vision endpoints with automatic failover, and adds an auto-saving Settings → Vision Models (VLM) page (English/中文).

Features

  • analyze_image tool registered on the global tools registry — available in every session.
  • Primary / backup VLM APIs — OpenAI-compatible endpoint + apiKey + model; if the primary fails consecutively beyond the retry count, the AI automatically falls back to the backup.
  • Auto-saving settings page — every edit saves and takes effect immediately; no Save button. Also lets you fetch the model list from the endpoint.
  • Web routes /vlm/config, /vlm/models, /vlm/reset served by the host half.
  • i18n — the settings page follows the harness UI language (English / 中文).

Requirements

  • dsh CLI (DeepSeek Harness) with a web profile installed. Requires pnpm on PATH (or use npx --yes pnpm@<version>).

Install

The plugin is a bundle: it carries its own cordis.patch.yml and self-activates. Installing it is a single command — no manual patch editing in the profile.

# From a local directory
dsh plugin --profile web add ./dsh-her-eyes

# From GitHub
dsh plugin --profile web add github:huashenglian/dsh-her-eyes

# From a packed tarball (pnpm pack / npm pack)
dsh plugin --profile web add ./dsh-her-eyes-1.2.0.tgz

dsh plugin add installs the dependency and appends the bundle to dsh.profile.bundles automatically.

If pnpm is not on PATH, run the equivalent manually:

# in the profile directory (~/.dsh/profiles/web)
npx --yes [email protected] add file:./plugins/dsh-her-eyes

then add "dsh-her-eyes" to the dsh.profile.bundles array in package.json.

Manual placement (alternative)

  1. Put the package under $DSH_HOME/profiles/web/plugins/dsh-her-eyes/.
  2. Add "dsh-her-eyes": "file:./plugins/dsh-her-eyes" to the profile package.json dependencies.
  3. Add "dsh-her-eyes" to the profile dsh.profile.bundles array.
  4. Run pnpm install (or npx --yes [email protected] install), then restart dsh web.

Do not add a manual - insert: - id: her-eyes row to the profile cordis.patch.yml — the bundle already inserts it. A second insert would throw duplicate loader entry id: her-eyes at boot.

Configure

All configuration lives in one JSON file: $DSH_HOME/vlm-vision.json (default ~/.dsh/vlm-vision.json).

{
  "retryCount": 5,
  "api": {
    "primary": { "endpoint": "https://api.openai.com/v1", "apiKey": "sk-...", "model": "gpt-4o" },
    "backup":  { "endpoint": "", "apiKey": "", "model": "" }
  }
}
  • endpoint — OpenAI-compatible base (e.g. https://api.openai.com/v1) or the full …/chat/completions URL.
  • apiKey — leave the key empty in the file; it is saved via the settings page and stored masked.
  • retryCount — after this many consecutive failures of one API, the active API switches (primary ⇄ backup).

You can edit the file directly, or use the settings page (all edits auto-save).

How it works

The package is dual-face:

  • Host half (lib/index.js) — a cordis plugin. Registers the analyze_image tool on the global tools registry and the /vlm/config|models|reset routes on the web server. Loads and persists vlm-vision.json.
  • Client half (lib/client.js) — the browser module, loaded via __ModuleLoader__ because the package declares dsh.client. Registers a Settings → Vision Models (VLM) section (list slot settings.section, id vlm-vision, order 40) and the locale namespace settings.her-eyes.

The bundle cordis.patch.yml inserts the her-eyes entry that activates both halves.

Coexistence with other plugins

This plugin is built to play nicely with other frontend plugins that touch the settings window:

Resource Value Notes
Loader entry id her-eyes unique across the harness
Settings slot id vlm-vision the settings.section slot is a list — multiple sections coexist; only the same id would conflict
Locale namespace settings.her-eyes namespaced by plugin
Tool name analyze_image unique
Web routes /vlm/* unique path prefix
CSS classes vlm-* global styles, prefixed to avoid collisions

The harness itself enforces uniqueness (duplicate loader ids, slot ids, tool names, or routes throw and fail loudly) — so two plugins never silently shadow each other.

Uninstall

dsh plugin --profile web remove dsh-her-eyes

This removes the dependency and the bundle entry. Your vlm-vision.json config file is left untouched.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-her-eyes」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:huashenglian/dsh-her-eyes

Headless(CLI)profile:

dsh plugin --profile headless add github:huashenglian/dsh-her-eyes

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →