Introduction¶
In the DeepSeek Harness (DSH) Web GUI, long conversations show a column of “quick-jump anchors” (turn rail) on the right side to quickly jump to different turns. By default, these short bars only reflect session states such as loading, preview, and current turn, and have nothing to do with the music playing on your local machine. If you want the UI edge to lightly pulse in sync with the system mix—while coding or researching—without modifying DSH core or writing front-end patches yourself, you can install the community plugin dsh-audio-rail. Below we explain what it is, how it works, and how to install and enable it on Windows.
What Is It¶
dsh-audio-rail is published by the maintainer Lingwuxin and is categorized as “Fun Visual Theme” in the SkillHub plugin directory. In one sentence: it makes the anchor bars in the turn rail on the right side of the DSH Web session page expand and contract in rhythm with the system’s currently playing music, producing a visual effect similar to rotating spectrum bars 90 degrees.
Source code and documentation are available on GitHub: Lingwuxin/dsh-audio-rail. The current package version is 1.0.1, licensed under MIT.
Core Features¶
The plugin does only one thing: it takes band energy captured via WASAPI loopback, pushes it through the host’s SSE to the browser, and then drives each anchor bar’s scaleX, overlaying an audio pulse while preserving DSH’s original state styling.
Capture (Windows)¶
- Standalone helper:
bin/AudioRailCapture.exe(compiled fromsrc/AudioRailCapture.csviabuild.cmd, zero-dependency single file). - Captures the system mix from the default render endpoint in loopback mode (WASAPI shared mode +
AUDCLNT_STREAMFLAGS_LOOPBACK). - After FFT, reduces to 12 logarithmically spaced bands (≈45 Hz–16 kHz), outputting JSON lines to stdout at roughly 30 fps; decays to 0 during silence.
- Normalization uses a relative dynamic mapping based on a ≈1 s sliding-window average (−9/+17 dB window); drum hits can overshoot while quiet passages fall back, avoiding being pinned at maximum constantly.
Host (index.js)¶
- Registers
/audio-rail/events(SSE) and/audio-rail/status. - Starts the capture process only when there are subscribers; stops 15 seconds after the last subscriber disconnects; restarts with exponential backoff on crash (device hot-plug exit 3 is recoverable).
Browser (client.js)¶
- Injects CSS to change the
transformof anchor bars (.…_mark::before) to includescaleX(var(--dsh-audio-rail-scale, .6)). - Receives band frames via EventSource, performs attack/release smoothing per anchor within
requestAnimationFrame, and writes CSS variables; the audio pulse is multiplied on top of the host’s state coefficient (capped around 26px). Low bass maps to the lower anchors. - Respects
prefers-reduced-motion: if the user has enabled reduced motion, the plugin is not activated at all.
Compatibility Notes¶
The README states: v1.0.1 has been adapted and verified only for dsh v0.1.7-rc.2. The plugin depends on the TurnNavigator DOM conventions of dsh-client-ui-chat (the _mark buttons inside _marks, data-index ordering, fixed 20px bars, scaleX state coefficients). If DSH refactors this component again, the visual effect may fail; the capture and SSE pipeline remain unaffected.
Platform: Windows only (WASAPI). Non-Windows environments cannot use the capture side.
Installation and Activation¶
The plugin runs with the current dsh process privileges; review the repository source and MIT license before installing. The capturer is not distributed with the repo; after cloning, you must compile it locally first.
- Clone the repository to a local path (the install command requires this path—do not use the
github:owner/reposhortcut not mentioned in the documentation). - In the repository root, run the Windows build script (invokes the system’s built-in .NET Framework
csc.exe, no extra dependencies required):
build.cmd
- Within a DeepSeek Harness session, have the agent install the bundle, or run manually (replace
<local-repo-path>with your actual path):
dsh plugin --profile web add link:<local-repo-path>
After installation the browser page will hot-reload automatically; manual refresh is generally unnecessary. After uninstalling or disabling the plugin, the SSE connection closes, the capture process exits, and no resident overhead remains.
Typical Usage¶
There is no separate config file or CLI subcommand: after installing and compiling the capturer, open a conversation page in the Web GUI, and play music from your default render device—that’s all. Each anchor on the right-hand turn rail binds to a different frequency band and expands/contracts with the mix; when there are no subscribers, the host does not keep the capture process running long-term.
For visuals, see the repository’s docs/demo1.gif and docs/demo1.mp4.
Use Cases and Caveats¶
Suitable for: Developers using the DSH Web GUI on Windows who want the turn rail to give light visual feedback to background music; comfortable with “Fun Visual Theme”-type non-functional plugins.
Caveats:
- Must match the DSH version and TurnNavigator DOM declared in the README; otherwise SSE/capture may work but the visuals will not.
- Some Windows builds/runtimes have known issues with
IMMDevice::Activate. The helper probesIAudioClient3 → IAudioClient2 → IAudioClient1and uses vtable delegation to work around them; high-sample-rate devices automatically increase FFT size to maintain low-frequency resolution. - SkillHub etc. are community directories with no official affiliation to DeepSeek / High-Flyer; star and share metrics are as shown on each site at the time; this article does not cite unverified data.
Conclusion¶
dsh-audio-rail pipes 12 bands of the system mix via SSE to the Web side and adds musical motion to the turn rail without touching session logic, serving as an example of a fun UI extension within the “everything is a plugin” DSH ecosystem.
- Directory page: https://www.skillhub.cn/plugins/Lingwuxin/dsh-audio-rail
- GitHub: https://github.com/Lingwuxin/dsh-audio-rail