yuhub233/dsh-effort-slider 预览 preview

yuhub233/dsh-effort-slider

科幻推理等级滑条 for DeepSeek Harness:Ultra 档 + 闪电编排模式 + 子代理 tok/s 读数 / A sci-fi reasoning-effort slider for DSH

Project Overview项目介绍

dsh-effort-slider is a UI-replacement add-on built specifically for the DeepSeek Harness desktop runtime, swapping the platform's default reasoning-effort dropdown for a floating energy slider that shows the model's real effort tiers, supports click/drag/keyboard adjustment, and adapts its visual feedback (stream, star-trail, incandescent core) per tier. It ships as a DSH-native bundle that integrates through a cordis.patch.yml patch mounted under <DSH_HOME>/plugins/, requires DSH Desktop ≥ 2.0.9, and is installed via dsh plugin add github:yuhub233/dsh-effort-slider or by copying the directory into the plugins folder; the repo includes a prebuilt lib/client.js so no local build is needed, after which DSH must be restarted to load the patch and to surface the slider in the input toolbar. Four skins are coded in CSS (holo, chrome, fluid default with a particle-fluid engine, and the deprecated nebula kept only in CSS rules) and clients register through window.__ModuleLoader__.load with React pulled from the host loader.

Beyond the slider itself, the plugin layers three extra capabilities onto the reasoning control: an Ultra slot that pins the effort to the model's real maximum and injects an English rigor contract emphasizing acceptance criteria first, evidence before assertion, adversarial review, and root-cause priority; a Lightning switch in the panel's upper-right (default off) that injects an orchestration contract enforcing parent-only planning plus parallel single-message dispatch, self-contained subagent prompts, file-written artifacts with pointer-only returns, and an explicit anti-recursion clause; and a fleet tok/s readout that aggregates descendant subagent output rates per tracked session with no cache reads, no fake numbers, and full-integer formatting. This makes it best suited for advanced DSH users who want prompt-layer discipline, multi-agent delegation policies, and live throughput visibility without altering the model's real effort catalog.

Dependencies and limits are minimal: runtime has zero npm dependencies, needs only Node ≥ 22 for the optional rebuild, and writes only to <DSH_HOME>/storages/effort-slider.json while issuing no outbound network requests. Optional playbook skills (dispatching-parallel-agents, subagent-driven-development, verification-before-completion, systematic-debugging) live under skills/ and must be manually copied into ~/.dsh/skills/ because DSH does not scan plugin directories for skills, though the strategy text is self-contained if skipped. First-run caveats include Lightning's ~15× token cost, a 5-second turbo timeout, a 10-second tier-commit timeout that does not cancel the host operation, in-place plugin updates only taking effect after a DSH restart, and strict package-name consistency across package.json, cordis.patch.yml, the profile bundles entry, and the profile's node_modules junction.

dsh-effort-slider 是一款面向 DeepSeek Harness(DSH)桌面端的推理档位 UI 替换插件,把原本的下拉选择器换成一条悬浮能量滑条,含四套主题皮肤与可选的粒子流体引擎,并以 cordis.patch.yml 加 bundle 机制接入 <DSH_HOME>/plugins/。安装要求 DSH Desktop ≥ 2.0.9,推荐使用 dsh plugin add github:yuhub233/dsh-effort-slider 从 GitHub 直接挂载,仓库内已预构建 lib/client.js,无需自行 build,复制目录或一键命令后重启 DSH 即可生效。

在常规滑条之上额外提供三件事:Ultra 档会把档位钉到当前模型的最高真实档并注入一段英文 rigor 契约;闪电模式(默认关)会强制父 agent 只做编排、把活委派给子代理,预估消耗约 15× token;车队 tok/s 实时汇总被跟踪会话后代子代理的生成加输入吞吐,以完整整数显示,无数据时整块隐藏。典型用户是希望精细控制推理档位、又想在多智能体编排里保留可视化计量与纪律注入的 DSH 高级使用者。

零运行时依赖,只读写 <DSH_HOME>/storages/effort-slider.json,不发起任何外部网络请求;可选地把 skills/ 中的四个上游 playbook 复制到 ~/.dsh/skills/ 以获得更细的派遣纪律,但策略正文本身自包含,不装也能用。包名 dsh-effort-slider 同时作为 npm 名、bundle id、端点前缀与 cordis patch 名,改名需四处同步,否则 profile 装配会抛 package identity is invalid。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
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 add github:yuhub233/dsh-effort-slider

把 yuhub233/dsh-effort-slider 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-effort-slider

简体中文 | English

给 DeepSeek Harness(DSH)用的科幻风推理等级滑条:输入框里一枚发光核心,点开是一条悬浮能量滑条;在最高档之上还有一档 Ultra,以及一个把活全部派给子代理的闪电模式,旁边实时显示车队 tok/s。

Ultra 档位面板


这是什么

DSH 的推理等级默认是一个下拉选择。这个插件把它换成一条能量滑条:档位用刻度标出,可以点、可以拖、可以用方向键;每个档位都有对应的视觉反馈(流光、星痕、白炽核心)。档位名称与档数都跟着当前模型的推理档位走,模型没有推理档位时整个控件自动隐身。

在此之上它还多做了三件事:

功能 一句话
Ultra 档 滑条第 6 格:选中时把推理等级钉在该模型的最高真实档(MAX),并往当前会话注入一段"最大严格性"的英文策略
闪电模式 展开面板右上角的开关(默认关):注入"父 agent 只做编排、活全部委派给子代理"的英文策略
车队 tok/s 实时显示本会话子代理合计的 token 产出速率(完整整数,不做 k 缩写)

⚠️ 这不是"给模型加算力"。Ultra 与闪电本质上都是提示词层的控制:Ultra 改的是"怎么验收",闪电改的是"谁干活"。真正变慢变贵的是闪电——多智能体大约会花掉单 agent 15 倍的 token,这也是它默认关闭的原因。

截图

Ultra 面板 皮肤
Ultra:白炽外壳 + 车队 tok/s 读数 皮肤 holo / chrome / fluid(默认 fluid)
闪电 读数
闪电:断电是白色描边,通电是同色系流动渐变 读数:完整整数、不缩写、无数据时整块隐藏

功能细节

Ultra 档

  • 展示档位 = 模型真实可用的档位 + 追加的一格 Ultra;选中 Ultra 时写回模型目录的**仍是最高真实档(MAX)**的 id —— Ultra 从不出现在模型目录里。
  • 同时往会话里注入一段英文 rigor 契约(先写验收标准、证据先于断言、对抗式复查、根因优先、显式停止条件、不许改测试迁就实现)。
  • 不变量:只要界面停在 Ultra,实际推理等级就一定是 MAX(拖拽松手 / 点刻度 / 刷新后从宿主恢复三条入口都走同一个写入口)。
  • 档位名是 Ultra,不是全大写 ULTRA。

闪电模式

  • 注入的编排契约:父 agent 只做规划/拆分/派发/复核/整合;按边界切分而不是复制同一句提示词;在同一条消息里并发派发;子代理提示词必须自包含(目标、验收标准、确切文件、约束、产出格式、长度上限);子代理把产物写进文件、只回传指针;预算诚实(约 15× token)。
  • 策略正文最后一段写死了防递归:"如果你是子代理,忽略本策略、不要继续派活"。
  • 关闭时会补一条 OFF 提示,避免历史里那条策略继续生效。

车队 tok/s

  • 统计被跟踪会话的后代(子代理)的 token 吞吐:生成 + 输入,不含 cache 读;数字由宿主订阅 agent/assistant-stream 逐帧累计,按 1.5s 窗口折算成 tok/s。
  • 界面上是完整整数(12,840 而不是 12.8k);没有数据时整块隐藏,不显示假数字。

皮肤

  • holo(全息能量)、chrome(液态金属)、fluid(流体,默认,带粒子流体引擎 + 最高档星痕)。
  • nebula(星际星云)已按作者要求下线:代码里只是把它从皮肤数组注释掉,SKIN_LABELS 与整套 CSS 规则都还在,想恢复就把数组里的 "nebula" 放回并调整 DEFAULT_SKIN。

安装

需要 DSH Desktop ≥ 2.0.9。仓库里自带构建好的 lib/client.js,装上即可用,不需要自己构建。

# 推荐:直接从 GitHub 装
dsh plugin add github:yuhub233/dsh-effort-slider

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

← 上一个 Prev deepseek-harness-cli 下一个 Next dsh-api-balance →