dshbase

插件目录 / Developer / dsh-effort-switcher

dsh-effort-switcher

已验证 · 实测可装 lemonorangeapple

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-22最近推送
跨平台平台

功能简介

一个用于DeepseekHarness的推理强度滑块。

✅
我们的评价
可用 — 实测通过,早期项目

一个用于DeepseekHarness的推理强度滑块。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

DSH Effort Switcher

将 DSH Web 聊天输入区原有的模型/推理强度选择入口替换为推理强度滑动条。滑块会调用 DSH 的 modelDirectories 服务提交当前模型的 reasoningEffort,因此设置会作用于后续请求。

屏幕截图

要求

  • DSH 0.1.0-rc.6 或兼容的 Web profile。
  • 当前模型必须暴露至少一个 reasoning effort 级别。普通非推理模型不会显示滑块。

安装

dsh plugin --profile web add github:lemonorangeapple/dsh-effort-switcher

命令会把本包装进当前 Web profile,并因 dsh.bundle 声明自动写入 dsh.profile.bundles。不必再编辑 profile 的 cordis.patch.yml。

完全停止并重新启动 dsh web,然后刷新 http://127.0.0.1:3080。DSH 仅在 Web 进程启动时扫描 dsh.client 元数据;仅刷新旧页面或运行独立开发服务器不会加载本插件。

如果 profile 的 cordis.patch.yml 里还留着旧的手工挂载(id: effort-switcher),先删掉,避免双重挂载。

卸载

dsh plugin --profile web remove dsh-effort-switcher

卸载后同样需要重启 dsh web。

验证安装

在 profile 目录中运行:

node --input-type=module -e "const plugin=await import('dsh-effort-switcher'); console.log(plugin.name)"

预期输出:

effort-switcher

启动 DSH Web 后,选择一个支持 reasoning effort 的模型。聊天输入区模型控件的位置应显示“推理强度”滑块;拖动滑块后,DSH 会重新提交当前模型及新的 reasoningEffort。

项目结构

index.js           Browser client module and slider UI.
host.js            Minimal Cordis host entry used by DSH loader discovery.
cordis.patch.yml   Bundle patch that inserts the host plugin row.
package.json       Package exports, dsh.bundle, and dsh.client manifest.
README.md          Installation and operating instructions.
.gitignore         Local development exclusions.

开发

从本仓库目录把本地 checkout 链进 Web profile:

dsh plugin --profile web add .

修改 index.js 后,必须重启 dsh web 并刷新现有 Web GUI,除非当前 DSH checkout 已运行针对该客户端包的 HMR 构建监视器。

可运行基础语法检查:

npm run check

排障

  • 滑块没有显示:确认 dsh.profile.bundles 中存在 dsh-effort-switcher,完全重启 dsh web,并在模型选择器中选用支持 reasoning effort 的模型。
  • 安装后页面未更新:Web 启动图已经生成;停止旧 dsh web 进程后重新启动。
  • 双重控件或重复挂载:删掉 profile cordis.patch.yml 里旧的 effort-switcher insert,只保留 bundle 层。
  • 拖动后未生效:检查模型是否支持多个 reasoning effort 级别。对于仅有默认强度或不支持 reasoning 的模型,插件会隐藏控件。

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-effort-switcher」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:lemonorangeapple/dsh-effort-switcher

Headless(CLI)profile:

dsh plugin --profile headless add github:lemonorangeapple/dsh-effort-switcher

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →