dsh-hcom: Enabling Bidirectional Message Exchange Between DSH and Local hcom Sessions

Introduction

DeepSeek Harness (DSH) extends its capabilities through plugins, but plugins can typically only interact via sessions and cannot pass data directly to one another. When you need DSH sessions to exchange messages with other hcom-connected sessions on the same machine—such as Claude Code or Codex—you usually have to rely on external tools or manual copy-paste. The dsh-hcom plugin exposes hcom’s messaging interfaces inside DSH, enabling DSH sessions to exchange information directly with local hcom participants.

Plugin Positioning

dsh-hcom is a plugin that provides local hcom messaging tools for DeepSeek Harness, independently maintained by WanchengWildMan. It serves as an adapter layer for hcom, allowing DSH sessions to invoke hcom’s local directory for sending and receiving messages—no network dependency and no copy-paste required.

Core Capabilities

The plugin provides the following capabilities:

  • Call hcom_inbox within a DSH session to view the current session’s mailbox name
  • Call hcom_send to send a message to a specified hcom participant (the recipient’s exact hcom name is required)
  • Receive replies from hcom participants
  • Each DSH session has its own independent mailbox
  • Incoming messages require an explicit tool call; idle sessions will not be woken up by new messages
  • Tools default to using hcom’s local data directory; if the DSH process has set HCOM_DIR, that directory will be used instead

Installation & Activation

Before installing, you must first install hcom 0.7.31 and ensure that the DSH process can find hcom from PATH. Download the package from GitHub Releases and run the following in the download directory:

dsh plugin --profile web add ./dsh-hcom-0.1.0.tgz
dsh web

Restart DSH after installation.

Typical Usage

  1. In a DSH conversation, ask the assistant to call hcom_inbox to view the current session’s mailbox name.

  2. Start another hcom participant, for example by running hcom claude. Ask DSH to call hcom_send and send a message using the other party’s exact name.

  3. Ask the other party to reply to your mailbox, then call hcom_inbox again to collect the reply.

Use Cases & Notes

This plugin is well suited for scenarios where you need to pass structured information or long text between DSH sessions and local hcom participants—for example, asking Claude Code or Codex for bug reproduction steps via DSH and then collecting the reply within DSH.

The plugin runs with the privileges of the current DSH process. It is recommended to review the source code and license before installation. To uninstall, run dsh plugin --profile web remove dsh-hcom and then restart DSH.

Summary

dsh-hcom brings hcom’s local messaging capabilities into DSH, enabling DSH sessions to communicate directly with local hcom sessions such as Claude Code and Codex, eliminating the hassle of back-and-forth copying. Its core value lies in making message exchange between DSH and local hcom participants more automated.

Directory Page | GitHub

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

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

Xiaoye