dsh-desktop-shell: A Desktop OS Integration Plugin for DeepSeek Harness

Introduction

DeepSeek Harness (DSH) embraces the “everything is a plugin” philosophy, extending its capabilities through plugins. In desktop scenarios, agents frequently need to interact with the system: popping up notifications, capturing screenshots into sessions, reading clipboard content, and invoking DSH via global hotkeys. None of these capabilities are built into DSH as it stands—they must be implemented individually or by calling external services. dsh-desktop-shell was created to solve exactly this problem, packaging system notifications, screenshot capture, clipboard reading and monitoring, and global hotkeys into a single Cordis plugin bundle.

Plugin Overview

  • Name: dsh-desktop-shell
  • Maintainer: LUgABeEEE
  • License: MIT
  • Version: 0.1.0
  • Category: Client (host surface)
  • Description: DeepSeek Harness desktop OS integration plugin: native system notifications, screenshot capture as session attachments, clipboard reading and monitoring, and global hotkeys.

Core Capabilities

The plugin provides four core capabilities, all processed locally with no data uploaded:

  1. Native System Notifications
    - Tool: desktop_notify
    - Status: Complete
    - Description: Implements local system notifications via node-notifier, dynamically loaded on first use.

  2. Screenshot Capture → Session Attachment
    - Tool: desktop_capture_screen
    - Status: Complete
    - Description: Screenshot bytes are written directly to the host’s attachment store (ctx.attachments.saveImage), with no temporary files created and no disk accumulation.

  3. Clipboard Read / Monitor
    - Tool: desktop_read_clipboard
    - Status: Complete
    - Description: Reads clipboard content; monitoring uses polling (750 ms interval) and is disabled by default.

  4. Global Hotkey to Invoke DSH
    - Setting: hotkey
    - Status: Partially Complete
    - Description: Registers a Win32 RegisterHotKey (via PowerShell), but the host currently does not expose a window/tray seam. When the hotkey is triggered, a system notification prompts “Please switch to DSH manually”—automatic window focus is not yet supported.

Installation & Enablement

Desktop profiles are exclusively managed by the Electron application; the CLI cannot modify them. Installation must be done through the in-app plugin page (or by manually adding bundles to the app’s built-in profile directory).

If you are using a CLI-managed profile (e.g., created from a web template), you can use the following commands:

# Create or switch to a profile first
dsh myprofile --from-default-profile web

# Install the plugin
dsh plugin --profile myprofile add F:/mimo/dsh/dsh-desktop-shell

Before installing, ensure the profile directory contains a .npmrc file with the following content:

ignore-workspace-root-check=true

Typical Usage

  • Notifications: Call ctx.tools.desktop_notify({ title, message }) in DSH code to trigger a system notification.
  • Screenshots: Call ctx.tools.desktop_capture_screen({ mode: 'fullscreen' }) or specify a region with {x, y, width, height}. The returned image data is saved directly to the session attachment store via ctx.attachments.saveImage.
  • Clipboard: Read the current clipboard content via ctx.tools.desktop_read_clipboard() during a model invocation. Monitoring requires enabling watch and autoInject in the configuration; both are disabled by default.
  • Global Hotkey: Configure hotkey (e.g., Ctrl+Shift+D) on the settings page. Pressing the hotkey will prompt you to manually switch to the DSH window.

Use Cases & Caveats

  • Ideal for DSH agents that require deep interaction with the local system, such as automated workflows, local file/screenshot/clipboard operations, and desktop quick-launch scenarios.
  • The plugin runs with the privileges of the current DSH process. Ensure you review the source code and license (MIT) before installation.
  • Windows is the primary target platform. macOS and Linux receive best-effort compatibility, and some capabilities (e.g., window-specific screenshots) are not yet supported.
  • Note: Clipboard monitoring is disabled by default, and the polling mechanism wakes the CPU at each interval. Clipboard writes from high-integrity-level processes may not be captured.

Summary

dsh-desktop-shell unifies notifications, screenshots, clipboard operations, and global hotkeys into the DSH desktop client, eliminating the need for custom implementations or external service dependencies. All operations are performed locally. Although hotkey-based window focus is still limited and screenshot region selection / window capture are not yet supported, as an OS integration bundle it provides a stable foundation for connecting agent capabilities to the desktop environment.

  • Directory: https://www.skillhub.cn/plugins/LUgABeEEE/dsh-desktop-shell
  • GitHub: https://github.com/LUgABeEEE/dsh-desktop-shell
羽毛球分组比赛记分
小程序二维码

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

Xiaoye