DeepSeek Harness Plugin: dsh-client-ui-job-stats

Preface

The session header of DeepSeek Harness comes with a built-in “Background Tasks” list for viewing currently running tasks. However, this list acts as a real-time roster; once the output of a foreground command is consumed by the caller, the record disappears, making it unsuitable for long-term statistics.

This plug-in adds a “Background Task Stats” tab to the right sidebar to accumulate a record of every task executed within the session, solving the issue of missing history.

Plug-in Introduction

Name: dsh-client-ui-job-stats
Maintainer: kahomesl
Category: Client
Description: A tab in the right sidebar that accumulates records of every task run in the current session.

Core Features

  1. Location: After expanding the right sidebar, a 4th card titled “Background Task Stats” appears on the “Start” page, displaying the panel in a tabbed format.
  2. Statistics: Supports counts for Total/Running/Completed/Failed/Cancelled/Finished, and calculates completion rate, cumulative duration, maximum duration, and retained output bytes.
  3. Task Details: Each task is displayed on a single line showing status, type, duration, and termination reason. Clicking a row expands it to show the full command, ID, timestamps, etc.
  4. Smart Recognition: Summarize commands into “what it is doing” (e.g., waiting 75 seconds, submitting code, running tests, installing dependencies) instead of displaying raw code.
  5. Real-time Updates: Duration refreshes every second while a task is running.
  6. Ledger Storage: Separated by session and merged by job ID, written to browser storage or a local file, making historical tasks visible after restart.
  7. Robustness: Tolerates unknown statuses, missing IDs, abnormal fields, and ledger corruption, ensuring the panel does not turn empty or crash.

Installation & Activation

Clone the repository:

git clone https://github.com/kahomesl/dsh-client-ui-job-stats.git

Include the plug-in in your DSH composition configuration and restart DSH once to activate the host-side terminal state recorder.

Typical Usage

  1. Expand the right sidebar (click the “Open Sidebar” button in the session header or press Ctrl+Alt+B).
  2. Click the “Background Task Stats” card on the “Start” page.
  3. Click a task row to expand and view the full command, task ID, status, timestamps, and retained output.
  4. View real-time statistics to understand the current session’s operational status.

Notes & Limitations

  • Host Dependency: The composition requires @deepseek-ai/dsh-client-ui-sidebar-right and @deepseek-ai/dsh-api-job-controller.
  • Restart Requirement: DSH must be restarted once after installation to activate the host-side terminal state recorder.
  • Read-only Statistics: The panel is read-only; stopping tasks is still handled by the task list in the session header.
  • Capacity Limits: The ledger holds up to 300 entries (browser), 200 entries (file), and supports up to 32 sessions.
  • Limitation: When the host-side component is not composed (i.e., before restart), the outcome of foreground commands is unobservable, and the panel will only display them as “Finished”.

Conclusion

Through a sidebar tab, this plug-in solves the “glance and disappear” problem of the Harness’s native task list. It provides a persistent ledger based on browser storage and local files, making it suitable for scenarios requiring a review of long-running or historical sessions.

Source: SkillHub Plug-in Directory | GitHub Repository

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

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

Xiaoye