blackteaYES/dsh-thinking-levels-settings
面向自定义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 许可证开源,所有用户都可以免费使用、修改和分发。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-thinking-levels-settings(blackteaYES/dsh-thinking-levels-settings)
仓库:https://github.com/blackteaYES/dsh-thinking-levels-settings
本站详情页:https://www.yhbd.top/plugins/blackteayes-dsh-thinking-levels-settings/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-18 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 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 →
Q00/ouroboros
crafter-station/petdex
whiteguo233/OpenBiliClaw
anywhere-labs/Agents-Anywhere
agentrq/agentrq
freestylefly/wesight