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¶
- 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/Endto switch levels. - 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.
- Large Text Display: The card center shows the current level name (e.g.,
Off/Low/High) along with descriptive text. - Trigger Button Scale Bar: When the menu is not open, the trigger button displays a scale bar indicating the current level.
- Preserve Secondary Menu: Model grouping, search, checkbox selection, and failed loading retry functions are preserved with a unified card style.
- Theme Awareness: Uses DSH design tokens (
--dsw-alias-*) to automatically adapt to light/dark themes. - No Modification to Official Plugin: Shadows the official component via
priority: -1without 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
←→↑↓HomeEndkeys 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
remoteandremote.sessionininject, otherwise an error will occur. - Priority Mechanism: Uses
priority: -1to 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.