dsh-pilot: Windows Desktop Vision and Control Plugin for DeepSeek Harness

In DeepSeek Harness (DSH), the model can understand screen content but cannot directly manipulate it. This forces desktop tasks to be completed manually by the user: describing the screen, taking screenshots, clicking, and reporting results. dsh-pilot closes this loop, enabling the model to reason through real pixels and directly operate the mouse and keyboard.

What Is This

dsh-pilot is a plugin for DeepSeek Harness, maintained by user momasiku, categorized as a workflow plugin. It is licensed under the MIT License.

Its core value lies in providing DSH with “hands and eyes,” enabling it to control the entire Windows desktop environment rather than being limited to a browser.

Core Features

The plugin provides three main tool interfaces, corresponding to visual perception, desktop manipulation, and batch execution:

  1. screen_view
    Captures a real-time desktop screenshot and returns it as a PNG image block. The model can directly view pixels instead of relying on OCR text summaries. The image includes a coordinate grid to ensure accurate click positioning.

  2. desktop_control
    Executes specific desktop control operations. Supports moving the pointer, clicking, dragging, scrolling, typing text, sending keystrokes, focusing windows, and listing the window control tree.

  3. desktop_sequence
    Runs a batch sequence of operations in a single call. This reduces round-trips between the model and the computer, improving efficiency.

Installation and Activation

Since specific installation commands are not provided in verified facts, please refer to the repository documentation. The following environment dependencies must be met before use:

  • Platform: Windows only.
  • Node.js version: ^22.19.0 || >=24.0.0 required.
  • Dependencies: The following peer dependencies must be installed:
    • @deepseek-ai/cordis
    • @deepseek-ai/dsh-attachment
    • @deepseek-ai/dsh-llm
    • @deepseek-ai/dsh-tools

The plugin is integrated via cordis.patch.yml; ensure the environment is configured correctly.

Typical Usage

Calling desktop_sequence in DSH can complete a series of desktop operations in one go. For example, opening an Excel report, modifying cell contents, and saving:

desktop_sequence([
  focus "报表.xlsx", 
  click 812,430, 
  type "Q3 收入", 
  key enter, 
  key ctrl+s
])

Use Cases and Considerations

Use Cases:
* Operations on any Windows desktop application, not browser automation.
* Tasks requiring batch execution of consecutive mouse/keyboard operations.

Considerations:
* Permissions & Security: The plugin runs with the permissions of the current DSH process. Review the source code and license (MIT) before installation.
* Coordinate Precision: The plugin uses a per-monitor DPI-aware mechanism to ensure screenshot coordinates correspond one-to-one with physical screen pixels, avoiding click offsets caused by DPI scaling.
* UI Automation Limitations: Although it supports reading the control tree to improve click accuracy, not all UI controls support this (e.g., Canvas, Electron windows). The screenshot functionality serves as a fallback.

Summary

dsh-pilot transforms DSH from a “describer” into an “executor” by providing screen capture and desktop control capabilities. For developers needing automation on the Windows desktop, this is a tool that directly integrates DeepSeek’s capabilities.

目录页 | GitHub 仓库

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

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

Xiaoye