muche-dsh-plugin: Connect to Xiao Mu in DSH Desktop and reverse call local dsh

Preface

DeepSeek Harness (DSH) decomposes capabilities into installable plugins. Developers typically run agents and invoke tools within a local Terminal or Desktop environment. If you desire a “digital entity” sidecar that maintains continuous conversation state and can dispatch tasks to your local dsh, rather than starting from scratch in a dsh session every time, you need to establish an independent chat channel within the Desktop and handle the security boundaries of chat log storage and reverse execution.

The following introduces the community plugin muche-dsh-plugin (Maintainer: NEINC1, SkillHub Category: Workflow). It connects to MuChe (a digital entity), provides a chat overlay in the bottom-left corner of the DSH Desktop, and keeps chat logs on the server side. Simultaneously, it utilizes an outbound persistent connection for reverse bridging, allowing MuChe to execute tasks within your local dsh process without requiring inbound ports to be opened on your machine.

What is This

muche-dsh-plugin is positioned as a DSH plugin that connects to the MuChe backend. You can chat with MuChe, which possesses continuous state; when authorization and bridging are ready, MuChe can invoke dsh under your current profile to execute tasks.

Unlike approaches that “stuff chat into the dsh agent loop,” the README explains that MuChe chat uses a plugin-drawn panel and connects directly to the backend (HTTP send/receive + backend WebSocket downstream). It does not enter the dsh agent loop and does not create dsh sessions, thereby avoiding context noise such as LLM injection into AGENTS.md within the session.

  • Directory Page: https://www.skillhub.cn/plugins/NEINC1/muche-dsh-plugin
  • Source Code & Docs: https://github.com/NEINC1/muche-dsh-plugin
  • License: MIT (see repository LICENSE)

Core Features

The following capabilities are derived from the repository README and package.json descriptions; they can be customized or trimmed as needed.

Chat Overlay

  • Bottom-left “MuChe” entry point with a draggable panel; chat bubbles, unread badges, and proactive messages pop up in real-time.
  • The input box supports Ctrl+V for image pasting (entering preview, validation, and sending just like clicking the “Image” button); plain text pasting retains the browser’s original behavior.

Server-Side Direct Read

  • Chat logs exist only on the server; the panel utilizes single-page initial load, incremental normalization, and cursor-based pagination.
  • Since version 0.5.0, no chat files are stored locally. Reinstallation or switching machines does not require migrating local chat directories; legacy ~/muche-dsh-workspace/messages/ directories from older versions must be manually deleted if they exist.

Reverse Bridging

  • MuChe calls your local dsh to execute tasks via an outbound persistent connection, without opening inbound ports.
  • The bridging protocol has been v2 since version 0.7.0 (see README); the backend passes task frames down through the user’s bridge connection, and the plugin executes them within the local dsh process and returns the results via the same path. If the bridge is unavailable, the backend fails explicitly rather than falling back to server-side execution.

Settings & Connection

  • Settings Page: Each user configures their own Backend URL and API Key (generated in the MuChe admin panel).
  • The Backend URL should be the actual base address (e.g., <public-base-url>/api); the plugin no longer automatically appends the /api suffix. Usability is determined by the “Test Connection” button on the settings page.
  • Unified Health Check: GET /api/muche/health, returning conclusions for authentication, history, and WebSocket in a single request.

Panel Status Indicators

The title bar indicates whether the chat channel is capable of sending and receiving (independent of reverse bridge status):

Display Meaning
Connecting Chat connection is being established after startup
Online Both sending and receiving sides are ready
Offline Connection is unavailable

Configuration issues uniformly prompt “Please check configuration”; network interruptions show “Connection temporarily interrupted, reconnecting”; quota exhaustion has a separate prompt and does not affect the “Online” status.

Installation & Activation

Environment Requirements

package.json declares:

  • Node: >=22
  • DSH Host: 0.2.0-rc.2 (engines.dsh; consistent with the strategy of blocking installation on legacy hosts by the Marketplace)
  • Current Plugin Version: 0.8.2

Peer dependencies must match the host’s cohort (e.g., @deepseek-ai/dsh-llm, @deepseek-ai/dsh-tools must both be 0.2.0-rc.2).

Installation

Execute in the DSH Desktop DSH Terminal (bare commands install to the currently active profile by default; restart DSH Desktop from the system tray after installation):

dsh plugin add muche-dsh-plugin

To upgrade, rerun the same command. The README warns: Do not use parent flag syntax like dsh --profile desktop plugin add. Instead, use the --profile flag native to the plugin subcommand. Otherwise, you will receive the error required option '--profile <name>' not specified.

Configuration & Chatting

  1. Open dsh settings → MuChe, fill in the Backend URL and API Key, and save.
  2. Click “MuChe” in the bottom-left corner to start chatting.
  3. Reverse bridging becomes online once the key is configured correctly; no additional switches are required.

Typical Usage

With the installation and configuration above, daily usage can be summarized as follows:

  1. Text & Image Chat: Enter text in the overlay, or use Ctrl+V / the “Image” button to send images.
  2. View History: The first screen loads from the server, and pagination uses cursors; there are no local copies of chat files.
  3. Local Tasks: When tasks are dispatched from the MuChe side, the plugin executes them within the local dsh via Bridge v2 (including session creation, prompts, event subscription, and interactive questioning/authorization; see the collapsed “Technical Details” section in the README for specifics). Execution permissions are equivalent to the current dsh process and user environment.

Uninstalling the plugin does not delete the muche configuration section in the profile; reinstallation allows for zero-config setup:

dsh plugin remove 'muche-dsh-plugin'

To completely wipe keys and addresses, you must manually delete the config section of the muche entry in the profile patch. After uninstallation, restart the Desktop from the system tray as well.

Use Cases & Notes

Who is it for

  • Developers already using MuChe who want to fix the conversation entry point within DSH Desktop.
  • Those who need the combination of “Server-side persistent conversation + Local dsh execution” and accept a deployment model using outbound connections without exposing local inbound ports.

Important Notes

  • The plugin runs with the permissions of the current dsh process; reverse bridging will execute tasks dispatched by MuChe locally. Before installation, you should read the source code and MIT license, and only connect to MuChe backends and API keys you trust.
  • The DSH plugin ecosystem follows the philosophy of “Everything is a plugin”; SkillHub etc. are community directories and have no official affiliation with DeepSeek / High-Flyer. This article does not constitute a security audit.
  • For troubleshooting, the README mentions that the host bridgeId is saved via official settings. It is shared across dual mounts on the same host; do not randomly delete or copy this identity.

Conclusion

muche-dsh-plugin consolidates “Stateful MuChe chat” and “Local dsh reverse execution” into a single workflow within DSH Desktop: chat is in the overlay, data is on the server, and tasks are in the local dsh. If you wish to learn more from the directory or source code, you can cross-reference versions and cohort requirements via the SkillHub plugin page and the GitHub repository README.

  • https://www.skillhub.cn/plugins/NEINC1/muche-dsh-plugin
  • https://github.com/NEINC1/muche-dsh-plugin
羽毛球分组比赛记分
小程序二维码

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

Xiaoye