dsh-control: Unified Local Window Management for Remote dsh Instances

Preface

DeepSeek Harness (DSH) adopts a plugin-based architecture. In multi-machine collaboration scenarios, it is often necessary to handle workspaces or sessions on different machines separately. dsh-control aims to address this pain point: it does not require deploying additional filesystem tools on remote machines; instead, it connects remotely running dsh instances to the local frontend via SSH tunnels, enabling unified management.

What Is This

dsh-control is a client-side plugin maintained by 6mt. Its core purpose is to provide a local window that drives and manages dsh instances running on remote machines.

Unlike traditional remote workspace plugins (such as dsh-remote), dsh-control does not treat remote machines as a filesystem; instead, it views them as running dsh instances. It allows you to interact with remote sessions directly in the local sidebar. Remote responses are streamed token-by-token without any changes to remote configuration.

Core Features

  1. Local Frontend for Remote dsh Instances
    Create panels in the local sidebar to directly access dsh instances already running on remote machines.
  2. One-Click SSH Connection
    Simply input user@host to probe the remote dsh status, establish an encrypted channel, and connect.
  3. Automatic Local Workspace Creation with Matching Names
    Each remote environment automatically creates a local workspace with the same name. Created sessions are automatically associated with their remote counterparts.
  4. Token-Level Streaming
    Remote responses stream in token-by-token, providing an experience consistent with local sessions.
  5. Paired Naming
    Remote session names automatically receive a prefix (e.g., Control·<local title>), ensuring correspondence between local and remote sessions.
  6. Sidebar Visibility and Self-Healing
    Remote sessions are marked as visible in the sidebar. Disconnected connections are reported accurately and support one-click repair.

Installation and Activation

The plugin is published via npm package name. The installation command is as follows:

dsh plugin --profile <your profile> add github:6mt/dsh-control

After installation, you must fully quit and reopen dsh for the plugin to load. The plugin maintains a local state file and on-demand SSH tunnels, without relying on any native modules.

Version Management

  • Update: Use dsh plugin --profile <your profile> update dsh-control to pull the latest code.
  • Pin Version: Lock versions via tags or commit hashes.
    dsh plugin --profile <your profile> add github:6mt/dsh-control#v0.1.0

Notes

  • Remote Environment Requirements: The remote machine must have dsh installed and running (version >= 0.2.0-rc.2).
  • Connection Method: Currently connects via SSH; passwordless login or SSH keys must be configured.
  • Data Security: Passwords are never stored. The local side only maintains a $DSH_HOME/dsh-control/state.json state file (permissions 0600); it does not write to the remote filesystem, nor does it manage the lifecycle of the remote dsh instance.
  • Experimental Features: The remote turn cancellation feature has been implemented but is marked as experimental.
  • Coexistence: Can coexist with dsh-remote-type plugins.

Summary

dsh-control provides a zero-intrusion approach to managing dsh instances across multiple machines. It leverages existing remote model credentials and sandboxes, delivering a streaming interaction experience through local SSH tunnels.

For more information, see: DSH Plugin Catalog | GitHub Repository

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

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

Xiaoye