DeepSeek Harness Plugin

mengge237/dsh-model-priority

Stars ★ 1 Category Models & Providers Added 2026-10-22

Reorder your own models: drag inside a provider card on the Models settings page, or use the Model order section when another plugin already occupies that card. The order is written through the host settings service with a revision check, so the settings page and the model picker stay in sync. The settings left nav can be reordered by drag as well.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:mengge237/dsh-model-priority

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.

模型顺序 + 原生列表排序。

  • 模型顺序:拖动某个提供方内部的模型;写入走官方 settings(describe + mutate + revision),一次拖动 = 一个 insertBefore move。
  • 入口是兼容的:settings.models.provider-card 的 llm-pi-ai 格空闲时直接挂卡片格(和 DeepSeek 卡片同一位置、同款样式);被别的插件(如 web-all「模型能力」)占住时才退回原生设置分区「模型顺序」。
  • 设置左导航:可拖拽排序,顺序存 ~/.dsh/ui-order.json(GET/PUT /dsh-model-priority/ui-order.json),刷新后保持。

安装

dsh plugin --profile web add github:mengge237/dsh-model-priority

本地开发用 dsh plugin --profile web add link:/path/to/dsh-model-priority,装完重启一次 dsh web。

契约

  • 模型顺序只改 settings 里 providers.<route>.models 的顺序;没有 ctx.settings 时返回 503,不写文件。
  • 左导航顺序是纯展示数据,不碰宿主配置;key 是导航行标签文本。
  • 设置分区用原生 settings.section(id model-priority,order 55)。

扩展

lib/lists.js:registerList({ id, read, write })。新增可排序列表 = 注册适配器,move 路由与前端拖动复用。

测试

npm test(不启动宿主)。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.