alanzhao0128/dsh-image-plugins

Plugin插件 Native原生 ⭐ 2 MIT Vision & Media视觉与多媒体

DeepSeek Harness(dsh)的多模态插件:通过可配置的OpenAI兼容或DashScope端点来理解图像并生成图像。

Project Overview项目介绍

dsh-image-plugins 是面向 DeepSeek Harness(dsh)的原生 Bundle 插件,为无法承载图片的纯文本主模型补齐多模态能力。插件以 npm 包形式分发,可通过 dsh plugin --profile web add dsh-image-plugins 安装,亦支持 GitHub、tarball 或本地目录四种通道;GitHub 渠道首次安装需在 pnpm-workspace.yaml 中开启 allowBuilds,npm 与 tarball 已内含构建产物无需此步。

插件注册两个模型工具:understand_image 读取工作区图片文件并送往用户配置的视觉端点,返回的文字描述作为工具结果写入会话日志,使纯文本主模型能够间接推理图像内容;generate_image 通过用户配置的图像端点生成图片,保存到工作区并回传路径,搭配 dashscope provider 时可接受 reference_image 进行图生图。所有能力均依赖用户在 cordis.patch.yml 的 image-plugins 行中提供 baseUrl、apiKey 与 model,且不内置任何密钥;安装后默认未配置,行为安全惰性。

依赖项仅限已发布的 @deepseek-ai/dsh-tools 与 @deepseek-ai/schemastery,不接触 dsh 内部模块。限制包括:二进制写操作绕过 fs 审批事件、视觉响应仅文本、内联预览未随 v1.5 发布、无视频生成、无请求级重试;已针对 @deepseek-ai/* 0.1.0-rc.6 构建,dsh 仍处开发者预览期,升级后应重跑 npm test。License 为 MIT。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-image-plugins

把 alanzhao0128/dsh-image-plugins 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-image-plugins

npm version

Multimodal capability for DeepSeek Harness (dsh) behind a text-only main model (e.g. DeepSeek's official chat route, which cannot carry images). The plugin understands image files and generates images through fully configurable endpoints — bring your own baseUrl / apiKey / model for a vision model and for an image-generation model. Any OpenAI-compatible endpoint works; an optional dashscope adapter speaks the Alibaba Model Studio native API.

Everything is optional: a capability is enabled only when its config block is present, so an unconfigured install is inert and safe. No API keys are shipped in the package — each user configures their own.

What it provides

Capability Kind Behavior
understand_image model tool Reads a workspace image file, sends it to your vision endpoint (chat/completions + base64 image_url), returns the model's text description as the tool result. The description enters the session log, so a text-only main model can reason about the image without ever receiving one.
generate_image model tool Generates an image from a prompt via your endpoint, saves it into the workspace, returns the saved path. With the dashscope provider it also accepts an optional reference_image for image editing (I2I).

Auto-understand (V2): implemented but disabled

The plugin contains a dormant agent/pre-step rewrite (config flag autoUnderstand, default off): when enabled, images attached to a chat message are described by the vision model and the message is rewritten to carry that text before it enters the session log, so the main model never receives an image block. The code is unit-tested but was never verified end-to-end in a live session and is not part of the supported surface.

Why it is disabled: attaching an image to a chat message requires the routed model to declare input: [text, image] — the host refuses attachments for text-only models — and for a text-only endpoint (like DeepSeek's) that declaration is a workaround: a claim the endpoint never actually honors, neutralized by the rewrite before the wire. We found that inelegant and disabled the feature. The supported flow is the V1 tools above (image files in the workspace, no declaration needed). A future paste-to-chat iteration would use a lighter paste-to-path client approach instead.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-paste-input 下一个 Next Genshin-odette-skin-dsh →