dsh-effort-ultra-skin: Applying a Blue-Purple Gradient Skin to the DSH Inference Level Control

Preface

In DeepSeek Harness (DSH), if you are using @hytime/dsh-thinking-effort to display the reasoning effort level in the composer, the default style is a 4px thin line with a solid blue fill and large white dots, giving it a visual feel like a “system control.” If you want the tier bar to look more like a recognizable brand capsule—with gradients, starlight dots, and a slow shimmer—without forking the upstream code to modify the DOM yourself, you can layer a pure CSS skin on top of the upstream plugin.

The following introduces the community plugin dsh-effort-ultra-skin (Maintainer: LoveIrishCoffee, GitHub: LoveIrishCoffee/dsh-effort-ultra-skin). It does not draw any UI itself; it only repaints the reasoning tier controls already rendered by @hytime/dsh-thinking-effort. It is categorized as “Fun Customization” on SkillHub.

What is this

dsh-effort-ultra-skin is a skinning plugin for DSH reasoning tier controls: it repaints the reasoning level bar drawn by the upstream plugin into a blue-to-purple gradient capsule, featuring starlight dots within the track and a soft glow that sweeps across roughly every 2.6 seconds. It registers almost no capabilities on the host side; on the browser side, it injects styles into the <head> and uses a MutationObserver to apply data-effort-tier="ultra" when the highest tier is selected. This accelerates the starlight and shimmer and adds a purple inner stroke.

In short: The upstream @hytime/dsh-thinking-effort is the engine; this plugin is the sticker. If the upstream plugin is not installed or enabled, this skin’s selectors will not match any targets, and both the tier bar and the chip will become unavailable.

Before and After Comparison

Location Before Skin After Skin
Collapsible chip in composer Gray-filled capsule with a thin vertical line between Model │ Tier Light blue-purple gradient capsule; the tier name becomes a separately colored small capsule
Expanded Tier Bar 4px thin line, solid blue, large white dots for each tier, native slider thumb 24px gradient capsule, white starlight dots, sweeping shimmer; dots and thumb hidden
Tier name (Top Right of Panel) Solid text in brand color Blue-to-purple gradient text
Highest Tier No difference from other tiers Starlight and shimmer accelerate; a circle of purple inner stroke is added

There are separate color palettes for light and dark themes, which follow the system theme. When the system has “Reduce Motion” enabled, the starlight and shimmer are automatically disabled.

Dependencies (Required)

  1. You must install and enable @hytime/dsh-thinking-effort first.
  2. Do not uninstall the upstream plugin —— After uninstallation, this plugin cannot match the DOM, and the relevant UI will disappear.

This plugin has a peer dependency on @deepseek-ai/cordis (^4.0.2 in package.json), loaded with the DSH plugin system. The current package version is 0.1.0, licensed under MIT.

Installation and Activation

Please review the repository source code and license yourself before installing; the plugin runs under the current DSH process permissions, the same as other DSH plugins installed from npm or GitHub.

Step order: Install upstream first, then install the skin, and finally restart DSH.

Replace <your-profile> with your actual profile name:

dsh plugin --profile <your-profile> add dsh-effort-ultra-skin

From GitHub

The repository includes committed build artifacts in dist/; no local build is required:

dsh plugin --profile <your-profile> add github:LoveIrishCoffee/dsh-effort-ultra-skin

The upstream control must be installed separately (refer to the @hytime/dsh-thinking-effort documentation for specific commands). After completing either installation method, restart DSH to apply the changes.

Uninstallation

dsh plugin --profile <your-profile> remove dsh-effort-ultra-skin

When uninstalled or disabled, it cleans up the injected <style> and data-effort-tier attributes. The README states that the browser side leaves no residue of relevant markers.

Typical Usage

This plugin has no independent configuration interface or CLI subcommands; once enabled, it automatically acts on the reasoning tier area rendered by the upstream plugin.

Daily Use: Simply switch the reasoning tier in the DSH Web UI as usual. The highest tier determination reads the min / max of the range input (value === max means the highest tier). It does not parse tier text in Chinese, English, Japanese, etc.; localized names will still correctly trigger the Ultra style.

Custom Colors (Requires building and installing a local package after modifying source code): Edit the --effort-* variables at the top of lib/client.js:

Variable Function
--effort-a Gradient start point (Blue)
--effort-b Gradient middle section
--effort-c Gradient end point (Purple), glow, and highest tier stroke
--effort-star Starlight dot color
--effort-glow Glow and shadow
--effort-track-h Track height (Default 24px)

If the shimmer is not needed, you can delete the rule corresponding to >:first-child>:first-child::after in the CSS (see the “Changing Colors” section in the README).

Implementation Points and Scope

  • Host Side: Lazy placeholder; registers no routes, tools, or services.
  • Browser Side: Injects global styles; listens to value / aria-* on the tier input, setting data-effort-tier="ultra" for the highest tier.
  • Coverage: Only the reasoning tier controls; does not modify the model dropdown, other composer controls, or global materials.

The gradient purple does not fully utilize DSH --dsw-alias-* tokens (the token table lacks purple), so --effort-* is defined as literals; other colors utilize aliases where possible with fallbacks.

Suitable Scenarios and Notes

Who it’s for: DSH users who are already using @hytime/dsh-thinking-effort and wish to unify the visual appearance without touching upstream logic; it is categorized as “Fun Customization,” focusing on UI expression rather than reasoning capability itself.

Known Limitations (from README):

  1. Bound to upstream DOM conventions. Selectors rely on the upstream’s data-seat-* and structural positioning, not CSS-module hashed class names. If the upstream changes attributes or hierarchy, the skin will silently fail (it is designed not to half-work or misalign).
  2. Serves reasoning tiers only. Other composer controls are unaffected.
  3. Ecosystem position. The DSH community plugin directory is displayed on independent sites like SkillHub. It has no official affiliation with DeepSeek / High-Flyer; installation and source code review remain the responsibility of the user.

Conclusion

Following the steps above, you can switch the reasoning tier bar to a blue-purple gradient capsule style with starlight and shimmer, while retaining the behavior of @hytime/dsh-thinking-effort. Directory Page: SkillHub - dsh-effort-ultra-skin; Source Code and Screenshots: GitHub - LoveIrishCoffee/dsh-effort-ultra-skin.

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

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

Xiaoye