dsh-reasoning-slider: Replacing the DSH Reasoning Level Selector with Slider Cards

Introduction

When selecting the “Reasoning Level” in the input box of DeepSeek Harness (DSH) Web, users typically need to open a secondary menu and then click a row. This plugin injects code to replace that interaction with an inline card-style slider, providing a more intuitive drag-and-drop and clicking experience.

Plugin Overview

Plugin name: dsh-reasoning-slider
Author: aci825223
Description: A DSH Web client plugin that replaces the reasoning level selector.

Core Features

  1. Slider Selection: Provides a track at the bottom of the card, supporting dragging the slider, clicking any position on the track, and using keyboard ← → / Home / End to switch levels.
  2. One-click Reset: A reset button is provided in the top-right corner of the card; clicking it returns to the default level for that model. If already at the default level, the button is grayed out.
  3. Large Text Display: The card center shows the current level name (e.g., Off / Low / High) along with descriptive text.
  4. Trigger Button Scale Bar: When the menu is not open, the trigger button displays a scale bar indicating the current level.
  5. Preserve Secondary Menu: Model grouping, search, checkbox selection, and failed loading retry functions are preserved with a unified card style.
  6. Theme Awareness: Uses DSH design tokens (--dsw-alias-*) to automatically adapt to light/dark themes.
  7. No Modification to Official Plugin: Shadows the official component via priority: -1 without affecting official services and commands.

Installation and Activation

After installing the plugin, you must refresh the browser page for it to take effect.

Installation Command:

dsh plugin --profile <your profile name> add github:aci825223-ai/dsh-reasoning-slider

After installation, enable the dsh-reasoning-slider toggle in Settings → Plugins → Installed.

Usage

  • Keyboard Operations: Use the ← → ↑ ↓ Home End keys to quickly switch levels.
  • Reset Level: Click the button in the top-right corner of the card to return to the default level.
  • View Models: The grouping, search, and checkbox functions in the secondary menu are consistent with the official plugin.

Uninstallation

Disable the dsh-reasoning-slider toggle in Settings → Plugins → Installed and refresh the page to restore the official style.

Technical Details and Notes

  • Injection Declaration: You must declare remote and remote.session in inject, otherwise an error will occur.
  • Priority Mechanism: Uses priority: -1 to register the component, which has a lower priority than the official plugin, thereby shadowing the official UI.
  • Code Structure: The browser-side logic is in lib/client.js, while the host-side (lib/index.js) only serves as a placeholder.
  • Compatibility: Compatible with DSH 0.2.0-rc.2 (Web).

Summary

This plugin refactors DSH’s reasoning level selection flow via a slider card, making it suitable for developers who need to frequently adjust reasoning intensity. For more details, please refer to the project repository.

GitHub Repository

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye