Enhanced model selector for the DSH composer with searchable provider groups, keyboard and accessibility support, and an inline reasoning-effort slider.
Install
# from npm (prebuilt)
dsh plugin --profile web add @bittersmilezzz/dsh-model-selector
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:bitterSmilezzz/dsh-model-selector
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
增强模型选择器(Model Selector) —— DeepSeek Harness (DSH) 增强模型选择器:单层快速菜单(搜索 + 供应商分组)+ 底部内联 Codex 风格推理强度滑杆。已收录于 awesome-dsh-plugin 与 dsh-plugin.org。
界面预览
| 默认菜单(分组 + 推理滑杆) | 实时搜索过滤 |
|---|---|
特性
- 单层聚合菜单:开箱即选,支持按提供商折叠分组与当前选中项自动定位。
- 宽容模糊搜索:大小写与变音符折叠匹配,高亮命中片段。
- 内联推理滑杆:Codex 式三段式布局,最高档呈现平滑蓝紫渐变与粒子效果。
- 完整键盘导航:方向键巡检、Enter 选中首项、Escape 快速清词,IME 输入无冲突。
- 原生无缝集成:纯前端组件,自动同步官方目录状态与会话,无需配置。
- 稳定轻量:独立合成层防抖防闪烁,121 项测试全绿保障。
安装
推荐直接通过 npm 安装:
# 安装到当前 profile(以 web 为例)
dsh plugin --profile web add @bittersmilezzz/dsh-model-selector
启用后刷新页面即可生效。也可在 DSH 客户端「插件中心」内一键搜索安装。
兼容性与权限
- 兼容环境:DSH
^0.2.1-rc.2,Node.js>=22.19.0(纯 client Web 插件)。 - 权限等级:low。纯前端 UI 插件,不注册 host 工具、不读写宿主文件、不访问凭据、不发起自有网络请求。数据均走官方 session RPC。
外部依赖
- 运行时依赖 DSH web profile(依赖
@deepseek-ai/dsh-client-ui-slots等官方注入包)。 - 无系统级依赖,无任何 npm 生命周期脚本(无 preinstall/install/postinstall)。
已知风险
- 官方 Slot 覆盖:通过
priority: -1shadow 覆盖官方模型选择座位,若官方后续调整该 slot 结构需同步适配。 - 子座位继承限制:接管期间官方
conversation.input.model.label子座位的第三方贡献暂不被渲染。 - 同类插件互斥:与其他覆盖同座位的第三方插件共存时,由 slot 优先级决定胜出方。
开发与测试
pnpm install
pnpm typecheck # 双 program 类型检查
pnpm test # 121 项自动化测试全绿
pnpm build # 构建 lib 产物
pnpm validate:registry # 伞仓准入校验
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10172
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10172
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 7101
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 6959
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 4959
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1744
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.