Introduction¶
In DeepSeek Harness (DSH), the common way to adjust model inference levels is clicking the model seat button next to the input box and selecting a level from the menu. When there are many levels, it takes multiple clicks, and the color and intensity don’t change continuously with the level. The community maintainer eloimovo’s better-dsh-codex-effort-slider replaces that seat button with a draggable continuous slider: drag to change levels, the fill color transitions from blue to violet, high levels feature purple nebula and stardust particles, and it takes over the official model selection panel (still retaining the two-level provider -> model structure). Below is an introduction to what it does, how to install and use it, as well as configuration and limitations to note when modifying the source code.
What is this¶
better-dsh-codex-effort-slider is a client-side plugin (dsh-plugin) for DSH Desktop, current version 1.3.10, MIT licensed, with zero runtime dependencies. It still displays a “Model Name · Level Name ⌄” button in the input area; clicking it opens a self-built two-level overlay (provider list -> model list and search), with a slider for continuously adjusting the inference level within the panel. The collapsed state matches the official layout and does not appear side-by-side with the official seat button (the plugin masks the official control occupying the same slot with priority: -1).
The host needs to expose services such as slots, sessions, remote, remote.session, modelDirectories, as well as three slots: conversation.input.model, conversation.input.overlay, and conversation.input.right. The README states it has been verified on DSH Desktop 0.2.0-rc.2 (Windows).
Core Features¶
Continuous Slider and Visual Feedback¶
- A continuous slider rather than discrete buttons; colors and particles are driven by the slider position, decoupled from how many levels the model actually has.
- One level, one color: The fill gradient transitions from blue to violet, with the right end corresponding to the current position; the level text in the official row changes color with position (
Offremains the official gray). - More “powered up” further right: High levels display purple nebula and stardust; particle count and horizontal speed vary with position.
- Dark/light themes follow DSH (
body[data-ds-dark-theme]); the panel uses frosted glass effects (blur(40px) saturate(150%)) and translucent backgrounds similar to the official menu.
Model Seat and Level Behavior¶
- Clicking a model only switches the model, does not close the panel; the slider immediately follows the new model, defaulting to the middle level (for odd levels, take the exact middle; for even levels, take “the next one after the middle”, e.g., 4 levels → level 3).
- Drag or click the track to change levels: no writes to the host during dragging; it commits once upon release or 260ms of stillness.
- Clicking the level name expands a popover showing the level name and the original API value (e.g.,
max) on each row. Esccloses layer by layer: popover → secondary page → entire panel; clicking outside the panel or clicking the button again closes it.- If directories cannot be read, the host lists no providers, or loading fails, the panel displays the raw reason text (including host errors per provider); if any step cannot be recognized, it fails open without breaking the official interface. The offline test suite passes 911 items.
Installation and Activation¶
After installation, you must fully quit and reopen DSH Desktop (closing the window is not enough; the host loads plugins at startup).
Method 1: Plugin Panel (Recommended)¶
DSH Desktop -> Settings -> Plugins -> Add Plugin, fill in one of the following three:
- Local directory path (root directory after unzipping the Release zip or cloning)
github:eloimovo/better-dsh-codex-effort-slider- npm package name (via registry)
You can also download better-dsh-codex-effort-slider-<version>.zip from GitHub Releases, unzip it, and fill the directory path into the panel.
Method 2: One-click Script¶
When there is no “Plugins” panel in Settings (e.g., dsh-base disables plugin-manager), run the following in the repository root directory:
install.cmd # Install into desktop profile
install.cmd -Profile tui # Install into another profile
install.cmd -Uninstall # Uninstall
The script backs up the profile’s package.json, adds a link: dependency, writes to dsh.profile.bundles, and creates a link (junction on Windows) under the profile’s node_modules.
Method 3: Command Line (Non-desktop profiles)¶
The desktop profile is exclusive to Electron; command line operations will be rejected. Other profiles can use:
dsh plugin --profile tui add link:"<absolute path to plugin>"
dsh plugin --profile tui add github:eloimovo/better-dsh-codex-effort-slider
Upgrading and Uninstalling¶
- Upgrade: Reinstall via the panel or point to the new directory, then fully quit and reopen DSH Desktop.
- Uninstall: Uninstall via the panel, or use
install.cmd -Uninstall. For manually created junctions, usecmd /c rmdir <junction>; do not useRemove-Item -Recurseto avoid following the link and deleting the plugin source directory.
Typical Usage¶
Collapsed state example (a single button to the right of the input box):
[ DeepSeek-V41-Flash Max ⌄ ]
Common operations after opening:
| Action | Result |
|---|---|
| Click provider row | Move horizontally into that provider’s model list (with search) |
| Click a model | Only switch model; slider follows to new model and lands on middle level |
| Drag slider / click track | Change level; writes to host after release or 260ms stillness |
| Click level name | Expand level list (name + API value) |
The right edge of the panel aligns with the right edge of the input box, and the bottom edge is 8px above the button; when the page scrolls or zooms, it only repositions, does not auto-close.
For local UI preview (without DSH), you can build first and then open the preview page:
npm run build
npm run preview
Open preview/panel.html in the browser; screenshot parameters example: preview/panel.html?shot=1&level=max (?dark=1 for dark mode, ?level=<level id> to position the level).
Configuration (Compile-time)¶
The plugin has no runtime settings interface; changing constants in the source code requires rebuilding and restarting DSH:
| Constant | File | Function |
|---|---|---|
ENABLE_OFFICIAL_MENU_SLIDER |
lib/client.js |
Default false: self-built overlay takes over the official seat; true enables the old mode of modifying the slider inside the official menu (mutually exclusive) |
STARFIELD_DURATION_SPREAD |
lib/client.js |
Stardust duration fluctuation, default ±8%; 0 means constant speed |
TRACK_HEIGHT / KNOB_SIZE |
lib/client.js |
Track height and knob diameter, default 28px |
COLOR_TEXT_VIOLET etc. |
lib/client.js |
Level text and fill colors; see ARCHITECTURE.md in the repo for contrast instructions before changing colors |
GLASS_VARS |
lib/client.picker.src.js |
Panel blur, background color, shadows |
After modifying lib/client.picker.src.js, run npm run build to generate lib/client.picker.js. If only the picker is changed and lib/client.js is not touched, the browser might cache the old chunk due to ?rev=; a hard refresh (Ctrl+Shift+R) or restarting DSH, or updating the timestamp of lib/client.js, may be required.
Development environment requires Node >= 22 (for building and testing only; the plugin itself runs within the host with no npm runtime dependencies).
Use Cases and Notes¶
Who it’s for: Developers on DSH Desktop who frequently switch models and inference levels and want a Codex-style continuous slider with visual feedback. You can still use the official /model command to switch models; after taking over the official seat button, the official model menu entry is no longer accessible via that button.
Permissions and Security: The plugin loads with the current DSH process and has the same permissions as the host. It is recommended to read the GitHub Repository source code and MIT license before installation, and install from Releases or trusted sources.
Common Issues (Excerpt from README):
- No change after installation: Fully quit and reopen first; check Settings -> Plugins for
errordetails (e.g., apackage.jsonBOM causes the whole package to be discarded). - “Host did not list any providers”: The model directory is empty; check Settings -> Models / Accounts.
- “No sessions yet”: The new session shell does not have a session id yet; send a message or open an existing session.
- If official DOM semantics change, the plugin silently backs off and makes no modifications (depends on anchors like
aria-haspopup, not on hash classes).
Known Limitations: Requires restarting DSH to load the client bundle; model and level lists are based on the host directory; the full-energy perception for 8-level models intentionally differs from some reference implementations along the continuous curve (see MODIFICATIONS.md in the repo).
Links¶
- Community Directory Page: skillhub.cn/plugins/eloimovo/better-dsh-codex-effort-slider
- Source Code and Documentation: github.com/eloimovo/better-dsh-codex-effort-slider
The community plugin directory is maintained by sites like SkillHub and has no official affiliation with DeepSeek / High-Flyer; DSH itself follows an “everything is a plugin” extension approach, and you can choose to use this plugin to replace the input area inference level interaction as needed.