Introduction¶
When running Web-based Agent conversations with DeepSeek Harness (DSH), the interface typically features a fixed layout of “content area + sidebar + input box.” Staring at code and streaming output for long periods can result in a static background lacking visual feedback linked to the agent’s busy or idle state. Adding a transparent canvas layer over the entire window that doesn’t interfere with clicks, mixing streaming tokens into the rain, and letting the rain intensity fluctuate with conversation activity—these are the problems @weibaohui/dsh-matrix aims to solve. It belongs to the “Fun Customization” category of plugins in the DSH community directory, maintained by weibaohui; it has no official affiliation and its installation and operation run within the permissions of your local dsh process.
The following introduces the plugin’s positioning, core capabilities, installation steps, and typical configuration methods. Facts are based on the GitHub README and the npm package @weibaohui/dsh-matrix (currently 0.7.0).
What is this¶
In one sentence: A Canvas “digital rain” effect layer with position: fixed and pointer-events: none is placed over the DSH Web conversation window; three display modes—English/Numerical Matrix, Seal Script “Daoism & Cultivation”, and Oracle Bone Script “Inscriptions”—are switchable. Parameters such as opacity, speed, density, font size, dark/light color schemes, and gold-edge glow are adjustable; the host pushes agent streaming tokens and activity levels to the client via SSE, allowing the rain intensity and characters within the rain to change accordingly.
Maintenance & Source:
- Directory Page: https://www.skillhub.cn/plugins/weibaohui/dsh-matrix
- Source Code: https://github.com/weibaohui/dsh-matrix
- License: MIT (
package.json) - Compatibility:
dsh>=0.1.7-rc.2, Node >=22.5
Core Features¶
Three Modes and Three-Axis Combination¶
The README breaks down the display into three orthogonal dimensions:
- Mode: Display Content—The Matrix (English uppercase + numbers + symbols), Daoism & Cultivation (Pure Chinese Seal Script, v0.2+), Oracle Bone Inscriptions (152 characters of polyline Oracle Bone glyphs, v0.3+, data from aylqs2025/oracle-bone-jgw-1203, CC-BY 4.0).
- Color Scheme: Classic Green, Amber, Cyber Cyan, Magenta, Gilded Gold, Rainbow Rotation, Rainbow Random; separate dropdowns for Dark / Light modes, with the client sampling page brightness approximately every 3s to follow the theme.
- Gold-Edge Glow: Outline + outer glow, independently overlaid with Mode and Color Scheme.
Starting from v0.7.0, the default display content is Oracle Bone Inscriptions, the default theme is Rainbow Rotation, and Gold-Edge Glow is enabled by default. When upgrading from older versions, the configuration is migrated to the new defaults only if it still matches the v0.6 old defaults (matrix / classic / amber); user-modified values are preserved.
Tokens in the Rain, Rain Fluctuating with Agent¶
- Mix in Conversation Text (feed): The host captures
assistant/chunkstreaming tokens and pushes them to the canvas via SSE. In Matrix mode, approximately 1/3 of the rain head characters come from the currently generating text (uppercased before entering the pool); non-Latin characters are discarded. Cultivation / Oracle modes only allow Chinese characters that exist in the character pool. Can be disabled in settings. - Follow Agent Activity (reactive): The host calculates a 0..1 level based on token throughput (40%), tool calls (30%), and active sessions (30%), pushed via
GET /dsh-matrix/api/stream; the denser the events, the higher the rain speed (up to ~×1.9) and brightness, dropping back when idle. Can be disabled in settings.
Interaction and Display Range¶
- Transparent Canvas: The canvas itself is transparent, with trails erased using
destination-out;canvas.style.opacityis the master transparency knob (default 30%, slider 5%–100%). - Display Range: Default is “Exclude Left Sidebar” (dynamically detects the left edge of the conversation area); switchable to “Fullscreen”.
- Continuous Rain: When off, if the conversation hasn’t started or has finished, it enters drainage mode (erase only, no falling), stopping after trails fade; rain resumes when the agent starts outputting.
- Double-click to Clear: Double-clicking within the window toggles between clearing the screen and raining (double-clicking to select words in the input box does not trigger this).
Performance and Accessibility¶
Rendering resolution is capped (DPR ≤ 1.5, long edge ≤ 2400), throttled to 30fps, using offscreen glyph atlases + drawImage; if frame rate is insufficient, it first disables trail flickering then drops to 24fps. Rendering pauses when the page is hidden; prefers-reduced-motion can automatically pause it (config item ignoreReducedMotion). The settings page displays engine status such as rain column count, fps, frame cost, quality, multiplier, and connection status.
The Cultivation mode embeds LXGW Xiaozhuan Seal Script (OFL-1.1); the Oracle mode uses embedded glyphs.json + Path2D strokes, relying on no font files. Both modes support optional “Zhuyin Annotation” (Old-style Bopomofo phonetic markers).
Installation & Activation¶
In an environment where DSH is installed and the Web profile is in use, execute the command provided in the README:
dsh plugin --profile web add @weibaohui/dsh-matrix -w
Restart dsh web after installation to take effect. Management entry: Settings → Hacker Empire.
The plugin runs with the permissions of the current dsh process; it is recommended to browse the repository source code and MIT license before installation to ensure compliance with your security and compliance requirements.
Typical Usage¶
After the installation above, the rain starts by default (covering the conversation area except the left sidebar). You can adjust step-by-step according to the README:
- Show-stealing vs. Atmosphere: Adjust Opacity in settings—around 0.15 for a ghostly feel, 0.6+ for a “full-screen Matrix” look.
- Fullscreen Rain: Select “Fullscreen” in Settings → Hacker Empire → Display Range.
- Terminal Look: Choose color schemes for Dark / Light respectively; v0.7 defaults to Rainbow Rotation, which can be changed to Classic Green, Amber, Cyber Cyan, etc.
- Still Water: Turn off “Follow Agent Activity”; when needing to focus on reading, double-click the window to clear the screen, then double-click again to restore.
- Stop Rain Even When Not Chatting: Turn off “Continuous Rain”.
- Mode Switching: Switch “Mode” in the settings page between Hacker Empire / Daoism & Cultivation / Oracle Inscriptions; Cultivation and Oracle modes have separate toggles for “Zhuyin Annotation” and “Gold-Edge Glow”.
Developers can try the easter eggs in the README in the browser console (affects only the current page session):
__dshMatrix.boost(3)
__dshMatrix.applyConfig({ opacity: 0.8, themeDark: 'cyan' })
You can also preview the engine locally without installing the plugin: open demo/demo.html in the repository; URL parameter example ?region=no-left&continuous=0&opacity=0.6, add &mode=xian for Cultivation, &mode=oracle for Oracle.
Configuration persistence uses the host’s GET/POST /dsh-matrix/api/config; fields include enabled, opacity, speed, density, fontSize, mode (matrix | xian | oracle), zhuyin, glow, themeDark / themeLight, region (no-left | fullscreen), reactive, feed, continuous, etc. See the README configuration schema for specific ranges.
Use Cases & Notes¶
Who it is for: Users who spend long periods writing code or watching streaming replies in DSH Web, desiring a Matrix / Seal Script / Oracle atmosphere in the background without blocking clicks or text selection.
Things to note:
- The plugin is categorized as fun customization and does not alter agent logic; CPU usage already features throttling and adaptive quality. On low-end machines, you can still reduce the burden by lowering opacity, disabling reactive activity, or double-clicking to clear the screen.
- Oracle glyphs and Seal Script fonts have CC-BY 4.0 and OFL attribution files respectively (
client/oracle/ATTRIBUTION.txt,client/fonts/lxgw-seal-OFL.txt); secondary distribution must comply with the corresponding licenses. - The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; versions are subject to npm
0.7.0and the README compatibility table (the current plugin row corresponds todsh0.1.7-rc.2).
Conclusion¶
@weibaohui/dsh-matrix turns the classic character rain into a transparent overlay on DSH Web: three modes, seven color schemes, and gold-edge glow are combinable; streaming tokens and activity SSE drive the rain intensity; settings are centrally adjusted on the settings page. If you want to try installing it in the Harness, you can learn about it from the directory page, install it via the official command, and fine-tune it in Settings → Hacker Empire.
- Directory: https://www.skillhub.cn/plugins/weibaohui/dsh-matrix
- GitHub: https://github.com/weibaohui/dsh-matrix