DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Model Order — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

dsh-model-order

Model Order

在“设置”>“模型”中重新排序任意 llm-pi-ai 路由的模型列表;编写器模型菜单也会遵循相同顺序。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:Wany-i/dsh-model-order#2247993a8ea52a8b19b3451dc4b23db96212314f
README兼容性版本

兼容性与来源证明

Model Order 以 dsh-model-order 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/3

版本

0.1.0stable
2026/10/3

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/3
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层Ab Chartdsh-ab-chart带有绘制其调用的浏览器卡片的图表渲染工具,封装在一个可发布的插件包中Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义

README

dsh-model-order

Reorder your models in DeepSeek Harness — in Settings, where you can see them. The composer's model menu follows the same order, because it is the same order.

English | 中文

dsh-model-order adds an ordering area to every provider card on Settings → Models for llm-pi-ai routes. Move a model up, down, to the top or to the bottom; sort the list by name; or put it back the way it was. The order you set is the order the composer's model menu shows.

Features · Compatibility · Install · Quick start · Configuration · Permissions & data · How it works · Troubleshooting · Development


Features

FeatureDescription
↕ Move one stepUp / down buttons swap a model with its neighbour
⇈ Move to an endSend a model straight to the top or the bottom
🔤 Sort by nameNatural ordering, so m2 lands before m10; case-insensitive and stable
↩ Undo / restorePut the order back — see the two restore paths
🔒 Order lives in your configThe order is the models array you already have; no second place to keep in sync
🧩 No official file touchedContributed through the extension slot the Models page declares for outside plugins

Where the order comes from

In DSH there is exactly one source of truth for model order: the models array of a provider's configuration. Everything downstream preserves it:

cordis.patch.yml  providers.<route>.models: [ … ]
        │
        ▼  dsh-llm-pi-ai · resolveRouteModels()   keeps the configured order
        ▼  ctx.llm.listModels(provider)           keeps it
        ▼  buildModelCatalog()                    keeps it, per provider group
        ▼  the Models settings page               renders it, numbered 1, 2, 3 …
        ▼  the composer model menu                renders it, "model order within each group is unchanged"

So the settings list and the composer menu are not two orderings that have to agree — they are the same ordering, read twice. That is why changing the order under Settings changes the composer, and why this plugin never needs to patch the composer at all.

The two restore paths

"Restore" means different things depending on the route, and DSH's own adapter is what decides which:

Route kindButtonWhat happens
pi-ai ships a catalog for it (anthropic, openai, …)Restore default orderRemoves the route's models list, so it falls back to the models pi-ai ships
Hand-declared route (router, a relay, a self-hosted endpoint)Undo this changePuts the list back into the order it had when you opened the card — nothing is removed

The second row is a safety gate, not a limitation. The pi-ai adapter refuses to resolve an empty model list for a route its catalog does not describe ("the installed catalog does not describe this route, so its models must be listed in configuration"). Unsetting models on such a route would leave it with zero models and a catalog error. So this plugin only offers the destructive reset where it is actually safe, and offers a non-destructive undo everywhere else. To use the real reset on a hand-declared route, delete its models entry yourself — you will be told immediately if it cannot work.

Compatibility

ItemValue
DSHweb and desktop profiles, >=0.2.0-rc.1 <0.3.0-0 (verified against 0.2.0-rc.2)
Node>=20 (build only; the plugin ships prebuilt)
Depends ondsh-client-ui-settings-models (declares the slot), dsh-client-ui-settings (settings transport), dsh-client-ui-renderer (slot registry)
Applies tollm-pi-ai routes. DeepSeek official, DeepSeek account and third-party adapter families are untouched

Install / Uninstall

# From GitHub (lib/ is committed, so no local build is needed)
dsh plugin --profile desktop add github:Wany-i/dsh-model-order

# Or from a local checkout
npm install && npm run build
dsh plugin --profile desktop add file:/absolute/path/to/dsh-model-order

Restart DeepSeek Harness afterwards, then hard-reload the page (Ctrl+F5) so the client half is re-fetched.

ActionCommand
Upgradere-run add, then restart
Removedsh plugin --profile desktop remove dsh-model-order

Quick start

  1. Open Settings → Models.
  2. Find a route you have configured models for (for example router) and expand its card.
  3. Use the arrows to move a model, or Sort by name.
  4. Open the composer's model menu — the same order is there.

If a card shows "This route has no model list of its own…" instead of the ordering area, that route has no models list in your configuration and therefore serves the models pi-ai ships. There is nothing to reorder until you declare models for it — see below.

Configuration

None. The plugin has no settings namespace and no persisted preferences of its own: the order it edits is your configuration, so there is nothing else to configure or keep in sync.

Add or edit models in the same card using the official editor; this plugin's area only changes their order.

Permissions & data

  • No network access. The plugin never opens a connection.
  • No new storage. Nothing is written except the models array of the route you reorder.
  • No model fields are modified. Every action is a permutation of the entry objects already in your configuration: id, name, contextWindow, maxTokens, input and any field this plugin does not know about are carried through byte-for-byte. Nothing is added and nothing is removed.
  • Writes are revision-fenced. Each write carries the settings revision read before the edit, so a concurrent change from another tab or an external cordis.patch.yml edit is refused rather than overwritten.
  • Read-only deployments stay read-only. Controls are disabled with an explanation.

How it works

  1. The official Models page declares settings.models.provider-card for plugins distributed outside its repository, dispatched with entryKey = settingsNs for every card that shows a provider row.
  2. This plugin registers one keyed entry under the pi-ai family's namespace (llm-pi-ai). No official file is patched, and a deployment without that family dispatches the area nowhere.
  3. The area reads the route's user-layer models array through ctx.configForms, and writes it back with a single { op: 'set', path: ['providers', route, 'models'], value: [...] }.
  4. One whole-array replacement is not a shortcut — it is the only thing the settings seam supports. Its path operations diff one level deep and do not traverse array nodes, which is also what the official editor does when it writes a model list.

The pure parts (src/order.ts, src/client/section.ts) hold no React and no DOM, so they are tested directly; tsconfig treats sources as erasable-syntax-only TypeScript so node can run them without a build step.

Troubleshooting

SymptomCause and fix
The area does not appear at allThe client half is not loaded. Re-run dsh plugin --profile desktop add <spec>, restart DSH, then hard-reload the page.
The area never appears on any cardThe pi-ai family is composed under a settings entry id other than llm-pi-ai. The dispatch key is that id, so PROVIDER_NAMESPACES in src/client/index.ts has to name it. The plugin renders nowhere rather than misbehaving.
The area appears on my routes but not on an unconfigured catalog routeWorking as intended: a route you never configured gets no note, so the page is not buried in them.
This route has no model list of its ownWorking as intended: the route inherits the pi-ai catalog. Declare models on it to reorder.
Controls are disabledThe settings document is read-only, or the client is in memory mode (a non-loopback browser without Host persistence).
The settings changed elsewhere…Another writer bumped the revision; the list refreshed. Retry on the refreshed list.
Sorted list looks wrongOrdering is natural and case-insensitive, by name when present, otherwise by id.
Restore is not offered for my routeIt is hand-declared; use Undo this change instead, or remove models yourself.

Development

npm install
npm run verify     # typecheck + build + all specs
npm run watch      # rebuild on change
PathContents
src/order.tsPure ordering: move, sort-by-name, restore-to-capture
src/client/section.tsPure shape knowledge: where models lives, and the write ops
src/client/ModelOrderCard.tsxThe slot contribution
src/client/index.tsRegistration and the settings face
src/index.tsHost half — deliberately empty
test/order.spec.mjs, test/section.spec.mjsBehaviour of the pure modules
test/patch.spec.mjsPackaging contract: patch ↔ manifest ↔ bundle
test/bundle.spec.mjsIntegration: loads the built half and drives the registration chain

Type declarations for the integration surface come from the published official packages, pinned to the same version as the runtime. If you target a different DSH release, align the @deepseek-ai/* devDependency versions with it.

The repository URLs in package.json point at Wany-i/dsh-model-order; change them if you publish under another account.

License

MIT