DeepSeek Harness Tonghuashun Skin (dsh-tonghuashun)

Introduction

In the plugin ecosystem of DeepSeek Harness (DSH), visually monitoring Agent behavior and project status is crucial for enhancing development efficiency. Existing solutions often lack intuitive market-style displays, making it difficult to quickly capture trends in code volume changes and Token consumption. The dsh-tonghuashun plugin aims to address this issue by providing a skin with the interface style of the Tonghuashun (iFinD) market terminal. It integrates a code volume K-line (candlestick) market panel, helping developers visualize the Agent’s “trajectory” in a more intuitive way.

What is it

dsh-tonghuashun is a DSH harness client plugin. It consists of two core components:
1. Tonghuashun Market Terminal Style Skin: Built based on the ui-skin-ths and ui-market modules.
2. Code Volume K-line Market Panel: Located to the right of the host details column, used to display code line counts and Token usage.

This plugin is maintained by AdamPlatin123 and is released under the MIT license.

Core Features

K-line Market Panel

The K-line panel is located on the right side, with a default width of 360px and a height of 260px. It supports the following modes:
* Continuous Column Stream: Records every transaction continuously from start to finish, used for viewing the complete stream of code changes.
* Step-by-step: Each change occupies a single bar, arranged at equal intervals to facilitate item-by-item verification.
* Time & Sales: Based on real time, with the horizontal axis representing time scale, automatically handling empty slots.
* Day / Week / Month: Aggregated by the UTC calendar, with the week starting on Monday.

Vertical Axis Metrics

The vertical axis at the bottom of the panel supports three metric modes:
1. Absolute Lines: The real total volume of the project.
2. Relative to Baseline: Total volume minus a fixed anchor point.
3. Per Change: The net change of a single bar (centered at 0). This mode prevents small changes from being flattened when the total volume drifts significantly.

Visuals and Filtering

  • Empty/Filled Representation: Solid columns represent changes attributed to the Agent (red for increase, green for decrease), while hollow columns represent unattributable changes (e.g., external calibration, catch-up drift).
  • Agent Only Filter: When checked, only Agent-attributed bars are plotted, and the vertical axis is calculated based on Agent bars to avoid visual interference from large drifts.

Git Statistics Rules

Statistics are based on git ls-files --cached --others --exclude-standard:
* Tracked Files: Always included.
* Untracked Files: If ignored by .gitignore, they are treated as “external calibration” and produce gray unattributable bars.
* Modified Ignored Files: Do not produce K-lines and are marked as git-ignored-source-excluded in the status.

Token Metrics

Records are saved according to the host provider: uncached input, cache reads, cache writes, output, and reasoning. Reasoning is not counted twice in the total volume.

Installation and Activation

This plugin is compatible with Harness 0.1.2-rc.1 built into DSH Desktop 2.0.5 and the web client of the same version.

After building, add it to the target Profile via the official DSH command:

dsh plugin --profile desktop add -w "./dsh-tonghuashun-0.3.4.tgz"

After the application reloads, switch to the “Tonghuashun Style Skin” in general settings. It is enabled by default; disabling or uninstalling it will restore the theme overrides.

Typical Usage

  1. Build Plugin: Run npm pack in the plugin directory to generate dsh-tonghuashun-0.3.4.tgz.
  2. Install: Execute the installation command mentioned above.
  3. Preview & Debug: For local development, run npm run dev, accessible at the default address http://127.0.0.1:4317. Preview operations only modify output/acceptance-project/src/ledger.js.
  4. Export Data: Click the export button to retrieve the JSON data of the current project.

Use Cases and Notes

  • Use Cases: Developers who need to observe the Agent’s programming process over long periods, monitor code line count trends, and tally Token consumption.
  • Header Compression: The host header market bar shrinks in stages based on available width, always retaining the total code volume and status dot. The plugin’s own content is capped at 42vw. The host’s headerUtilities is set to flex:none; the plugin can only compress its own content and will not squeeze the host title.
  • Data Sharing: The web and desktop clients share data when connected to the same local Host. A single ledger is written by a single Host process; an exclusive lock prevents a second Host from silently overwriting it.
  • Shell Command Limitations: Shell commands lack host-level file attribution evidence. Agent K-lines are not generated solely based on command success; the actual total volume will be calibrated by a rescan.

Conclusion

dsh-tonghuashun provides DSH users with a visual project monitoring tool by combining lightweight charts with a Tonghuashun-style interface. Its MIT license allows free use and modification, and early implementations can still be retrieved in the repository history. Repository URL: https://github.com/AdamPlatin123/dsh-tonghuashun.

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

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

Xiaoye