dsh-steer-merge: Merging Rapidly Arriving DSH Interruptions into a Single Commit

Introduction

When running agent workflows in DeepSeek Harness (DSH), interruptions often arrive continuously from multiple entry points in a very short time: native local DSH channels, message routing receipts, etc. If each step only consumes one interruption, the model will repeatedly enter and exit at the same round boundary, the context is fragmented, and you and your collaborators are likely to feel “just finished saying one, the next hasn’t been seen yet.”

Below is an introduction to the community plugin dsh-steer-merge (maintainer jensentsts). At the boundary where “existing interruptions enter the next step,” it collects continuous interruptions and submits them to the current session once. Message body, sender, and attachments are still preserved per message. The plugin is categorized under Workflow, current version 0.1.0 (MIT License). For the ecosystem index, see dsh-independent-plugins; this repository is at GitHub, and the directory page is at SkillHub.

What is it

The positioning of dsh-steer-merge is: at the native DSH step boundary, merge concurrent steering messages waiting to be processed within a time window, and then proceed to the next step at once.

It does not replace DSH’s message routing semantics. Interruptions from DSH and different channels enter the same step in arrival order; interruptions temporarily queued by message routing will also participate in merging; messages that the user explicitly chooses to continue queuing are still processed in their original order. The determination of reply destinations for native message routing remains effective.

Implementation-wise, it relies on the inbox claim provided by the current DSH 0.2.2-rc.1 to preserve official persistence and message lifecycle events. If the runtime environment lacks this capability, the plugin will automatically fall back to original queue behavior. The documentation explicitly warns: do not assume interfaces remain available across DSH major versions.

Core Features

Collection Window and Wait Strategy

By default, wait 500 milliseconds after the last message arrives; if new messages enter the window, proceed to the next step after collecting for a maximum of 2000 milliseconds.

Configurable items (original field names in the documentation):

  • windowMs: 0–2000, set to 0 to wait, directly processing without waiting.
  • maxWaitMs: 0–10000; the maximum wait time should at least cover one collection window.
  • enabled: set to false to disable merging.

Regular messages do not participate in the above wait logic; merging mainly targets native DSH interruptions. The plugin can also recognize receipts from the message routing service and does not depend on the QQ bridge.

Version and Environment Requirements

From package.json:

  • Node: >= 24.9
  • DSH: >= 0.2.2-rc.1 and < 0.3.0
  • Inject DSH process via Cordis patch (cordis.patch.yml)

Installation and Enablement

The installation statement given on the SkillHub directory page is: request to install plugin jensentsts/dsh-steer-merge for DeepSeek Harness, and read the repository readme before installing. The truncated data does not contain the complete CLI one-line installation command; do not manually splice dsh plugin add github:... based on the plugin name. Refer to the instructions displayed on your current DSH version documentation and the SkillHub / GitHub page at that time.

Suggestions before installation:

  1. Compare with repository source code and the MIT license.
  2. Confirm that the local DSH is at 0.2.x (including 0.2.2-rc.1) and has inbox claim.
  3. The plugin runs with current DSH process permissions, with the same permission scope as the main process.

After enabling, adjust behavior via enabled, windowMs, maxWaitMs; specific mount paths depend on the patch inside the repository and the DSH plugin configuration mechanism (the scraped data does not expand on YAML examples).

Typical Usage (Behavioral Level)

The following describes the runtime method declared in the README, to facilitate your verification against logs and step boundaries.

  1. When the agent is about to go from the current step to the next step, if multiple interruptions arrive continuously within the window in the queue, the plugin first collects and then submits once to the current session.
  2. If you queue some messages to the next round via message routing, these interruptions will still participate in collection under the merging rules; only when you explicitly choose to let a certain message continue queuing will it be processed strictly in its original order.
  3. When “triggering a step for each interruption immediately” is required, you can set windowMs to 0 or disable enabled.

The repository currently has 0 stars, and there are no end-to-end configuration example commands in the data; verification relies on you continuously sending multiple interruptions in a test environment and observing whether they are consumed in one go at the step boundary.

Applicable Scenarios and Considerations

More Suitable For:

  • Group chats or multi-channel simultaneous @mentions of an agent, with multiple steers flooding in within a few seconds.
  • Wanting to reduce fragmented turns caused by “one step, one message” while still retaining the sender and attachments of each message.

Things to Note:

  • Merging can introduce a delay of up to roughly the maxWaitMs magnitude (usually hundreds of milliseconds under the default window); for scenarios extremely sensitive to real-time performance where each message must be a step independently, the window should be narrowed or the plugin disabled.
  • When upgrading DSH to 0.3.0 or above, you must re-verify if engines.dsh constraints and claim are still available.
  • The community directory SkillHub has no official affiliation with DeepSeek / Hypersphere; the plugin source belongs to maintainer jensentsts, not an official app store release.

Conclusion

dsh-steer-merge solves the “interruption congestion” at the workflow boundary: building upon the official inbox lifecycle, it synthesizes consecutive steers into one step using an adjustable collection window, while preserving multi-source message structure and routing semantics.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye