DeepSeek Harness plugin

dsh-model-provider-badge

DeepSeek Harness plugin: replace the model selector with one that shows real brand marks per provider (DeepSeek, Zhipu, Xiaomi, OpenCode Go…), so same-named models on different providers are never

Jump to install

Source facts

Repository
weijianguizhou/dsh-model-provider-badge
Latest update
Aug 19, 2026
Category
Tools & Capabilities
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/weijianguizhou/dsh-model-provider-badge
Plugin: dsh-model-provider-badge
Author: weijianguizhou

Check the source files

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

File explorer3 files
README.mdSource · read only

dsh-model-provider-badge

DSH(DeepSeek Harness)插件:用带真实品牌标志的模型选择器替换官方默认选择器,让 DeepSeek 官方、智谱、小米、OpenCode Go 等提供商里同名模型一眼可辨,不再混淆。

> 示例:DeepSeek-officialdeepseek-v4-flashopencode-godeepseek-v4-flash 现在分别带有 DeepSeek 鲸鱼标和 OpenCode 终端窗标。

特性

  • 真实品牌标志:DeepSeek、智谱、小米、OpenCode 等使用官方/公开的品牌 SVG,未知提供商按 id 哈希着色的云朵兜底。
  • 跟随 DSH 主题:所有面板/文字/边框颜色取自 DSH 主题变量(--dsw-*),浅色/深色皮肤自动适配。
  • OpenCode 风格结构:等宽字体、> MODELS 表头、> 勾选符、紧凑排版。
  • 零侵入:通过 slot 负优先级(-10)遮挡官方 seat,不修改任何官方代码。
  • 变体解析-vision / -official 等分组 id 自动映射回基础品牌(如 deepseek-vision → DeepSeek)。

安装

在目标 profile 中作为 link 依赖安装并加入 bundle 层:

# 在 profile 目录执行(用 DSH CLI)
dsh plugin --profile desktop add link:/path/to/dsh-model-provider-badge

或在 profiles/<name>/package.json 手动加入依赖,并确保它出现在 dsh.profile.bundles 列表中。装完重启 DSH Desktop 即生效。

开发构建

npm install          # 安装 esbuild
npm run build:client # 构建 client bundle 到 lib/client.js
npm run check        # 语法检查

工作原理

1. 客户端 bundle(lib/client.js)以 dsh.client.platform: web 注册,由 harness 的 ClientModuleRegistry 扫描进 manifest,经 /plugins/dsh-model-provider-badge/client.js 下发到浏览器。 2. 插件在 conversation.input.model 单槽位注册,优先级 -10(官方为 0,数值低者渲染)从而遮挡官方组件。 3. 通过与官方相同的链路拉取模型目录:connection.api.sessions.models({ sessionId })connection.api.sessions.selectModel({...})

目录结构

src/client/       客户端组件(index.js)、样式(styles.js)、品牌标志(badges.js)
src/host/         host 侧占位入口
scripts/          esbuild 构建脚本
lib/              构建产物(client bundle)
cordis.patch.yml  bundle 补丁:插入插件行

License

MIT