vvvspec/better-reasoning-slider
官方风格输入框 + 浮动推理能力滑块弹窗,节点与滑块对齐,弹窗跟随 Harness 主题自适应。
已收录
0
Ui
Bundle 已验证
功能介绍
官方风格输入框 + 浮动推理能力滑块弹窗,节点与滑块对齐,弹窗跟随 Harness 主题自适应。
适合
- 经常在输入框中切换模型和推理强度的 DSH Web 用户。
- 偏好节点吸附滑块而非推理强度下拉菜单的用户。
- 需要输入框选择与官方 `/model` 弹窗保持一致的工作流。
不适合
- 无头或非 Web profile,因为插件要求 DeepSeek Harness Web profile。
- 未提供 `reasoning.efforts` 的模型;此时只有模型选择器,没有推理滑块。
- 已满足于官方模型与推理强度选择器、不需要替代控件的用户。
README
better-reasoning-slider
A DeepSeek Harness WebUI plugin that replaces the composer’s model/effort dropdown with a compact, theme-aware control:
- Model picker — click the model pill to switch models.
- Reasoning effort slider — drag to adjust effort (e.g. low / high / max) with visible tick nodes on the track.
The slider writes through the same per-session ModelDirectory as the official @deepseek-ai/dsh-client-ui-model-selection plugin, so the /model popup and the composer stay consistent.
Features
- Official-style composer trigger: model name + current effort + chevron.
- Floating popup that stays inside the viewport.
- Model groups and descriptions from the existing model directory.
- Reasoning effort as a continuous slider with snap-to-node behavior.
- Nodes are rendered directly on the slider track and align with the thumb.
- Theme adaptive: uses DSH design tokens (
--dsw-specific-menu,--dsw-alias-*,--dsw-shadow-lv3), so it follows light/dark Harness themes. - No configuration file needed.
Install
From GitHub (recommended)
dsh plugin --profile web add github:vvvspec/better-reasoning-slider
Or with a full URL:
dsh plugin --profile web add https://github.com/vvvspec/better-reasoning-slider
Restart dsh web after installing.
Local development
dsh plugin --profile web add file:/absolute/path/to/better-reasoning-slider
Restart dsh web.
Usage
- Open the Harness WebUI.
- In the composer, click the model pill (e.g. the current model name).
- A popup opens with:
- The model list (grouped by provider).
- The Reasoning slider below the model list.
- Drag the slider thumb to the desired effort level.
- The thumb snaps to the nearest available node when you release.
- The selected effort is written to the current session and stays consistent with
/model.
How it works
- The plugin shadows the official
conversation.input.modelslot. - It uses the same
modelDirectoriesservice as the official model selector. - The slider maps a 0–1000 draft range to the model’s available
reasoning.effortslist. - On release, it commits the nearest effort through
ModelDirectory.select().
Requirements
- DeepSeek Harness Web profile.
- A model that exposes
reasoning.effortsto see the slider. Models without reasoning efforts still show the model picker.
License
MIT
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:vvvspec/better-reasoning-slider。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。