DeepSeek Harness 插件

dsh-model-search-heathhe

Adds a search box to the DSH Web GUI model switcher (the composer model seat), filtering the provider-grouped model list by model name / id / provider while preserving the official selection behavior(英文原文)

跳到安装方式

来源信息

GitHub 仓库
HeathHe/dsh-model-search
最近更新
2026年8月20日
分类
文档与渲染
GitHub stars
1
载体类型
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/HeathHe/dsh-model-search
插件名:dsh-model-search-heathhe
作者:HeathHe

检查来源文件

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

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

dsh-model-search

<p align="center"> <a href="https://www.npmjs.com/package/dsh-model-search"><img alt="npm version" src="https://img.shields.io/npm/v/dsh-model-search?label=npm&color=blue"></a> <a href="https://www.npmjs.com/package/dsh-model-search"><img alt="monthly downloads" src="https://img.shields.io/npm/dm/dsh-model-search?label=%E6%9C%88%E4%B8%8B%E8%BD%BD&color=brightgreen"></a> <a href="https://github.com/HeathHe/dsh-model-search"><img alt="stars" src="https://img.shields.io/github/stars/HeathHe/dsh-model-search?style=social"></a> <a href="https://github.com/HeathHe/dsh-model-search/blob/main/LICENSE"><img alt="license" src="https://img.shields.io/github/license/HeathHe/dsh-model-search?color=orange"></a> <img alt="platform" src="https://img.shields.io/badge/platform-DeepSeek%20Harness%20Web-8A2BE2"> </p>

DeepSeek Harness Web 界面的「模型切换」下拉(输入框右侧的模型座位)增加一个搜索框:在 provider 分组之上,按 模型名 / 模型 id / provider 名 即时过滤模型列表,其余官方交互全部保留。

Adds a search box to the DeepSeek Harness Web GUI model switcher (the composer model seat): filters the provider-grouped model list by model name / id / provider while preserving every official interaction.

---

使用 / Usage

安装 / Install

dsh plugin --profile web add dsh-model-search

装完重启 dsh web,输入框右侧的模型座位打开后顶部即出现搜索框。/ Restart dsh web afterwards; the search box appears at the top of the model panel.

安装指定版本 / Install a specific version:

dsh plugin --profile web add dsh-model-search@latest

升级 / Upgrade

dsh plugin --profile web add dsh-model-search@<新版本>
# 然后重启 dsh web

源码开发 / Development

dsh plugin --profile web add link:/绝对路径/到/dsh-model-search

重新构建 / Rebuild

lib/client.jslib/build.mjs 从官方 @deepseek-ai/dsh-client-ui-model-selection 浏览器产物打补丁生成:

npm run build   # 即 node lib/build.mjs

打补丁锚点全部做了「唯一性 + 恰好出现一次」校验,官方包升级导致锚点漂移时构建会报错而不是静默失效。

---

功能 / Features

  • 顶部搜索框 — 打开模型面板即出现,按空格分词、大小写不敏感,同时匹配模型名 / 模型 id / provider 名
  • 分组收起 — 没有命中的 provider 分组自动隐藏
  • 空结果区分 — 无匹配显示「没有匹配的模型」,真正无模型时才显示「没有可用的模型」
  • 键盘导航 — 搜索框内 ↑↓ 直接跳到过滤结果首/末项;选择后自动清空搜索词
  • 交互保留 — 推理等级选择、当前项勾选、加载/错误状态、toast 全部沿用官方实现

> ⚠️ 重要说明:本插件通过 cordis.patch.yml 替换官方模型选择组件(@deepseek-ai/dsh-client-ui-model-selection),而非叠加增强。DeepSeek Harness 升级后若官方组件发生变化,可能导致本插件失效——届时需重新构建(npm run build)并更新插件。

已知局限 / Known Limitations

  • 依赖上游版本lib/client.js@deepseek-ai/dsh-client-ui-model-selection 的特定版本打补丁生成。上游升级后,构建脚本的锚点可能漂移,需人工适配。
  • 键盘覆盖:搜索框内的 / 跳转到过滤结果首/末项,可能覆盖官方原有的某些键盘行为。
  • 空格分词:模型名或 provider 名中若含空格,以空格分词搜索时可能产生意外匹配。

---

许可 / License

MIT · lib/client.js 衍生自 @deepseek-ai/dsh-client-ui-model-selection,详见 NOTICE / LICENSE