dsh-handover-protocol: Standardized Session Header Handover Procedure Switch

Introduction

The plugin architecture of DeepSeek Harness (DSH) allows developers to extend session capabilities on demand. In multi-agent collaboration scenarios, the “handover” is the part where things most easily go wrong: artifacts missing SHA references, unverified items not logged, and the receiving side assuming they’ve got a full picture. This plugin turns standardized handover procedures into an optional header injection for each session—it only activates in sessions that actually need handover work; all other sessions remain completely unaffected.

What Is This

dsh-handover-protocol is a client-side plugin that places a 28px “Handover” button in the utilities slot of the DSH session header. The plugin is developed by maintainer CoolrfulDARkness and defaults to the Chinese protocol file bundled with the plugin at protocol/HANDOVER-PROTOCOL.md. It supports switching to an English version or a custom protocol file via configuration.

Core Features

  • Dark by default: No content is injected; one-off task sessions experience zero disruption
  • When lit: The session’s system prompt is injected with a handover protocol pointer + the full set of trigger-word procedures (“Prepare handover” → the transferring side produces a two-layer handover package; “You take over” → the receiving side performs tiered self-assessment + mechanical verification, fail-closed)
  • Per-sessionId memory: Toggle state is stored in $DSH_HOME/dsh-handover-protocol/session-state.json and persists across reloads; sessions do not affect each other
  • Model self-checkable: In a lit session, the model can invoke the handover_status tool to confirm the current state
  • Auto-lit for new sessions: In the top bar of a blank new conversation (to the left of the right-sidebar expand button) there is a backup toggle—once enabled, all sessions that haven’t been explicitly turned off automatically activate the handover protocol, so you don’t have to click through each session individually

Installation & Activation

Install from the DSH plugin marketplace, or install manually:

# Create a junction under the profile's node_modules (Windows; use ln -s on macOS/Linux)
mklink /J "C:\Users\<you>\.dsh\profiles\desktop\node_modules\dsh-handover-protocol" "<path-to-this-repo-clone>"

Then append the following to the profile’s cordis.patch.yml:

- insert:
    - id: handover-protocol
      name: dsh-handover-protocol

Typical Usage

Switch Protocol Language

- insert:
    - id: handover-protocol
      name: dsh-handover-protocol
      config:
        protocolLang: 'en'   # Uses protocol/HANDOVER-PROTOCOL.en.md

Use a Custom Protocol File

- insert:
    - id: handover-protocol
      name: dsh-handover-protocol
      config:
        protocolPath: 'C:\\path\\to\\your\\HANDOVER-PROTOCOL.md'

Note: protocolPath must be an absolute path—each session has a different cwd, so relative paths will point to the wrong file.

Use Cases & Caveats

  • Suitable for scenarios requiring multi-agent collaboration and a standardized handover process
  • The plugin runs with the current DSH process’s permissions; review the source code and license (MIT) before installing
  • Trigger words are not code-level keyword matches; they are a mapping table injected into the system prompt and matched semantically by the model
  • Session state is persisted in $DSH_HOME/dsh-handover-protocol/session-state.json and only records which sessions have the toggle enabled—no session content is stored

Closing

dsh-handover-protocol turns standardized handover procedures into an optional header injection for each session, activating only in sessions that need handover work while leaving all other sessions completely unaffected. It’s ideal for developers working in multi-agent collaboration environments who need a standardized handover process.

  • Plugin directory: https://www.skillhub.cn/plugins/CoolrfulDARkness/dsh-handover-protocol
  • GitHub: https://github.com/CoolrfulDARkness/dsh-handover-protocol
羽毛球分组比赛记分
小程序二维码

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

Xiaoye