Animated Claude-style reasoning-effort slider and model picker that replaces the native DSH model selector.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:MEMZ-JZY/DSH-Claude-Style-Reasoning-Slider
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
An animated reasoning-effort slider and model picker for DeepSeek Harness (DSH).
It replaces the native model selector's conversation.input.model slot with a
compatible selector whose reasoning pane is a Claude-style animated slider.
🇨🇳 中文版说明请见 README.zh.md
Preview

Features
- Drop-in model selector — replaces only the
conversation.input.modelslot; the rest of the chat input stays untouched. - Canonical effort slider — always shows
Off | Low | Medium | High | Extra | Maxpositions, regardless of how the provider names its levels. - Tolerant name matching — aliases such as
off,none,disabled,ultracode→max,med→medium,extreme→extra, and similar display names are mapped to canonical slider positions. - Unsupported levels stay visible — a level the current model does not support is dimmed but remains clickable. Clicking it keeps the thumb on the chosen slot and applies the nearest supported level below it, with a toast explaining the downgrade.
- Model switching preserves effort — when you switch models, the current effort is kept when possible, or automatically downgraded to the nearest supported level below it (with a toast).
- Default and adapter-specific strengths —
Defaultis offered as a pill below the slider and submits withoutreasoningEffort(the provider's own default applies). Other provider strengths that do not map to a canonical slider position are also shown as selectable pills. - Max / Ultracode treatment — the model's
max/ultracodelevel turns the slider into an animated purple pixel field, and theMaxlabel becomes a flowing multi-color gradient text. - Localized and theme-aware — ships with English and Simplified Chinese dictionaries and follows DSH light/dark design tokens.
- Accessible — keyboard-operable slider (arrows, Home/End, PageUp/PageDown),
ARIA labels, focus management, and
prefers-reduced-motionsupport.
Install
Install the bundle from a Git repository:
dsh plugin --profile web add github:YOUR_ACCOUNT/dsh-client-ui-effort-slider
dsh --profile web
Or use a local checkout:
dsh plugin --profile web add ./dsh-client-ui-effort-slider
Restart the web profile after installing or removing the bundle.
Usage
- Click the model/effort trigger chip in the conversation input.
- In the popup menu, choose Model to switch models, or Effort to adjust the reasoning level of the current model.
- In the effort pane:
- Drag or click the slider to pick
Off,Low,Medium,High,Extra, orMax. - If a position is unsupported, the thumb stays where you clicked and the nearest supported level below is applied; a toast tells you what happened.
- Click Default to remove
reasoningEffortand let the provider decide. - Click any extra pill to apply a provider-specific strength that does not map to a slider position.
- Drag or click the slider to pick
- When switching models, the plugin preserves the current effort level where
supported; otherwise it downgrades to the nearest supported level below or
falls back to
Default, always with a toast.
UI effects
- Trigger chip — shows the current model and effort label, six rising
signal bars that fill with the current level, and a chevron. At
Maxthe effort label flows as a purple gradient. - Two-level popup menu — a compact menu with a model list (grouped by provider) and an effort pane; loading/error/retry states are included.
- Glass track — inner bevel shadows and a subtle fractal-noise layer break up flat-color banding.
- Light field — the track responds to the pointer like a light source: an
interior light pool and a glass-edge highlight follow the cursor, brightening
as the pointer approaches and fading with distance. The light is suppressed
at
Maxso the pixel field stays clean. - Level labels — faint tick labels; the current level is always shown, hovering near a slot highlights it, and others stay barely visible.
- Max pixel field — at
Maxthe track becomes an animated purple pixel field with a reveal sweep and flowing cell flicker; theMaxlabel uses a flowing multi-color gradient. - Motion safety — effects use CSS transitions/animations or lightweight
event handlers, with no JS animation loops, and
prefers-reduced-motionis respected.
Development
Build the client bundle from source:
npm install
npm run build
lib/client.js is generated from src/client.js plus src/ds-effort-slider.js
by scripts/build-client.mjs.
Run the standalone component demo:
# open demo/index.html in a browser
The demo page exercises panel mode, inline mode, supported-level combinations, theme switching, and the Max pixel field.
Package contract
This is a DSH bundle, not a dynamic cordis_define snippet. The package uses:
dsh.bundle.patch(cordis.patch.yml) for self-registration.dsh.client.platform: webfor the browser half.lib/client.jsas a prebuilt ModuleLoader artifact, generated fromsrc/.
Files
src/ds-effort-slider.js— standalone Web Component (shadow DOM, no framework).src/client.js— React wrapper + forked model selector plugin logic.scripts/build-client.mjs— bundle generator.demo/index.html— standalone UI demo.
Links
More in this category
zhu1090093659/dsh-web-ui#packages/dsh-web-ui-all★ 2622
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 1231
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 1198
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-at-file★ 214
Codex-style `@file` mentions: search workspace files in the composer and attach their contents to prompts.
huiliyi37/dsh-tianshu-tui★ 159
A terminal UI (TUI) for DeepSeek Harness.
Nagi-ovo/dsh-visualize★ 114
In-conversation generative UI: the model renders interactive HTML cards into the chat stream, with streaming preview and sandboxed rendering.