dsh-narrator: Report progress in body text during long model silence

Introduction

When running agent tasks in DeepSeek Harness (DSH), the model may call tools continuously or perform long-chain reasoning without outputting visible text to the conversation area. With no new content on the interface, it is difficult to determine if the task is still executing or has stalled. Relying solely on prompts to ask the model to “speak occasionally” often fails: in the host agent loop, a plain text message without tool calls is typically treated as the end of a turn. If the model actually speaks, the task might halt there instead of continuing.

dsh-narrator is a DSH plugin (Category: Model Reasoning) released by community maintainer Asza-other to address these silent scenarios. After a configurable threshold is exceeded, it injects a prompt at an appropriate step boundary, instructing the model to explain its progress in the body text without closing the current turn. The original report text can be displayed synchronously in a floating window at the bottom-left corner of the conversation area. The plugin features a minute-level graphical settings card and has no additional runtime dependencies.

What is this

dsh-narrator (repository Asza-other/dsh-narrator) hooks into DSH hooks like agent/pre-step via a Cordis patch. It monitors text output in the assistant stream and times based on “how long it has been since the last body text” (tool calls and reasoning are not counted). When the time is reached, it first logs the event. Then, at the next step boundary, it appends a context message with source: { kind: 'narrator', form: 'notice' } to the request. The model generates a visible report based on this, and the turn continues because there is still a valid decision path. On the user side, you can adjust the threshold, interval, prompt, and floating window behavior in the “Progress Narration” settings page.

Core Features

Injection Timing Without Interrupting Turns

The plugin does not modify the request immediately when the silence threshold is reached. Instead, it merges messages within the agent/pre-step waterfall, ensuring that decision.messages.length is not 0, thus avoiding being treated by the host as a “plain text turn end.” The injected content is hidden from the user by default (classified as a context node), but the model can still read it. If you need to see the injected raw text in the conversation stream, you can enable “Display this prompt in the conversation” in the settings.

Timing Based on “No Text Output”

The trigger baseline is the duration since the last body text output, not the duration of a single step execution. Multiple consecutive tool calls without a single word spoken will still trigger it. After a successful report, the timer is pushed to the current moment to avoid immediate re-triggering. New turns (turn/end) reset the timer to zero.

Bottom-Left Floating Window and Waiting Phases

When “Also pop report content to the bottom-left floating window in the conversation area” is enabled, the model’s raw report text is pasted at the bottom-left corner of the conversation body. It supports common Markdown rendering (headings, lists, tables, inline code, etc.). The colors follow the host’s --dsw-alias-* tokens, making it compatible with both light and dark themes.

There may be a delay between the trigger time and the actual injection (e.g., if the step is waiting for a sub-agent). The floating window displays phased hints: Still Waiting → Organizing Report → Reporting, and explains whether it is waiting for a subtask, searching data, running commands, or reading files. After the main window dispatches a sub-agent, you can also decide via settings whether to inject into the subtask session as well (disabled by default, as injecting when the sub-agent interface is invisible would waste an extra model call).

Graphical Settings and Local API

Settings Entry: Settings → Progress Narration. Main items include: Master Switch, No Text Output Threshold (default 1 minute, range 1–60 minutes), Minimum Interval Between Reports, Four-point Report Prompt (fully replaceable), Floating Window Transparency, and Duration. Configuration is persisted in ~/.dsh/narrator/config.json, which has higher priority than the preset values in cordis.patch.yml. A “Test” section is provided at the bottom of the card, allowing you to temporarily compress the threshold to a few seconds to verify the effect; it restores the real configuration upon closing.

After successful installation, you can access a self-check interface locally (only 127.0.0.1):

curl http://127.0.0.1:<port>/api/narrator/status

The port is based on the DSH window address bar; the return example includes {"ok":true,"version":"0.12.5",...}.

Installation and Activation

Prerequisites: DeepSeek Harness 0.2.1+ (depends on dsh.client and shell.overlay slots, etc.), Node.js 18+. The plugin package itself has no npm runtime dependencies; there is no need to run npm install in the plugin directory.

The following describes the steps to install the plugin into a specific profile (replace desktop with the profile name you see in DSH settings).

1. Copy the plugin to the profile’s node_modules

After obtaining the dsh-narrator source directory from the GitHub repository, copy it to the corresponding path of the profile:

cp -r dsh-narrator ~/.dsh/profiles/desktop/node_modules/dsh-narrator

Windows equivalent: %USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-narrator.

2. Modify the profile’s package.json (add in both places)

{
  "dependencies": {
    "dsh-narrator": "file:../../path/to/dsh-narrator"
  },
  "dsh": {
    "profile": {
      "bundles": ["dsh-narrator"]
    }
  }
}

Neither dependencies nor dsh.profile.bundles can be omitted: writing only bundles might cause it to be cleared during a pnpm reinstall; writing only dependencies will prevent the plugin from loading. If DSH automatically executes pnpm install, it is recommended to recheck if the bundles array is still present.

3. Restart DSH

agent/pre-step is registered in the backend; refreshing the page is not enough. You must restart the DSH process.

4. Verification

The appearance of “Progress Narration” in the settings indicates successful loading; you can also use the curl command above to access /api/narrator/status.

Typical Usage and Tuning

  1. Keep the default “Let the model report periodically” enabled, with a threshold of 1 minute and an interval of 1 minute. This is suitable for scenarios where you wish to see progress explanations frequently.
  2. README suggestion: Single step execution typically takes about 5–7 seconds; if you only want a reminder when clearly stuck, set the threshold to 3–5 minutes; it will basically not trigger above 30 minutes.
  3. When customizing the report structure is needed, edit “How to tell the model about the report content” in the settings card. If left blank, the built-in four points are used (What is being done / What is completed / What to do next / Where it is stuck).
  4. For development and debugging, you can use scripts in the repository (must be executed within the cloned or downloaded source tree): npm test runs unit tests; node test/check-status.mjs <port> reads the self-check information of a running instance.

Use Cases and Notes

Who it is for: Users who frequently run long-chain agents on the DSH web end, where the model habitually spends long periods only calling tools or reasoning; users who want to sync progress using the model’s own words without interrupting the task.

Known Limitations (Excerpt from Official README):

  • Injection does not guarantee that the model will definitely continue executing after reporting. The default prompt requires “must continue execution after speaking” at the end to reduce the probability of stopping.
  • There is a step boundary delay between the time trigger logging and the actual injection; the floating window will display a waiting state when waiting for a sub-agent.
  • Currently only supports the web end; native UI for the desktop shell has not been implemented.
  • Modifying the frontend bundle requires a page refresh; backend configuration takes effect immediately.

Security and Permissions: The plugin is loaded with the current DSH process and user profile, accessing sessions and local configurations with the permissions of that process. Please read the MIT License and source code before installation to ensure it complies with your environment strategy. The community plugin directory skillhub.cn is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-narrator uses the host-approved agent/pre-step injection method to make the model explain progress in the body text during long silences, and presents the raw text to the user via a bottom-left floating window, keeping the task turn uninterrupted. For more screenshots and troubleshooting instructions, refer to “Installation and Function Description.md” and “Feature Introduction.md” in the repository.

  • Directory Page: https://www.skillhub.cn/plugins/Asza-other/dsh-narrator
  • GitHub: https://github.com/Asza-other/dsh-narrator
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye