Preface¶
Running a round of agent tasks in DeepSeek Harness (DSH) often takes a long time: installing dependencies, pulling models, or batch modifying files. The web interface defaults to scrolling output only within the current session; if you switch to another conversation, you lose sight of which step the previous round has reached or how much is left. The community plugin dsh-agent-progress (maintained by Autodog875) addresses this gap: it adds a draggable, persistent progress bar to the web interface and aggregates tasks currently in progress from both the “current conversation” and “all conversations.” It is classified as a client-side plugin; the repository currently has 0 stars on GitHub and is licensed under MIT.
Below is an introduction to what it does, how to install it, how to use it, and where the percentages come from.
What is this¶
dsh-agent-progress is a zero-dependency, pure JS plugin for the DSH web interface: a flat progress bar with no cartoon elements, floating balls, or emojis; when there are no tasks, it displays “No Tasks,” and the bar does not disappear. The percentage comes from real data (todo lists, done/total, task self-reported progress, session history steps and time consumption), not a sliding loading animation. Tasks running outside a single turn, such as background commands and sub-agents, also appear in the list, including tasks in other conversations. The plugin only reads local files and the host task registry; it does not write to host state or depend on third-party packages.
- Directory Page: https://www.skillhub.cn/plugins/Autodog875/dsh-agent-progress
- Source Code & Documentation: https://github.com/Autodog875/dsh-agent-progress
Core Features¶
| Capability | Description |
|---|---|
| Persistent | Displays “No Tasks · Idle” when there are no tasks; the bar never disappears. |
| Real Percentage | Prioritizes done/total; uses completion count when todos exist; otherwise estimates using session history average steps/time, capped at 99%, reaching 100% only upon completion. |
| Cross-Session Aggregation | Detects rounds currently running in any conversation, displaying title, project directory, Round N · Step M, elapsed time, and remaining time. |
| Background Tasks | Integrates with the host ctx.jobs event stream; background commands, sub-agents, and long tasks appear immediately upon registration, showing completion/failure upon ending, and are visible across sessions. |
| Total Progress | When collapsed, shows the weighted total progress of all running tasks (weighted by total, with tasks lacking total counted as 1 unit each). |
| Interaction | Draggable, position saved in localStorage; expandable, with individual progress bars, status dots, phase/speed/elapsed time for each task. |
| Color Scheme | Restrained five-color palette (#21467A, etc.), no shadows, gradients, or transparency. |
Compatibility (stated in README): DSH 0.2.x Desktop/Web; Node.js ≥ 20 (CLI); peer dependencies include @deepseek-ai/cordis ^4.0.1, etc.
Installation & Activation¶
Common practice in the DSH ecosystem involves using the plugin market or packing the package into a profile. This plugin’s README provides three methods; choose one.
Method 1: Plugin Market
Open “Plugin Market → Installed” in the DSH web interface, install and enable dsh-agent-progress, then refresh the page.
Method 2: Install from GitHub Source Package (README example uses tag v0.1.1)
pnpm add "https://github.com/Autodog875/dsh-agent-progress/archive/refs/tags/v0.1.1.tar.gz" --dir <DSH_HOME>/profiles/desktop
After installation, enable it via the toggle in the Plugin Market (the market will write to bundles and hot-load), then refresh the page. To update, you must change the version number in the URL accordingly.
Method 3: Local Link (For Development)
pnpm add "link:D:/path/to/dsh-agent-progress" --dir <DSH_HOME>/profiles/desktop
Similarly, open dsh-agent-progress in the Plugin Market. The README warns: manually modifying bundles in package.json may be overwritten by inference from .dsh-market/state.json; use the market toggle instead.
Before installing, it is recommended to review the repository source code and the MIT license yourself. The plugin reads local data from <DSH_HOME> under the DSH process permissions; it does not network or report back; however, your trust and audit of your local environment remain paramount.
Typical Usage¶
Auto-Display on Web¶
Once enabled, no additional configuration is needed. The progress bar refreshes via polling (approx. 0.8s for active tasks, 4s for idle) to pull agentProgress/state.
Writing Precise Progress via CLI¶
When you need a specific task to display a definitive percentage, you can use the included ap (bin/ap.mjs):
# Start a task of 500 files
node bin/ap.mjs set --key download --label "下载视频" --total 500 --done 0 --unit 个
# Advance (can be called repeatedly, only supply changed parts)
node bin/ap.mjs set --key download --done 137 --speed 3.2 --eta 120
# Finish / Fail
node bin/ap.mjs done --key download
node bin/ap.mjs fail --key download --note "sha256 mismatch"
# Keep-alive for long tasks (renew heartbeat every 5 seconds until timeout)
node bin/ap.mjs hold --key download --seconds 600
# Clear finished records
node bin/ap.mjs clear
# View records directory
node bin/ap.mjs dir
Records are written to <DSH_HOME>/agent-progress/<sessionId>/<key>.json and mirrored to all session directories by default (--local writes only to the current session). status can be running / done / failed; if running has no heartbeat for 15 seconds, it is judged as interrupted, and finished records are retained for 60 seconds (the UI keeps them for another 6 seconds).
Field Example:
{
"key": "download",
"label": "下载视频",
"status": "running",
"done": 137,
"total": 500,
"unit": "个",
"speed": 3.2,
"eta": 120,
"phase": "加密校验",
"note": "",
"startedAt": 1792572000000,
"updatedAt": 1792572060000
}
How Percentages are Calculated¶
By priority:
- If
total > 0in the record →done / total. - If the session has a todo list → Completed items / Total items.
- If a background task has published a progress line (e.g.,
7/10 files,42%) → Adopt it directly. - If none of the above → Estimate using that session’s history: take the maximum of the time dimension and step dimension, clamped between 1%–99%; the round ends when collapsed by host state changes. For background tasks with no data, it rises monotonically based on elapsed time, capped at 95%, reaching 100% only upon actual completion.
The 4th method is an estimation, not a precise value; the progress bar grows with real advancement and will not idle spin.
How it Works (Brief)¶
The web client lib/client.js registers a component in the slot conversation.session.header.actions and calls agentProgress/state via RPC (can carry global: true). The host-side AgentProgressService (lib/index.js) reads JSON under agent-progress, subscribes to ctx.jobs.events, scans session projections to determine “working” sessions, and then merges and deduplicates. cordis.patch.yml inserts agent-progress into the profile plugin graph.
Use Cases & Notes¶
Who is it for: Developers who frequently open multiple conversations in the DSH web interface, run long rounds or background commands, and want to see at a glance “what is currently being done and what tasks are running across the machine.”
Known Boundaries (README):
- The collapsed “Total Progress” is a weighted average; when multiple tasks run in parallel or new tasks just appear, the number may briefly regress; new tasks do not participate in weighting for the first 2 seconds.
- Tasks registered after the plugin loads via
ctx.jobsare guaranteed to be visible; those already running before loading are backfilled viajobs.list; the registry is in-process and cleared after restart. - If there are no todos, no
total, and the task does not self-report progress, the percentage is an estimate. - The diagnostic file
<DSH_HOME>/agent-progress/.host-status.jsononly records this plugin’s status.
The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; the DSH side remains an “everything is a plugin” extension approach.
Conclusion¶
dsh-agent-progress consolidates task progress from “current conversation + all conversations” into a persistent, expandable progress bar, and supports writing definitive progress from the script side via CLI. For installation steps and field descriptions, refer to the repository README: