dsh-xingkong-theme:DeepSeek Harness Deep Space Nebula Theme and Model Verification

Introduction

DeepSeek Harness (DSH) supports skinning its Web UI via plugins, but many themes merely change the background color in dark mode, often neglecting readability in light mode regarding overlays and wallpaper text overlap. When multiple pi-ai models are configured, the official “Settings → Models” page fails to clearly indicate which endpoints are actually conversational or what context windows and reasoning tiers are actually accepted. The following introduces the community plugin dsh-xingkong-theme (Nebula Core): a package that provides complete light and dark visual sets for the DSH Web GUI, along with model probing capabilities integrated directly into the settings page.

What is this

dsh-xingkong-theme is a local theme package for DSH maintained by sayzwx (current version 1.13.0, MIT License). It targets platform: web clients, registers as xingkong-theme via cordis.patch.yml, employs a seamless looping nebula wallpaper behind the conversation interface, and overrides both light and dark color schemes using 74 design tokens (plus 7 overlay variables).

Core Features

Dual Light/Dark Themes, Not Just a “Dark Background Swap”

The README names the dark mode Deep Space Observatory and the light mode Dawn Nebula. The light mode utilizes a specially designed 4K procedural nebula wallpaper (featuring a feldspathic blue-purple sky, cyan ionized core, etc.), rather than simply desaturating the dark mode image. Overlays (settings modals, menus, Popovers, Toasts) are linked via dual {light, dark} values for --dshx-float-*, preventing dark popups from appearing in light mode.

Wallpaper and Readability

  • Dynamic Nebula: A 24-second seamless looping video, served by the host half via HTTP with Range support; nebula.mp4 for dark mode and nebula-light.mp4 for light mode, with JPEG used as poster and fallback.
  • v1.13.0 reworked the “text over photo” layering: light mode body text now uses white text + blurred dark shadows (README notes a contrast ratio of approximately 4.4:1 in the same region). It deliberately avoids using -webkit-text-stroke outlines to prevent the hollowing out of strokes in small Chinese characters.
  • The bottom status bar and message action row have changed from medium blue to white text + shadows; SVG icons use drop-shadow.
  • The reading area width has been expanded from the official 920px limit to min(1180px, 100%-96px); the composer uses per-mode variables to restore the opaque base, preventing wallpaper bleed-through.

Model Inspection Panel (Since v1.11.0)

On each pi-ai provider card in the official “Settings → Models” page, the probe UI is rendered via the extension slot settings.models.provider-card (key: llm-pi-ai). Probing is executed in the host half (keys do not enter the render process; if the model endpoint lacks CORS, the host relays the request), while the browser side handles the UI and ~1s polling.

The probe attempts to answer three types of information that are difficult to obtain directly from the official page:

  1. Which models are actually available: Sends a minimal request with max_tokens: 1 for each model to distinguish between available, not activated, quota exhausted, and non-conversational models.
  2. Context window and output limit: Prioritizes requesting {origin}/api/v1/models; if no directory exists, infers the output limit from 400 errors using out-of-bounds max_tokens.
  3. Reasoning levels: Empirically tests reasoning_effort tier by tier (off→none / minimal / low / medium / high / xhigh / max) and only displays the tiers actually accepted by the endpoint (README clarifies that reasoning levels are not among the official editable fields).

Two modes are available: Quick Screen (1 request per model) and Full Inspection (survival, output limit, tier-by-tier; up to ~9 requests for surviving models).

Package Structure (Isomorphic with Official Theme Packages)

The host provides 4 asset routes (dark/light × image/video) and model probing APIs (/xingkong-model/ping|probe/start|probe/status|probe/cancel); the client calls ctx.theme.overrideTokens('xingkong', …) and mounts the dynamic <video> and inspection panel. Light/dark switching prioritizes subscribing to ctx.on("theme/change") and listens for fallback signals like data-ds-theme-source.

Installation and Activation

This theme is a local package. The README explicitly states it does not go through the registry. Do not manually copy directories into node_modules (ordinary directories cause the loader to stick on stale bytes, manifesting as no effect after source changes). The correct approach is to use the repository’s bundled deployment script to replicate the official junction layout:

bash deploy.sh          # Deploy / Update
bash deploy.sh --check  # Validate only, no modifications
bash verify.sh          # Five gates: syntax / CSS / unit / deploy chain / profile

deploy.sh will mirror to .generations/, junction to node_modules, register in cordis.patch.yml, and clean up duplicate registrations in .dsh-market/hot-*.yml. After modifying the source code, re-run deploy.sh and restart DSH.

Upon startup, you can check the harness logs for the host half ready line (see README for Windows path examples):

[xingkong-theme] host half active (4/4 asset routes registered)

For greater convenience, run bash verify.sh, which imports the deployment artifacts and asserts that the deployed client.js is byte-for-byte identical to the source code.

Typical Usage

  1. Clone or download sayzwx/dsh-xingkong-theme to your local machine (this article does not expand on git commands; refer to your existing source directory).
  2. Run bash deploy.sh in the DSH profile’s corresponding environment, then restart DSH.
  3. In the Web GUI, toggle the system/application light/dark theme and observe whether the nebula video and tokens link via theme/change.
  4. Open Settings → Models, use the model inspection panel on pi-ai provider cards, select “Quick Screen” or “Full Inspection” as needed, and view results for availability, context, and reasoning tiers.

To uninstall: Delete the xingkong-theme insert line in profiles/web/cordis.patch.yml, remove the node_modules/dsh-xingkong-theme junction and corresponding generation directory, and then restart.

Use Cases and Notes

Who it is for: Developers who wish to use a unified deep space visual style on the DSH Web end long-term, and who need to quickly verify in the settings page whether multi-model configurations are actually usable.

Permissions & Security: The theme and probing logic run with the current DSH process privileges and will initiate probe requests to configured model endpoints; before installation, you should read the source code and MIT license to ensure the endpoint and key management methods comply with your environment policies.

Development & Secondary Modification: If modifying the theme, the README requires canvas/content panels to be semi-transparent, overlays to be opaque, and to use --dshx-float-*; after changes, run node --check, _test_client.js, _test_host.js, and deploy.sh in order. If DevTools are restricted, the README provides troubleshooting channels such as host file writing, client writing to localStorage, and Code Cache side-evidence.

Conclusion

dsh-xingkong-theme consolidates the DSH Web GUI’s light/dark skins, dynamic nebula wallpaper, and settings page model probing into a single local theme package; deployment relies on the deploy.sh junction chain, rather than manual copying to node_modules. For more screenshots and version notes, see the GitHub README; for the community index, see the SkillHub Plugin Page.

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

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

Xiaoye