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¶
- 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.
- Statistics: Supports counts for Total/Running/Completed/Failed/Cancelled/Finished, and calculates completion rate, cumulative duration, maximum duration, and retained output bytes.
- 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.
- 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.
- Real-time Updates: Duration refreshes every second while a task is running.
- Ledger Storage: Separated by session and merged by job ID, written to browser storage or a local file, making historical tasks visible after restart.
- 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¶
- Expand the right sidebar (click the “Open Sidebar” button in the session header or press
Ctrl+Alt+B). - Click the “Background Task Stats” card on the “Start” page.
- Click a task row to expand and view the full command, task ID, status, timestamps, and retained output.
- 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-rightand@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