dsh-effort-switcher
by lemonorangeapple
为DSH添加一个类似于Codex的推理强度切换器。
A Codex-like effort switcher for Deepseek Harness.
安装
dsh plugin --profile web add github:lemonorangeapple/dsh-effort-switcherGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
将 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-switcherinsert,只保留 bundle 层。 - 拖动后未生效:检查模型是否支持多个 reasoning effort 级别。对于仅有默认强度或不支持 reasoning 的模型,插件会隐藏控件。
原始 README: https://github.com/lemonorangeapple/dsh-effort-switcher/blob/master/README.md ↗
同类插件
查看全部 →
dsh-web-ui-all
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-web-ui
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-TUI
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。

DSH-better-sidebar
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。

working-activity
让 agent 的"工作状态行"活过来——实时工具动态与进度、俏皮文案、模型自述、上下文预警。同一套想法,适配两个平台: pi CLI 与 DeepSeek Harness(DSH) 。

deepseek-idesign
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。