Introduction¶
DeepSeek Harness (DSH) has built-in background task management, but “seeing progress” is broken: the task list entry is a tiny 14 px icon in the conversation title bar — you wouldn’t even know it exists without hovering or clicking; pwsh / bash tasks have no progress field by default, so a row shows only the label, elapsed time, and exit code; and real-time output requires manually expanding a row before subscription begins. The most common result: something is spinning up there, but you have no idea what it’s doing or how far along it is.
dsh-jobs-progress is a client-side plugin, registered in conversation.input.dock, that only reads the built-in ctx.jobs client service: no new Host routes, no writes to document.body, and no build step required. Disabling the plugin removes all behavior immediately.
Core Features¶
Persistent Panel¶
Displayed as a full-width row above the input box — visible the moment a task appears, no need to click the title bar icon. Panel location: conversation.input.dock, order 15, active.
Auto Observation¶
Running tasks are subscribed to for output without needing to be expanded; up to 4 running + 2 recently settled tasks are observed simultaneously. When there are no rows, the panel renders nothing and releases all observation streams.
Progress Parsing¶
Prefers job.progress; otherwise extracts the last valid number from the trailing 8 KiB of output. Supports 78%, [7/9], 7/9, 3 of 10; percentages are clamped to 0..100, fractions require b > 0 and a <= b; rejects false progress extracted from longer numbers or dates (150%, 2024/11).
Output Tail¶
Rows with output can be expanded; <pre> auto-follows the bottom, and stops pulling when the user scrolls up manually. Maximum height is 240 px with internal scrolling.
Elapsed Time & Bytes¶
Refreshes elapsed time, cumulative output bytes, and the most recent non-empty output line every second. Display format: mm:ss or h:mm:ss; B / KB / MB.
Two-Step Stop¶
First click enters “Confirm Stop” state; a second click within 3 seconds requests the stop; timeout auto-dismisses. Only available on running rows; failures show visible feedback.
Collapse Memory¶
Header is collapsible; state is written to localStorage (dsh-background-monitor.collapsed) and persists across page refreshes.
Installation & Activation¶
Prerequisites:
- DSH 0.2.2-rc.5 or a compatible 0.2.x (using built-in ctx.jobs and conversation.input.dock)
- Web Client (desktop app / dsh web both work)
- No extra dependencies, no npm install required, no build step
Installation steps:
- Get the code:
git clone https://github.com/hchao3335-maker/dsh-jobs-progress.git
- Install into profile:
In a DSH session, have the agent use the plugin manager to install this directory:
用 plugin_manager install_bundle 安装 <本目录的绝对路径>
Or pack first, then install:
npm pack
# 然后安装生成的 dsh-jobs-progress-1.0.0.tgz
- Confirm it took effect:
The installation result should beapplication: applied. Client bundles are usually hot-swapped via HMR; if it doesn’t appear immediately, just refresh the page. The plugin has no configuration options; once enabled, it applies to all sessions.
Typical Usage¶
When It Appears¶
| Task State | Appearance Condition |
|---|---|
running / stopping |
Started more than 1.5 seconds ago |
completed / killed / failed |
Within 30 seconds of settlement, and has actual output |
The 1.5-second grace period filters out jobs briefly registered by each foreground command; longer-running foreground commands will still appear normally.
Interactions¶
- Stop: First click enters “Confirm Stop”; a second click within 3 seconds requests the stop; timeout auto-dismisses.
- Expand: Rows with output can be expanded; output auto-follows to the bottom; stops following after a manual scroll-up.
- Collapse: Click the header to collapse/expand; state is written to
localStorage(dsh-background-monitor.collapsed). - Keyboard: All buttons are Tab-focusable; progress bars carry
aria-valuenow/aria-busy.
Sample script:
# 想马上看到效果:启动一个会打进度行的后台任务
1..120 | ForEach-Object {
"[{0}/120] {1}% 正在处理块 {0}" -f $_, [math]::Round($_ / 120 * 100)
Start-Sleep -Seconds 1
}
Run the script above with DSH’s run_in_background, return to the session, and the panel will appear above the input box.
Use Cases & Caveats¶
Suitable for developers who need real-time monitoring of background task progress, especially for scenarios like running scripts and batch processing. The plugin runs with the current dsh process’s permissions; review the source code and license before installing.
The plugin is licensed under MIT, has zero dependencies and requires no build, pulls react from the page module table, and uses no Host routes or Client package imports.
Closing¶
dsh-jobs-progress fills the gap of “glancing up and seeing how far along your running script is.” If you’re used to running long tasks in DSH, this plugin can save a lot of back-and-forth switching and manual expanding time.
- Directory page: https://www.skillhub.cn/plugins/hchao3335-maker/dsh-jobs-progress
- GitHub: https://github.com/hchao3335-maker/dsh-jobs-progress