Skip to main content

deepseek-harness-desktop/packages/skins/ths

156Stars5Forks6Issues0Watchers

Applies a Tonghuashun-style theme to the DSH Web interface: brand red title bar, market quotes status bar, watchlist sidebar, and terminal settings panel.

Evidence5/5methodologySourceInstallMaintenanceDSH versionSecurity scan
Machine-auditedInstall commandRepo verifieddsh-plugin topicLicenseREADMEAI wiki

ⓘ This plugin is a sub-package of the ningbainb/deepseek-harness-desktop monorepo — stars and activity count the whole repository.

Language
TypeScript
License
BSD-3-Clause
Branch
main
ai-agentai-coding-assistantcodexdeepseekdeepseek-harnessdesktop-appdshdsh-plugin

Install

cmdweb profile
$ dsh plugin --profile web add @linxin666/dsh-client-ui-skin-ths

Run the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial

Install via your agent

Install the DeepSeek Harness plugin ningbainb/deepseek-harness-desktop/packages/skins/ths for me: review the repository at https://github.com/ningbainb/deepseek-harness-desktop first, then run the install command and verify the plugin loads successfully.

Paste this instruction to the DSH Web GUI assistant — it will install and verify for you.

One-line Positioning

A THS (Tonghuashun) style skin that outfits the DSH Web GUI with a brand-red title bar, market status bar, stock watchlist-style sidebar, and trading terminal panels to create a monitoring atmosphere. It only modifies browser-side visual elements and doesn't participate in model requests, suitable for regular users who want to adjust the page's appearance.

Core Capabilities

  • Adds a brand-red title bar at the top of the page with the title "Tonghuashun · DeepSeek Online", featuring a white candle SVG icon and three desktop controls (–/□/×)
  • Embeds a real-time "Shanghai Composite Index" ticker in the title bar (including index, points, ▲/▼ change), with red for gains and green for losses
  • Adds a market status bar at the bottom of the page, displaying seven cells in order: "Tonghuashun, Shanghai Composite Index, Shenzhen Component Index, ChiNext Index, Ready, Connected, Online", with red for gains and green for losses
  • Appends a "Code Index" cell at the end of the status bar, aggregating net code line changes across all workspaces every 30 days (red for gains, green for losses)
  • Adjusts light and dark theme palettes, stock watchlist-style sidebar (red trend lines, market rows), session/detail panels, and settings panel surfaces via CSS Modules
  • Locks the document title to "Tonghuashun · DeepSeek Online" and injects a red favicon with the Chinese character "同" in the browser tab

Technical Implementation

  • Language: TypeScript + CSS Modules
  • Key Dependencies: @deepseek-ai/cordis (ctx.effect lifecycle), @deepseek-ai/dsh-client-connection (workspace.list / codeKline.list RPC on connection handle), lightningcss (CSS compilation), tsdown (bundle generation), vitest (mount and cleanup verification)
  • Architecture Pattern: Inserts ui-skin-ths into the Web plugin manifest via DSH bundle patch (cordis.patch.yml); host-side apply() is an empty placeholder, browser-side apply(ctx) writes DOM/CSS and registers a disposer within the cordis fiber lifecycle; stylesheets auto-injected with bundle's CSS Modules, removed by loader along with entries
  • Entry Files: packages/skins/ths/src/index.ts (host empty entry); packages/skins/ths/src/client/index.ts (browser-side core entry, 210 lines); packages/skins/ths/src/client/ths.module.css (1417 lines of theme styles); packages/skins/ths/src/client/code-index.ts (code index aggregation cache)

Use Cases

Regular users who enjoy stock trading atmosphere and need to monitor code for extended periods can switch to the "Tonghuashun" skin in the DSH Web interface: the title bar carries the "Shanghai Composite Index" ticker, the status bar shows three major indices with red/green changes, and the sidebar displays sessions like a stock watchlist. The skin has zero intrusion into model requests, suitable for scenarios where you only want to change the appearance without modifying interaction patterns.

Prerequisites & Compatibility

DependencyMinimum VersionDescription
DSHNot declaredNo DSH version or dsh.compatibility declared in the package;接入客户端机制 via bundle patch
Node.js^22.19.0 || >=24.0.0Declared in root package.json engines; skin package itself doesn't declare engines separately
PlatformCross-platformpackage.json marks client as platform: "web", no os or cpu restrictions declared
Native ModulesNoneNo runtime native module dependencies; UI changes and market calculations all done on browser side

Installation

dsh plugin --profile web add github:ningbainb/deepseek-harness-desktop/packages/skins/ths

Configuration

This plugin requires no additional configuration. No configuration reading logic or user settings found in the source code; skin enabling is handled by the skin management process, and once enabled, cleanup is automatically managed by the client lifecycle.

FAQ

Q: Does this skin affect model requests or conversations?

A: No. The package explicitly states it only changes browser DOM and CSS, doesn't assemble or send any provider requests, and doesn't subscribe to any model events; the skin has zero intrusion into the model call chain.

Q: Are the index values in the status bar real-time market data?

A: No. The "Shanghai Composite Index / Shenzhen Component Index / ChiNext Index" in the status bar are fixed copy (3,342.17 / 10,846.59 / 2,201.33), used only for visual demonstration; the only thing that actually changes is the trailing "Code Index" cell, which aggregates net code line changes across all workspaces every 30 seconds with red-green color coding.

Q: What if the interface doesn't change after installation?

A: Installing the skin package doesn't equal selecting that skin. You need to use dsh-skin use ths to switch; only one skin can be enabled at a time, and switching is managed by the dsh-skin use script.

Q: Is dark mode supported?

A: Yes. The CSS specifically defines night trading color palettes for body[data-dsh-ths][data-ds-dark-theme]; however, this switches between the two sets of terminal colors within the skin itself (light/dark), not back to non-skin appearance.

Q: Will page traces be left after disabling or switching skins?

A: No. The lifecycle cleanup registered by the client removes body attributes, title bar, status bar, and favicon; if the page title still equals the string written by the skin, the original title is restored, and it won't be rolled back when overridden by session titles. Tests cover three scenarios: mount, cleanup, and "don't clear session titles".

Q: What do the red trend lines/session rows in the sidebar depend on?

A: They depend on the data-pane attribute mounted by the ui-layout module on the AppFrame column. Without these attributes, the skin still works (title bar and status bar normal), just missing per-panel surface styles.

Q: Why is there a moment of official appearance when DSH loads?

A: The skin can only set the data-dsh-ths attribute and inject DOM after the plugin bundle loads, so the initial loading screen retains the official style; once the attribute is set, the startup page also gets window borders, though internal cards remain in modern style.

Difficulty Level

Beginner — installation and enabling only require using skin management commands, no configuration files or user parameters needed; after activation, cleanup is automatically managed by the client.

Known Issues & Limitations

  • The skin takes effect only after the plugin bundle loads; the earliest loading screen retains the official appearance; the startup page can get window borders, but internal cards remain in modern style.
  • Theme switching only switches between the two color schemes within the skin itself (light/dark terminal palettes), not back to non-skin appearance.
  • The index values in the status bar are static copy and don't track real market data; only the "Code Index" cell dynamically refreshes every 30 seconds based on net code line changes across all workspaces.
  • Only one skin can be enabled at a time, and switching is managed by the dsh-skin use script; panel-level surface depends on ui-layout mounting data-pane attributes on the AppFrame column.

Read the usage guide →

Install steps, key points, FAQ and compatibility for this plugin — auto-derived from indexed fields.

Listing badge

Listed on deepseek-plugin.org
[![Listed on deepseek-plugin.org](https://img.shields.io/badge/listed_on-deepseek--plugin.org-007EC6)](https://deepseek-plugin.org/plugins/ningbainb/deepseek-harness-desktop/packages/skins/ths)

Paste this markdown into your GitHub README to link back to this listing. The badge only states the listing — not a security endorsement.

← Back to plugin directory