🎁 福利专区全网大模型免费应用 + 新用户福利 + 注册活动入口,低成本玩转 AI

思考强度编辑 HaoyueQin/dsh-better-reasoning-effort

DeepSeek Harnessv0.5.4
HaoyueQin15 天前有提交已提供中文文档扫描:含敏感能力

在 DeepSeek Harness 里为第三方模型编辑推理强度:按模型设置思考等级,靠知识库加协议推断,直接在官方 Models 页面卡片里改。

53.1/100
综合分
61
GitHub 星标
1,135
npm 周下载
—/5
用户评分

数据截至 2026/10/19 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。

安装命令 · 需先装 dsh CLI 引擎
dsh plugin --profile web add dsh-better-reasoning-effort
npm 源 · dsh-better-reasoning-effort 的发布者账号已校验与本仓库一致

状态速览

判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态
信任档位:已验证
是什么
dsh 原生插件 · model
装得上吗
本站已在 dsh 0.2.1-rc.2 下真实安装成功
非静态推断
L5 · 运行时冒烟等级说明 →
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
活跃:最近一次提交在 15 天前
档位由哪些信号合成

本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。

验证判据与等级说明 →
社区实装还没有人打卡 · 装过的第一个就是你
安装兼容性检查✓ 自动检查通过
展开查看检查明细 ↓

以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。

✓npm 包dsh-better-reasoning-effort @ 0.5.4
✓Node 引擎要求 ^22.19.0 || >=24 · 基线 Node 22.19 满足
✓dsh CLI 依赖未声明 dsh 版本约束
✓入口文件main/exports/bin 已声明

验证方式:npm registry 存在性 + package.json 静态校验 · 最后检查 2026/10/30 09:04:20

安全扫描自动 · 静态分析源码
v2.7.0
🔵 扫描:含敏感能力尚无人工评估
展开查看扫描说明与证据 ↓

静态扫描发现插件具备触达本地系统的能力:执行外部命令、读写/删除本地文件、读取剪贴板或密钥类环境变量(至少其一)。这是能力清单,不是危险判定——具体能力项与证据见下方,安装前请自行判断是否需要。

读写/删除本地文件发起外部网络请求
查看扫描证据(共 5 处,展示前 5 条)
  • 读取本地文件
    lib/index.js:1528
    if (existsSync(candidate)) return candidate;
  • 读取本地文件
    lib/index.js:1537
    return adapterSourcePatched(readFileSync(path, "utf8")) ? "patched" : "stock";
  • 读取本地文件
    lib/index.js:1550
    if (!existsSync(manifest)) continue;
  • 发起网络请求
    lib/index.js:2023
    const upstream = await fetch(listingURL, {
  • 发起网络请求
    lib/client.js:805
    `;var Tt=require("react"),En=require("react-dom");var v=require("react");var fn=["off","minimal","low","medium","high","xhigh","max"],hr=["text","imag
扫描于 2026/11/3(0 天前) · 范围 入口闭包 + 全包扫描 · 来源 npm 发布包

静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。

依赖的 DSH / Cordis 模块
@deepseek-ai/cordis@deepseek-ai/dsh-api-remotes@deepseek-ai/dsh-api-session-controller@deepseek-ai/dsh-client-locale@deepseek-ai/dsh-client-store@deepseek-ai/dsh-client-ui-model-selection@deepseek-ai/dsh-client-ui-settings@deepseek-ai/dsh-client-ui-slots@deepseek-ai/dsh-host-webserver@deepseek-ai/dsh-llm-pi-ai@deepseek-ai/dsh-settings@deepseek-ai/schemastery
给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个

界面预览

1 张 · 点击查看大图

功能亮点

  • 按模型设置思考等级
  • 知识库加协议推断
  • 官方页面卡片内修改
v0.5.42026-10-19
· 版本概述 / Release Overview This release hands reasoning-level editing on hand-declared pi-ai routes to the official “Reasoning levels” control that arrived in the 0.2.1 line: the plugin stands its own ladder down on exactly those rows, keeps the default-effort pick and endpoint compatibility, and never overwrites the official declaration. It also fixes the composer menu finder adopting the settings header's restart dropdown on surfaces without a composer card, and stops the official empty compat envelope from reading as an unsaved edit. Verified on 0.2.1-rc.2. 本次发布把手写 pi-ai 路由上的思考等级编辑交给 0.2.1 线新增的官方「推理等级」控件:插件在这些行收起自己的档位,只保留默认档位与端点兼容,并且不再覆盖官方声明。同时修复了无 composer card 界面上模型菜单查找误把设置页头部的重启下拉当作模型菜单的问题,以及官方空 compat 包裹对象被误判为未保存修改的问题。已在 0.2.1-rc.2 上验证。 · 变更 / Changed · On rows where the official Reasoning levels block is present, the plugin hides its ladder controls; the default-effort pick, endpoint compatibility and Auto-adapt remain. Every write then carries efforts: 'keep', and Auto-adapt reports its suggested levels as text instead of writing them. · Rows without the official block (installed-catalog routes, older kernels) keep the plugin's ladder unchanged. · 在出现官方「推理等级」块的行上,插件收起自己的档位控件;默认档位、端点兼容与「自动适配」保留。此时所有写入都携带 efforts: 'keep',「自动适配」只以文本报告建议档位,不再写入。 · 没有官方块的行(已安装目录路由、旧内核)保持插件自己的档位编辑不变。 · 修复 / Fixed · Issue #24: on a surface without [data-composer-card], the model-menu finder no longer falls back to a document-wide scan, so the settings header's restart dropdown keeps its items instead of being replaced by the effort slider. (#24, #25) · After a custom model is saved on the 0.2.1-rc.2 Models page, an untouched row no longer reads as modified: only the compat fields the editor renders participate in the modified flag, so the official empty compat envelope is ignored. (293e053) · Issue #24:在没有 [data-composer-card] 的界面上,模型菜单查找不再退回全文档扫描;设置页头部的重启下拉保留原有三项,不再被思考强度滑块替换。(#24、#25) · 在 0.2.1-rc.2 的模型页保存自定义模型后,未修改的行不再显示为已修改:只有编辑器实际渲染的 compat 字段参与判断,官方写入的空 compat 包裹对象被忽略。
v0.5.32026-10-14
· 版本概述 / Release Overview This release closes both edges of third-party provider configuration: routes served by the installed catalog are now read and written through the official modelOverrides store (their installed catalog survives an edit), and the request-header editor and the vendor-default guard are kept — with the guard's activity made visible instead of being a process-wide black box. It also supports the 0.2.1-alpha kernel line, and lets a model served through an aggregator name that gateway's own reasoning dialect. 本次发布补齐了第三方供应商配置的两端:由已安装目录提供模型的路由,现在通过官方 modelOverrides 存储读写(编辑不再替换已安装目录);请求头编辑器与默认档兜底保留下来,并且后者的运行情况从进程级黑盒变成了可查。同时支持 0.2.1-alpha 内核线,并让经聚合网关提供服务的模型使用网关自己的推理方言。 · 新增 / Added · Routes served by the installed catalog are editable: an edit lands as a model override instead of replacing the catalog with a models array, and the first override for any catalog model now writes instead of being refused as model-not-found. · The request-header section reports what the vendor-default guard did: how many effort-less calls it examined, how many it rewrote, and the model of the most recent rewrite; the same report is served at /dsh-better-reasoning-effort/headers-config. · The 0.2.1-alpha kernel line is supported alongside 0.2.0-rc.2. · 由已安装目录提供模型的路由可以编辑了:编辑落成一条模型覆盖项,而不再用 models 数组替换整个目录;并且目录中任一模型的首个覆盖项现在能够写入,而不是被当作 model-not-found 拒绝。 · 请求头区域会报告默认档兜底做过什么:检查过多少无档位调用、改写了多少、最近一次改写的模型;同一份报告由 /dsh-better-reasoning-effort/headers-config 提供。 · 在 0.2.0-rc.2 之外,同时支持 0.2.1-alpha 内核线。 · 变更 / Changed · Automatic fill is narrower: only models that match a curated knowledge-base entry are filled at boot or when added mid-session. Unknown models stay untouched until you accept an Auto-adapt suggestion. · A model served through OpenRouter, Together or Baseten now carries that gateway's own reasoning dialect, whatever vendor family it belongs to. · The composer effort slider no longer draws a locator dot per level. The drag still snaps to whole levels. · The request-
v0.5.22026-09-30
· 破坏性变更 / Breaking Changes The plugin's own composer model search box is gone: DeepSeek Harness 0.2.0-rc.2 ships a search box in the model list pane (shown above four models), and the two boxes competed for the same input. Use the official one — it matches model names only, where the plugin's box also matched provider names and model ids. 本插件自带的 Composer 模型搜索框已移除:DeepSeek Harness 0.2.0-rc.2 的模型列表面板自带搜索框(模型数超过 4 时出现),两个输入框争夺同一处输入。请改用官方搜索框——它只按模型名匹配,而插件的过滤框此前还支持供应商名与模型 ID 分词匹配。 · 版本概述 / Release Overview This release adapts the plugin to DeepSeek Harness 0.2.0-rc.2, hands model search back to the official UI, and fixes two paths that the new kernel broke or left half-wired: the composer slider is located again while the model list pane is open, and Auto-adapt now drives the official Input-types control instead of only writing a pending declaration. 本版把插件适配到 DeepSeek Harness 0.2.0-rc.2,把模型搜索交还官方界面,并修复新内核破坏或未接完的两条路径:模型列表面板打开时 Composer 滑块重新可被定位;Auto-adapt 现在会直接驱动官方「输入类型」控件,而不再只写一份待保存的声明。 · 移除 / Removed · The composer model search box is removed: the filter box itself, its stylesheet rules, its four copy keys and its spec. · 移除 Composer 模型搜索框:过滤框本体、样式规则、四条文案键及其测试。 · 修复 / Fixed · The composer slider is located again while the model list pane is open: 0.2.0-rc.2 swaps that popover's role to group, which the discovery probe refused, so the plugin lost the menu — and unmounted its replica — for as long as models were browsed. · Auto-adapt now clicks the official Input-types checkbox that disagrees with its suggestion, so a modality the knowledge base recommends becomes visible right away instead of only after Save; the pending declaration is still written exactly as before. · 模型列表面板打开时 Composer 滑块重新可被定位:0.2.0-rc.2 把该弹层的 role 换成 group,旧探测不接受它,于是用户浏览模型期间插件丢失菜单、并卸载了自己的滑块副本。 · Auto-adapt 现在会点击官方「输入类型」中与建议不符的复选框:知识库推荐的模态立即可见,而不再只在保存后才反映;待保存声明的写入路径与之前完全一致。 完整变更 / Full Changelog:
数据来自仓库的 GitHub Release,可能与插件实际版本不一致。

README

由 DeepSeek 最新模型翻译生成
DSH Better Reasoning Effort Awesome DSH Plugin 在 DeepSeek Harness 中为第三方模型编辑思考强度与输入模态——直接在官方「模型」页的编辑卡内完成;另有一个 Composer 官方模型菜单内的思考强度快捷滑块(改编自 HanaAyane 的 dsh-reasoning-effort,见致谢)。 为什么需要它 llm-pi-ai 适配器原生支持每模型声明 reasoningEfforts 与 input,但官方「模型」页编辑卡刻意不暴露这两个字段。于是第三方模型在 Composer 里没有思考档位选择器,只有官方 DeepSeek API 能设思考强度,手工声明的模型被当作纯文本,想配置只能手写 settings.yaml 块。本插件把这两份配置能力都搬回 UI:官方模型编辑卡内直接编辑,加一键自动适配。 特性 - 官方页内注入 — 官方「模型」页每个模型行的展开区内出现「选项」编辑块(思考强度、输入模态、端点兼容),随卡片自身的「保存」统一提交;改动即时进入待写入,「取消」则与卡片字段一起丢弃。
展开完整文档(README 剩余 1 节)
DSH Better Reasoning Effort

Awesome DSH Plugin

在 DeepSeek Harness 中为第三方模型编辑思考强度与输入模态——直接在官方「模型」页的编辑卡内完成;另有一个 Composer 官方模型菜单内的思考强度快捷滑块(改编自 HanaAyane 的 dsh-reasoning-effort,见致谢)。

为什么需要它

llm-pi-ai 适配器原生支持每模型声明 reasoningEfforts 与 input,但官方「模型」页编辑卡刻意不暴露这两个字段。于是第三方模型在 Composer 里没有思考档位选择器,只有官方 DeepSeek API 能设思考强度,手工声明的模型被当作纯文本,想配置只能手写 settings.yaml 块。本插件把这两份配置能力都搬回 UI:官方模型编辑卡内直接编辑,加一键自动适配。

特性

- 官方页内注入 — 官方「模型」页每个模型行的展开区内出现「选项」编辑块(思考强度、输入模态、端点兼容),随卡片自身的「保存」统一提交;改动即时进入待写入,「取消」则与卡片字段一起丢弃。
- 自动适配 — 一键填入推荐档位、线上取值与模态,来源是内置模型知识库(15 家厂商 65 个条目,见支持的模型)、线协议推断,以及对供应商原始 /models 列表的同源探测;每条建议标注置信度,参考容量以只读提示出现、自行照抄。
- 自动填充 — 只有命中官方知识库的模型才会在启动时或会话中新增时自动补写(autofill: false / modalityAutofill: false 可关);未知模型保持原样,需用户明确接受「自动适配」建议。
- 三种意图 — 全不勾 = 取消声明(回到继承);只勾 off = 禁用推理;勾选档位 = 写入声明。
- 目录安全写入 — 使用 DSH 官方 modelOverrides 的路由保留已安装模型目录,只写入当前编辑模型的覆盖项。
- Composer 思考强度滑块 — 官方模型菜单的弹出体被替换为上游风格的档位滑块(拖动 / 键盘,乐观提交、被拒回滚),附一行模型条目打开官方模型列表;右下角触发钮保持原样。切换模型会通过会话记忆链沿用你的档位(issue #4 的每模型默认档跨会话优先)。
- 每模型默认思考强度 — 模型行上的「默认思考强度」选择器,存在设置文档里,每个新会话打开该模型即用它。
- 请求头与 User-Agent — 提供商卡片内编辑官方的 headers 字段(掩码显示、路径合并、随卡片保存),并在 fetch 层按 origin 精确接管 user-agent 的覆盖(官方适配器保留该名称);同源 /models 探测一并覆盖,冲突时提示而不猜。
- 防御式注入 — 一切锚定官方页 DOM;官方升级改变结构时注入自动暂停,官方页不受影响。
- 双语文案(中文 / English)。

支持的模型

自动适配知识库内置 15 家厂商 65 个条目(DeepSeek、OpenAI、Anthropic Claude、Gemini、Grok、Qwen、GLM、Kimi、Mistral、MiniMax、MiMo、豆包、混元、阶跃、文心——2026-08/09 逐条对照官方文档复核,含视觉变体与无档位控制家族)。完整表格——匹配写法、档位 → 线上取值阶梯、默认档、模态、参考容量——见 docs/supported-models.md(由 src/knowledge.ts 生成,代码是权威数据源)。未列出的模型不会被自动填充;用户仍可手动审核低置信度的「自动适配」建议。

安装

需要 DeepSeek Harness 0.1.5-alpha.1 或更高(按行联合的 peer 范围;0.1.2-rc / 0.1.3-alpha 线不再支持——请使用插件 0.3.7)。当前对照 0.2.0-rc.2 与 0.2.1-alpha 线编译与门禁。逐内核 seam 核查记录见 docs/compatibility-notes.md。

从 npm 安装(dsh 的 web profile 下):

dsh plugin --profile web add dsh-better-reasoning-effort

DSH 内置的 pnpm 11.7.0 默认 minimum-release-age 为 24 小时:在某个版本发布后一天内发起的安装会解析到「足够旧的最新版」并安装它,而插件管理器显示的仍可能是更新的那一版。写明版本号即可立刻安装——pnpm 接受指定版本,并把它记入豁免:

dsh plugin --profile web add dsh-better-reasoning-effort@0.5.2

release 页面同时附带打包好的 tarball,这条路线跳过 registry 与发布冷静期。tarball 是成品,pnpm 不执行任何脚本,也不需要构建授权。URL 指向单一版本,升级时替换它即可:

dsh plugin --profile web add \
https://github.com/HaoyueQin/dsh-better-reasoning-effort/releases/download/v<version>/dsh-better-reasoning-effort-<version>.tgz

从 GitHub 源码安装,用于开发与审查而非日常安装。pnpm 要跑 prepare 钩子构建 lib/,且只在 allowBuilds 存在对应条目后才放行。安装器会打印确切的键,该键包含解析到的 commit:把它加进 profile 的 pnpm-workspace.yaml 后重新执行 add。新 commit 会改变这个键,因此每次发版都要重新授权;不含 commit 的键形式需要比内置的 11.7.0 更新的 pnpm:

dsh plugin --profile web add github:HaoyueQin/dsh-better-reasoning-effort

或链接本地检出做开发:

npm install && npm run build
dsh plugin --profile web add link:D:/Project/dsh-better-reasoning-effort

重启 dsh web 并强制刷新浏览器。

使用

1. 在官方「模型」页配置第三方供应商(API Key 等)。
2. 展开某个模型行:官方容量字段下方是编辑块。
- 勾选档位(off / minimal / low / medium / high / xhigh / max),填线上取值(如给 high 填 ultra,Composer 选 High 时网关收到 ultra);
- 在「输入模态」区勾选图片输入,声明模型接受什么;
- 点「自动适配」填推荐档位与模态——参考容量以只读提示出现,可自行照抄进官方输入框;
- 改动即时进入待写入,点卡片自身的「保存」时一并落盘;「取消」(或刷新)则与卡片字段一起丢弃。
3. 协议兼容时,底部会出现「端点兼容」分区——openai-completions 上设思考预算字段 / vLLM 优先级,openai-responses 上设 max_output_tokens 的处理方式。
4. 全不勾 + 保存 = 取消声明(回到继承);只勾 off + 保存 = 禁用推理(false);模态行「清除声明」+ 保存 = 回到继承提供方默认。

声明后的模型在 Composer 里立即可选思考强度;声明了图片输入的模型可以端到端传附件。

配置

host 侧接受可选配置项(以下为默认值):

- insert:
- id: dsh-better-reasoning-effort
name: dsh-better-reasoning-effort
config:
autofill: true # 启动时自动填充未声明的模型 modalityAutofill: true # 上述填充是否连带输入模态声明 probeTimeoutMs: 15000 # /models 探测请求超时(毫秒)
bootRetryDelaysMs: [1000, 2000, 4000, 8000, 16000, 30000]
defaultGuard: true # 强制思考梯子上的无档位调用落厂商默认档

工作方式(架构)

Browser (lib/client.js) Host (lib/index.js)
├─ DOM injector └─ Auto-fill
│ MutationObserver on the models page settings/document-updated →
│ → mounts EffortEditor in each invalidates the host cache;
│ model row's disclosure browser idle pass fills models
├─ Composer injection
│ MutationObserver on the document
│ → ComposerSlider (root pane)
├─ EffortEditor (React component) (knowledge base + inference)
│ level checkboxes / wire values /
│ input-modality toggle /
│ auto-adapt (zoned suggestions) / committed with the card's Save
│ └─ writes settings.mutate (llm-pi-ai)

- src/knowledge.ts 的 suggestEfforts() 是知识库 + 推断引擎——host 与浏览器共用的纯函数。
- src/client/injection/models-page-editor.ts 的 reconcile() 定位模型行并挂载编辑器;浏览器侧由 src/client/index.ts 组装,每个注入缝一个模块(src/client/injection/)。
- src/client/ops.ts 的 createEditorApi() 经 settings.mutate 写声明,保留行上其他字段,版本冲突时重读并重试一次。

开发

npm run typecheck # tsc 严格检查
npm test # vitest:知识库 / 推断 / 自动填充 / DOM 注入 / 写入
npm run build # lib/*.js + lib/client.js(module-loader bundle)

对照 0.2.0-rc.2 与 0.2.1-alpha.2 官方包编译与门禁;逐内核记录见 docs/compatibility-notes.md。

已知限制

- 注入依赖官方「模型」页的 DOM(aria-label / class);官方升级可能让注入暂停直至适配——期间官方页不受影响。
- 自动适配探测路由只应答回环与 IP 字面量 host(核心 /api 的 Host 白名单纪律、无 trustedHosts 旁路),且从不跟随重定向——只在 30x 后面列模型的网关拿不到端点证据,自动适配回退到知识库与协议推断。
- reasoningEfforts 声明是建议——端点真正接受什么以它的文档为准,请在 UI 里微调;知识库不追求穷尽,没有档位阶梯的家族不设条目。
- 端点兼容开关刻意永不自动填充:它们描述的是网关行为而非模型能力。
- 模态词汇跟随 pi-ai 核心(当前 text / image);更宽的网关支持(PDF / 音频 / 视频)按家族记录在案,核心词汇扩充前声明不了是设计使然。
- 命名启发式的模态建议(视觉风味 id)刻意标注低置信度,使用前请核对。
- 自建中转:对没有官方 host 认领的路由,自动填充会钉 supportsDeveloperRole: false(部分上游拒绝 developer 角色);显式值永不被覆盖。
- 强制思考模型(无 off 的梯子,如 GLM-5.3):无档位调用自动落厂商默认档而不是发 thinking: disabled——设 defaultGuard: false 可恢复原行为。路由级 reasoning 默认档可用官方式覆盖同一批调用、无需 guard:适配器取 options.reasoningEffort ?? profile.reasoning,配了默认档的路由不会走到关闭档(guard 也会为它让路)。
- guard 的活动情况在请求头区域内报告(已改写 N 次无档位调用、最近一次是哪个模型),因此「已安装但闲置」与「正在工作」可以区分;同一份报告也由 /dsh-better-reasoning-effort/headers-config 提供。
- headers 中的凭据在磁盘上不脱敏:只读视图会掩码,但设置文档仍明文保存——请当 API key 对待。
- 请求头区域的编辑态检测读取非官方信号(官方行没有编辑器状态的 data 属性);官方若改名该类词根,区域会停止出现——绝不弄坏页面。
- 同一时间只应有一个 user-agent 改写器:同类 header 插件落在同一层,后写者赢;插件会检测并提示已知同类,但不覆盖未知情况。
- 请求层接管依赖官方适配器每请求新建 SDK 客户端——有端到端测试守护该边界,变化时会响亮地失败而不是静默失效。

致谢

Composer 滑块改编自 HanaAyane 的 dsh-reasoning-effort(MIT)——感谢原作者与 codex 风格档位控件的创意。本集成保留了上游的会话选择契约与滑块交互形态,并有意做了几处改变:只保留白色圆钮(不带 chibi 小鱼钮)、绝不替换官方模型席位、以精简重实现跑在 0.1.5-alpha+ 线上。如果用过上游插件,请先移除以免同一席位出现两个档位控件:

dsh plugin --profile web remove dsh-reasoning-effort

Activity

HaoyueQin/dsh-better-reasoning-effort GitStock K-Line Chart

License

MIT
预览分享卡片长什么样 ↓HaoyueQin/dsh-better-reasoning-effort
分享 · DeepSeek Harness Hub
HaoyueQin/dsh-better-reasoning-effort

在 DeepSeek Harness 里为第三方模型编辑推理强度:按模型设置思考等级,靠知识库加协议推断,直接在官方 Models 页面卡片里改。

回到顶部