DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Model Collapse — DSH Plugin for DeepSeek Harness
← Plugins

dsh-model-collapse

Model Collapse

DSH web plugin: collapse the model picker by provider, with a pinned quick bar for expand-all / collapse-all / focus-current / filter / reset.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-model-collapse@1.1.0
READMECompatibilityVersions

Compatibility and provenance

Model Collapse is published as dsh-model-collapse and currently resolves to version 1.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
8/27/2026

Versions

1.1.0stable
8/27/2026

Related plugins

Loading related plugins…

Latest
1.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
28.7 kB
Files
6
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
8/28/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in ui-customization.

Better Sidebardsh-better-sidebarDSH web plugin: a VSCode-like right sidebar (explorer / editor / terminal / git / browser), isolated per conversation session. Exposes a service for other plugins to register sidebar tabs and file viewers.Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio and its curated slide templates as a native DeepSeek Harness conversation view.Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH WebDream Skindsh-dream-skinDeepSeek Harness 换肤插件(Dream Skin for DSH):8 套 iOS / Linear 式清透冷调的高质感主题 + 弥散光壁纸 + 每皮肤智能背景 + 强调色 + 主题包分享,把换肤做成材质与配色克制的高级感工艺,而非贴图。Works in native DSH Web and third-party desktop clients (DSH Desktop): 8 original premium themes, glass materials, wallpaper 2.0

README

dsh-model-collapse

DSH web 插件:把模型选择下拉(composer 左下角的模型菜单)里按 provider 分组的列表默认全部折叠,点击分组标题才展开,告别一打开就是几十行的长列表。

效果

折叠(v1.0)

  • 每个 provider 分组标题前显示 ▾(展开)/ ▸(收起),后面跟模型数量角标 (N)。
  • 打开菜单时所有分组默认收起;「当前选中模型」所在的分组默认展开(可通过配置关掉)。
  • 点击标题切换折叠;你的展开状态按 provider 名称记忆在浏览器 localStorage(键 dsh-model-collapse:expanded-v1),下次打开菜单、重启 DSH 都保持。
  • 键盘可用:Tab 到标题后 Enter/空格 切换;↑/↓ 自动跳过被收起的行。

快捷条(v1.1,菜单顶部常驻,sticky 跟随滚动)

控件作用
展开一键展开所有 provider 分组
收起一键收起所有 provider 分组
聚焦只展开「当前选中模型」所在分组,其余全部收起(provider 多时一眼定位当前模型归属)
↺清空展开状态记忆,回到初始(选中组展开、其余收起)
筛选框按关键字实时过滤模型:命中的分组自动展开、无命中的整组隐藏,数量角标变成 命中/总数

键盘快捷键

按键作用
Alt+E全部展开
Alt+C全部收起
Alt+F聚焦筛选框(全选已有内容)
筛选框内 Enter跳到第一个匹配的模型
筛选框内 Esc清空筛选(再按一次 Esc 关闭菜单)

原理

纯浏览器端 DOM 增强,不 fork、不修改任何 DSH 官方包:

  • 目标 UI 是 @deepseek-ai/dsh-client-ui-model-selection 渲染的菜单,其分组结构有稳定的 ARIA 语义(section[role="group"] > 标题 div[id] + button[role="menuitemradio"][aria-checked]),本插件只依赖这些语义选择器,不碰 CSS-modules 哈希类名。
  • 只往 React 已渲染的节点上写 data-* 属性 + 一条 <style> 规则实现折叠(display:none),不增删/包裹 React 管理的节点,重新渲染不会打架。
  • 唯一新增的节点是快捷条本身:prepend 在菜单根部。React 更新只操作自己持有引用的子节点,外来节点会保留;菜单整体卸载时快捷条随之消失,下一轮 rescan 重新装上。
  • 快捷条样式直接复用 DSW 设计变量(--dsw-specific-menu、--dsw-alias-interactive-bg-hover、--dsw-alias-label-*、--dsw-alias-border-*),暗色/亮色主题自动跟原生一致。
  • 一个 MutationObserver 在菜单每次出现/刷新时给新分组补装饰、补装快捷条。

文件

文件作用
index.js宿主半体占位(合法 cordis 插件面,让补丁层能挂载本包)
client.js浏览器半体,全部逻辑在此
cordis.patch.ymlbundle 补丁(dsh plugin add 安装时应用)

安装

dsh plugin --profile web add GoldenZqqq/dsh-model-collapse
# 或从 npm(发布后):
dsh plugin --profile web add dsh-model-collapse

重启 DSH web 并刷新页面即生效。 (注意:重启会结束运行在该进程上的 agent 会话进程,会话历史不丢,页面里可继续恢复。)

验证:DevTools Network 里 /plugins/dsh-model-collapse/client.js 返回 200;控制台执行 __DSH_BOOT__.entries.some(e => e.id === 'dsh-model-collapse') 为 true。

配置

在 cordis.patch.yml 的对应行改 config:

- insert:
    - id: model-collapse
      name: dsh-model-collapse
      config:
        enabled: true              # 总开关;false 即整体停用
        expandSelectedGroup: true  # 首跑时是否默认展开"当前选中模型"所在分组
        quickBar: true             # 菜单顶部常驻快捷条(展开/收起/聚焦/重置/筛选)
        accordion: false           # true=手风琴模式:展开某分组时自动收起其他组

想清空记忆回到初始状态:点快捷条上的「↺」,或在 DevTools 控制台执行 localStorage.removeItem('dsh-model-collapse:expanded-v1') 后刷新。

卸载

删掉 cordis.patch.yml 里 id: model-collapse 的 insert 行(或整个注释掉),重启 DSH 即可;包目录留着不碍事。

许可

MIT · © 2026 GoldenZqqq