Preface¶
In DeepSeek Harness (DSH), the model often issues multiple statements via the Shell tool in a single batch: installing dependencies, compiling, and running tests. By default, tool call cards typically wait for the entire command sequence to finish before presenting the complete output. During execution, it is difficult to determine “which step is currently running” or “whether previous steps have finished.” dsh-shell-progress is a community-maintained workflow plugin that marks the current step of multi-step Shell commands using a segmented progress bar within the tool call card. It allows you to view the command, output, and duration of each step when the card is expanded or hovered over. The following section describes its positioning, capabilities, and installation configuration.
What is this¶
dsh-shell-progress (npm package name dsh-shell-progress, repository 9087/dsh-shell-progress) is a DeepSeek Harness plugin. When the pwsh / Shell tool executes multi-step commands that can be split, it displays a segmented progress bar inside the tool call card to indicate “which step is currently running.” It is maintained by 9087. The current npm version is 0.8.0, the license is MIT, and the runtime environment requires Node.js >= 20.11. The plugin directory page can be found on SkillHub.
Core Features¶
Collapsed State: Progress at a Glance¶
When the card is collapsed, a segmented bar appears next to the summary line: each top-level step corresponds to a segment. The status is indicated as pending, running, or done, accompanied by a count like 3/4, facilitating a quick assessment of progress and remaining steps.
Hover and Expand: Step-by-Step Output Viewing¶
Hovering over a segment opens a card for that specific step, displaying the command, output, and duration for that line. In the hover card, there is also a description line generated by the model above the command line (enabled by default, can be disabled in the DSH settings page under “Shell Progress”). This description and the command are written into the record together to avoid waiting for generation during runtime.
After expanding the entire card, each step occupies its own line: command, duration, and output. Steps currently executing will display a running clock.
Background Tasks and Non-Splittable Commands¶
If the model runs a command with run_in_background: true, the card title becomes “run a background job” with a warning marker (hover over it for an explanation). No progress bar or count is displayed—since the task is written to the record upon startup, the plugin cannot observe step-by-step progress. When expanded, only the command statement is listed; output remains in the Background jobs list at the top of the conversation. The command itself is not rewritten by the plugin, and the output remains consistent with the Shell.
If a command cannot be split or the plugin chooses not to track it, it is still processed as a single command: the card only draws one segment in the progress bar, and a ⚠ behind the title (hover for explanation “Not Split”) indicates that the progress bar represents the entire command rather than individual steps. The command execution method is the same as when the plugin is not installed, and the output is still subject to the Shell tool’s original per-step budget constraints.
Configuration¶
You can pass config to the plugin in the profile’s cordis.patch.yml (see table below for fields and default values). maxStepOutputChars controls the length of output retained for each step within the card; excess content is truncated in the card with a note on the number of missing characters. This does not affect the full stdout seen by the model from the Shell seam (the seam’s own truncated / spillPath logic remains unchanged).
| Field | Default Value | Description |
|---|---|---|
enabled |
true |
Whether to register the shell_progress tool |
pollIntervalMs |
120 |
Interval for the host to poll output from running processes (milliseconds) |
maxStepOutputChars |
8192 |
Upper limit of output characters retained per step in persistent progress |
maxSteps |
400 |
If the split step count exceeds this value, the command is executed as-is without step-by-step tracking |
liveRetentionMs |
300000 |
Duration to retain live records of finished calls before late-arriving polls (milliseconds) |
Installation and Activation¶
DSH loads plugins at startup; you need to restart dsh web after installing or modifying mounts.
Method 1: DSH Interface
Open the Plugins page, click Add plugin, and enter the npm package name dsh-shell-progress.
Method 2: Command Line
dsh plugin --profile web add dsh-shell-progress
Method 3: Manual Patch Entry
Insert the following into the cordis.patch.yml of your profile:
- insert:
- id: shell-progress
name: dsh-shell-progress
To customize behavior, you can add config under the same entry, for example:
- insert:
- id: shell-progress
name: dsh-shell-progress
config:
enabled: true
pollIntervalMs: 120
maxStepOutputChars: 8192
maxSteps: 400
liveRetentionMs: 300000
After the above steps and restarting the Web side, when the model executes multi-step commands via the Shell tool that are splittable, a segmented progress bar and step count will appear on the card.
Typical Usage¶
This plugin does not provide separate CLI subcommands. Typical usage involves installing and enabling it, then allowing the model to call the Shell (pwsh) tool as usual within a DSH conversation. When the model submits multiple top-level statements at once (e.g., consecutive npm install, npm run build, npm test) and the plugin is able to parse and split them, you will see a segmented bar and completed_steps/total_steps on the corresponding tool card. To view details of a specific step, hover over the corresponding segment or expand the card.
If the model sets a long-running task to run in the background (run_in_background: true), you should look at the Background jobs at the top of the conversation to view output and control the task, rather than relying on this plugin’s progress bar.
Use Cases and Notes¶
Who it is for: Developers who frequently run multi-step builds, tests, or deployment scripts in DSH and want to clearly see “which step is running” or “if it is stuck” while waiting.
Permissions and Security: The plugin is loaded with the current DSH process and shares permissions with the host. Before installation, please read the GitHub repository source code and MIT license. Install only from trusted sources (npm package name dsh-shell-progress or the repository mentioned above).
Ecosystem Note: DSH adopts an “everything is a plugin” extension approach. Community directories such as SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-shell-progress visualizes the execution position of multi-step Shell tool calls within the tool card, reducing the uncertainty caused by “black-box waiting.” To further understand the implementation or participate in contributions, please visit the directory page https://www.skillhub.cn/plugins/9087/dsh-shell-progress and GitHub https://github.com/9087/dsh-shell-progress.