把 DeepSeek Harness 输入框的模型选择器改成按供应商分组的响应式卡片网格。纯宿主端:通过 webserver/index-inject 注入样式、无需重建前端包,同时支持官方选择器与 dsh-peakrate 菜单。
安装
# Release 预构建包
dsh plugin --profile web add "https://github.com/anonamerjaxon-dev/dsh-model-grid/releases/download/v1.0.0/dsh-model-grid-1.0.0.tgz"
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:anonamerjaxon-dev/dsh-model-grid
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Turn the composer model picker in DeepSeek Harness from a long one-per-row list into a responsive card grid, grouped by provider.
| Before | After |
|---|---|
![]() |
![]() |
Features
- Responsive grid. As many columns as fit the popup (
auto-fill), never fewer than one, so it degrades gracefully on narrow windows. - Grouped by provider. Each provider keeps its own section; the provider heading spans the full row.
- Works with both pickers. The stock
dsh-client-ui-model-selectiondropdown and the third-partydsh-peakratemodel menu (which replaces the stock trigger when installed). The stylesheet does not depend on either plugin being present. - Configurable. Width, card width, gap, height cap, and whether to hide the long price countdown.
- Host-only, upgrade-safe. A single
<style>is injected into the page<head>through thewebserver/index-injectevent. No client bundle is rebuilt, so it keeps working after DSH updates. - No runtime dependencies.
Supported pickers
| Picker | What identifies it | Notes |
|---|---|---|
Stock dsh-client-ui-model-selection |
[data-menu-group] sections, [role="menuitemradio"] buttons |
Attribute-based selectors, so hashed CSS-module class names don't matter. |
dsh-peakrate model menu |
.dsh-peakrate-ms-menu, .dsh-peakrate-ms-group, .dsh-peakrate-ms-option |
Optional; this plugin never depends on it. |
The rules are scoped so the two-cell root pane (Model / Reasoning effort) of the peakrate menu keeps its normal narrow width — only the grouped model list is widened.
Install
This is a DSH profile plugin. It is host-only, and the web UI must live at the bundle layer to appear, so it needs to be in dsh.profile.bundles.
# 1. add the dependency to a profile
dsh plugin --profile web add github:anonamerjaxon-dev/dsh-model-grid
# 2. add "dsh-model-grid" to dsh.profile.bundles in
# ~/.dsh/profiles/web/package.json, then restart the profile
dsh web
If you prefer a local checkout:
dsh plugin --profile web add link:/path/to/dsh-model-grid
Then add the same "dsh-model-grid" entry to dsh.profile.bundles and restart.
Restarting the profile is required: the host plugin is loaded at boot and the stylesheet is injected when the page is served.
Configuration
Options are passed through the plugin entry's config and merged with the defaults.
| Key | Default | Description |
|---|---|---|
maxWidth |
900 |
Hard cap on the popup width, in CSS px (clamped 240–4000). |
minCardWidth |
200 |
Minimum width of a model card, in CSS px (clamped 80–1200). |
gap |
6 |
Gap between cards, in CSS px (clamped 0–64). |
maxHeightVh |
76 |
Popup height cap, in vh (clamped 20–100). |
hideCountdown |
true |
Hide the long "· 14h 23m" countdown in the price badge. |
enabled |
true |
When false, nothing is injected. |
Example — in the profile's cordis.patch.yml:
- insert:
- id: model-grid
name: 'dsh-model-grid'
config:
maxWidth: 1100
minCardWidth: 180
hideCountdown: false
How it works
apply(ctx, config)listens for the host'swebserver/index-injectevent.- On every index response, the listener pushes one
{ kind: "style", text }row. - DSH renders that row as a
<style>block in<head>.
Because the CSS is generated from css.js at injection time, there is no file I/O and nothing to keep in sync. buildCss() is exported and unit-tested independently of the host.
Compatibility
- DeepSeek Harness 0.2.1-rc.2 (declared in
package.json→dsh.compatibility). - Node.js >= 22.
- No bundler, no client build step.
Development
git clone https://github.com/anonamerjaxon-dev/dsh-model-grid.git
cd dsh-model-grid
node --test
The test suite covers config defaults/clamping, both picker selector sets, the countdown toggle, and the injection table.
Maintainer: registry submission
Listing in the awesome-dsh-plugin
registry is a one-file pull request. The scripts/ helpers automate it:
scripts/submit-to-market.sh --dry-run # validate, change nothing
scripts/submit-to-market.sh # open the PR
scripts/schedule-submit.sh # one-shot launchd timer for the first eligible moment
scripts/schedule-submit.sh --uninstall # remove the timer
The registry's CI enforces a 1-day minimum repository age, which is exactly
what schedule-submit.sh waits for. See scripts/README.md.
License
MIT © 2026 Jackson Yao
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 10172
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 10172
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
ccch1mneyyy/dsh-TUI★ 7101
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 6959
右下角常驻的小鲸鱼挂件:余额、今日已用与每轮对话消耗(含峰谷价),余额预警与今日预算的泡泡内容都可编辑;泡泡点击序列模块化自定义,支持并列加权 A/B、随机台词与随机图片;内置 30+ 厂商模板(OpenAI / OpenRouter / Kimi / 硅基流动 / 方舟 / 智谱 / MiniMax 等),按模型查余额与订阅额度;另有任务结束音效、导入音频、自定义角色与资源管理。数据全在本机,无遥测。
omdsh-dev/DSH-better-sidebar★ 4959
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
Devin-AXIS/deepseek-design#deepseek-idesign★ 1744
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。


社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。