blackteaYES/dsh-thinking-levels-settings

Plugin插件 Native原生 ⭐ 3 MIT Models & Routing模型与路由

面向自定义DSH llm-pi-ai提供商的按模型思考级别设置页面(官方DSH客户端插件形式)

Project Overview项目介绍

This is a native plugin built exclusively for the DeepSeek Harness (DSH) Web client. It adds a new dedicated configuration section under the existing Settings > Thinking Levels menu, specifically built to support custom llm-pi-ai LLM providers. The plugin lets users set individual reasoning levels for each configured model, and persists all user configurations to ~/.dsh/settings.yaml via DSH's official Settings wire API. It strictly follows DSH's official client-plugin development specification, so it integrates seamlessly with DSH's core plugin system without unexpected conflicts.

The plugin offers a wide range of useful features for users who manage multiple custom LLM providers within DSH. It supports per-model reasoning level configuration, three distinct reasoning modes to match different use cases, and input capability toggles for both text and image inputs. It includes pre-configured reasoning level mappings for three popular providers: DeepSeek, OpenAI, and Grok. It also adds grouped folding for providers and models, full-text search and filtering, and JSON import/export for configurations, with native support for DSH's existing internationalization services.

The recommended installation method uses the dsh CLI paired with pnpm, and there are four available installation paths to fit different user environments and preferences: direct install from the master branch, install from a stable Release tarball, one-click script install for environments without pnpm, and full manual installation. The plugin includes runtime detection to handle DSH core version updates, so most of the time users do not need to reinstall the plugin after upgrading their core DSH installation. It is open-sourced under the permissive MIT license, so anyone can use, modify, or distribute it freely without legal restriction.

这是专为 DeepSeek Harness(DSH)Web 开发的原生插件,它在「设置 → 思考级别」中新增了专门的配置页面,支持用户为自定义 llm-pi-ai 提供商的每个模型配置 off/minimal/low 等推理档位。所有配置会通过 DSH 官方 Settings wire 持久化存储到 ~/.dsh/settings.yaml 文件中,完全遵循 DSH 官方的 client-plugin 开发规范。

该插件支持按模型单独配置推理档位,提供三种推理模式,可勾选文本、图像输入能力,内置 DeepSeek、OpenAI、Grok 三个主流服务商的预设档位映射。它还支持提供方和模型的双层折叠,支持按模型信息搜索筛选,提供配置的 JSON 导出导入,适配 DSH 自带的中英文国际化服务,折叠状态会保存到浏览器本地存储。

该插件推荐通过 dsh CLI 搭配 pnpm 安装,支持从 master 分支直装、Release 压缩包安装、一键脚本安装和手动安装四种方式,针对 DSH 版本更新做了运行时探测兼容,一般升级 DSH 后无需重新安装本插件。项目采用 MIT 许可证开源,所有用户都可以免费使用、修改和分发。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add -w github:blackteaYES/dsh-thinking-levels-settings#master

把 blackteaYES/dsh-thinking-levels-settings 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-thinking-levels-settings

DSH Market

给 DSH Web 的 设置 → 思考级别 新增一页:为自定义 llm-pi-ai 提供商的每个模型配置 thinking levels(推理档位) —— off / minimal / low / medium / high / xhigh / max, 通过官方 Settings wire 持久化到 ~/.dsh/settings.yaml(llm-pi-ai.providers.*.models[*].reasoningEfforts)。

官方 client-plugin 形态(DeepSeek Harness 插件系统的自定义插件)。

✨ 功能

  • 按模型配置:为每个模型单独设置推理档位。档位词表从 DSH settings schema 发现 (off / minimal / low / medium / high / xhigh / max,DSH 未来新增档位会自动跟随), 发现失败时回退内置七个
  • 三种推理模式(对应 reasoningEfforts 的三种合法形态,非法组合无法写出):
    • 继承目录 —— 省略该字段,沿用内置目录对该模型的能力声明
    • 非推理 —— 写入 reasoningEfforts: false,模型菜单不提供任何档位
    • 启用档位 —— 逐档声明协议值;除 Off 外至少需要一个档位(DSH 硬校验)
  • 输入能力:勾选 text / image。两个都不勾 = 省略该字段,沿用目录; 这是对端点的断言而非检查,端点不接受的输入由提供方拒绝
  • 预设档位:DeepSeek / OpenAI / Grok 三套协议的预置映射(按当前可用档位取子集)
  • 双层折叠:提供方分组 + 模型行两级折叠,折叠行仍显示档位摘要与 文/图 徽章; 折叠状态记入 localStorage
  • 搜索与筛选:按模型名/ID/提供方搜索;快捷筛选片 全部 / 支持图片,其余筛选 (已配置 / 未配置 / 非推理 / 未保存)与 JSON 导出导入一起收进「更多 ▾」菜单, 选中后按钮上直接显示筛选名;筛选只展开命中分组,不会自动铺开模型卡片
  • 保存与预览:工具栏一个「保存全部」按钮写入当前所有未保存改动;内部按提供方分组, 每个提供方恰好一次整段数组写(set path:["providers",<id>,"models"]),所以不会半成功; 展开区实时预览「模型菜单将提供哪些档位」;写入带 expectedRevision,冲突时提示重读而非覆盖
  • 导出 / 导入 JSON:导出当前草稿(含未保存改动)为 JSON,导入只填草稿供确认, 导入永远不会直接写 settings.yaml
  • 国际化:接入 DSH 自带 locale 服务(zh / en),跟随设置里的语言偏好; locale 服务缺席时回退内置中文文案,页面不会显示裸 key
  • 持久化:写入 ~/.dsh/settings.yaml,重启后保留
  • 组件化:作为 settings.section 槽位贡献注册,挂在设置页「思考级别」分节

写入策略(为什么是整段替换)

设置项的路径操作不支持数组下标:applyPathOp 会把数组当作非对象,于是 path: ["providers", id, "models", "0", "input"] 会把整个 models 列表降级成 {"0": {...}},等于摧毁数据。因此本插件每次保存都是:克隆整个 models 数组 → 只改自己负责的条目 → 用一个 set 操作写回整段数组,并带上 expectedRevision。 DSH 在落盘前先校验,revision 不匹配则拒绝而非覆盖。

📦 安装

先安装 pnpm(方式 A / B 的前置要求)

先检查是否已有 pnpm:

pnpm --version

没有 pnpm 时,优先使用 Node.js 自带的 Corepack:

corepack enable
corepack prepare pnpm@latest --activate
pnpm --version

如果系统没有 corepack,可通过 npm 安装:

npm install --global pnpm
pnpm --version

确认 dsh 能在同一环境的 PATH 中找到 pnpm:

command -v pnpm

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-mihome 下一个 Next dsh-balance-display →