Introduction¶
DeepSeek Harness (DSH) initiates a large number of network requests during operation: loading plugins, fetching models, downloading dependencies, and more. These requests are often scattered across background processes, making it difficult for developers to intuitively see what downloads are in progress, how fast they are running, or when they are expected to complete. Without a solid understanding of network quality or proxy configurations, there is also a lack of clear troubleshooting guidance when downloads are slow or fail.
The traditional approach typically relies on terminal logs or browser developer tools, where information is scattered and context switching is frequent. This plugin provides a persistent floating card in the bottom-right corner of the DSH interface, displaying active download tasks in real time: file names, progress, speed, and estimated time remaining. It also offers a draggable layout and configuration toggles, making it convenient to continuously monitor network status during development or debugging.
Plugin Overview¶
- Plugin Name: ppgod-787/dsh-download-meter
- Maintainer: ppgod-787
- Category: Client
- Version: 1.4.0
- License: MIT
This plugin provides DSH with a lightweight download progress and network speed monitoring card. Data is sourced from actual network transmissions occurring in the host process, while approximate progress is also derived by parsing subprocess tool output, helping developers continuously track download status within a single interface.
Core Features¶
Bottom-Right Floating Card¶
The plugin displays a floating card in the bottom-right corner of the DSH interface, persistent by default. When idle, it shows “Downloads / Waiting for downloads…”; when transfers are active, it expands in place into a list with progress indicators.
- The card width is approximately half that of the balance widget in the bottom-right corner (roughly 125px on desktop).
- Its right edge aligns with the balance widget, overlaying its visible graphics without either obstructing the other.
- Dragging the card’s title bar repositions it; the position is saved to localStorage and persists across page refreshes.
- If dragged beyond the window boundaries, the card automatically snaps back into the visible area.
- Double-clicking the title bar restores the default position.
Displayed Content¶
- Title bar: icon + “Downloads” + current aggregate speed.
- One line per download: file name (or subprocess tool name), percentage, and time remaining, with a thin progress bar below.
- Up to 3 items are displayed; any additional items are summarized as “+N” at the bottom.
- Non-download real traffic (e.g., model API streaming) is aggregated as “Other Network” with a combined speed.
- When a total size is known, percentage and time remaining are shown; when only a percentage is available (e.g., git object counting), only the percentage is displayed; when only byte counts are available, received bytes and speed are shown.
- Failures (HTTP 4xx/5xx or transfer errors) display “Failed + status code,” and the progress bar turns red.
Two Data Sources¶
1. Host Process Network (Precise)¶
The plugin subscribes to Node.js undici:request:* diagnostic channels, counting bytes as data actually passes through the network layer. It does not wrap, replace, or patch any module, so the metering itself has no impact on whether a download succeeds; in the worst case, a transfer simply does not appear on the card.
- What is measured is the on-the-wire bytes (compressed responses are counted by their compressed size), which is exactly what “network speed” means.
- Speed is estimated over a recent ~1.2-second window, with a minimum observation threshold of 350 ms before reporting, to avoid inflating speed from a single burst.
2. Subprocess Downloads (Approximate)¶
The plugin reads progress output from subprocess tools in a side-channel manner to provide approximate statistics, covering common command-line download tools:
curl,git,pnpm,npm,yarn,uv,pip,cargo,docker,aria2c,rsync, etc.- When tools use pipe/capture mode, the plugin reads their non-consuming output stream without pausing or taking over, so shell tools receive their output exactly as-is.
- Only stderr is read (progress is typically emitted there).
- This is an approximation parsed from output text; what is displayed depends on what the tool actually prints.
Known coverage differences:
| Tool | Typically Visible |
|---|---|
pnpm / npm / yarn |
Package counts, download prompts |
git clone/fetch |
Depends on whether the shell forwards its stderr progress (e.g., Counting objects: 33% (1/3)) |
curl |
Usually not visible: curl only prints its progress meter when stderr is a real terminal; when piped, it stays silent |
uv / pip / cargo |
Download prompt lines (usually include total size) |
Not counted: the browser renderer process’s own resource loading; and tool output that does not print progress lines.
Configuration Options¶
The plugin provides the following configuration options, adjustable in plugin settings:
minTransferBytes(default24576): Minimum completed transfer size to display (bytes). Completed requests below this threshold are not shown, reducing background noise; in-progress and failed transfers are always displayed.includeModelTraffic(defaultfalse): Whether to list model/server streaming responses as individual items. Disabled by default; such traffic is only included in the “Other Network” aggregate.watchSubprocesses(defaulttrue): Whether to parse subprocess download tool progress output.hideWhenIdle(defaultfalse): Whether to hide the card when idle. Defaults tofalse(persistent, for easy repositioning); set totrueto show only during active transfers.
Diagnostic Toggle¶
To troubleshoot whether the card is rendering at all, you can temporarily keep the card persistent using a local request (lasts up to 600 seconds, auto-expires):
GET /dsh-download-meter/state.json?standby=120
The returned JSON from the same endpoint also includes polls (number of page polls) and shown (number of card render beacons) counters, used for diagnostics only and does not affect display logic.
Known Cases With No Data¶
The host’s own routes (/api/, /plugins/, /dsh-download-meter/, /dsh-whale/, and other local routes) are excluded to prevent the card from counting its own polling.
Installation & Activation¶
Enable this plugin through DSH’s plugin management:
dsh plugin add github:ppgod-787/dsh-download-meter
Once enabled, the floating card will appear in the bottom-right corner. You can disable or remove this bundle from the “Plugins” settings, and the card will disappear immediately. The plugin does not modify any other functionality.
Typical Usage¶
- When developing dependencies, run
pnpm installin the terminal; the bottom-right card will show package counts and download prompts (if the tool output includes progress information). - When cloning a large repository, the bottom-right card will show
gitobject counting progress (depending on whether the shell forwards its stderr progress). - When loading a model or calling an API in DSH, the host process’s network requests will be displayed with real byte counts and speed; model streaming responses are not listed as items by default and are only aggregated under “Other Network.”
Applicable Scenarios & Notes¶
This plugin is suitable for DSH users who need to continuously monitor download status or troubleshoot network issues during development or debugging. It runs with the permissions of the current DSH process; it is recommended to review the source code and license before installation.
Summary¶
ppgod-787/dsh-download-meter provides DSH with a download progress and network speed monitoring card based on real network transmission data, while also offering approximate progress by parsing subprocess output. It does not alter any existing DSH behavior and is well-suited as an auxiliary tool for daily development and debugging.
- Plugin Directory: https://www.skillhub.cn/plugins/ppgod-787/dsh-download-meter
- GitHub: https://github.com/ppgod-787/dsh-download-meter