DeskPilot: Handing the Windows 10 Interactive Desktop Over to a DSH Agent

Introduction

DeepSeek Harness (DSH) Agents often face the dilemma of lacking direct operational interfaces when handling desktop-level tasks. Traditional RDP or screenshot recognition solutions are not only costly but also difficult to handle complex UI interactions. To address this issue, a solution capable of directly controlling the real desktop environment is required. The DeskPilot plugin is introduced below; it exposes Windows 10’s interactive desktop capabilities to DSH Agents via protocols such as UIA and CDP, enabling them to perform operations like window observation, real-time clicking, and form filling.

What is it

DeskPilot is a DSH plugin designed to hand over the interactive desktop of Windows 10 to DSH Agents. It is not merely a simulator but interacts with the desktop through native processes. Maintained by chengzhang0528, this plugin provides the ctx.deskpilot interface via the host plane plugin and runs a persistent win-agent.exe process for each session.

Core Capabilities

The plugin provides the following core features, extending Agent capabilities from “text processing” to “physical interaction”:
* Window and Control Observation: Real-time acquisition of current window status and control information.
* UIA Actions: Performing interface operations via the UI Automation protocol.
* Real Input Simulation: Simulating real clicks, typing, and window switching.
* Trusted Screenshots: Capturing high-quality desktop images.
* Offline OCR: Recognizing text content within screenshots.
* Chrome CDP Operations: Controlling Chrome browser pages via the Chrome DevTools Protocol.

Installation and Activation

The installation process consists of three steps: installing the plugin package, configuring activation items, and restarting the host.

1. Install the Plugin Package

Install from the latest Release assets of this repository. Use the dsh plugin command to invoke pnpm and add the package to dsh.profile.bundles.

dsh plugin --profile web add "C:\path\to\dsh-plugin-deskpilot-0.2.0.tgz"

2. Enable the Plugin Line and Point to the CLI Artifact

The plugin is disabled by default and needs to be enabled in the user layer cordis.patch.yml of the profile. Edit $DSH_HOME\profiles\web\cordis.patch.yml and add the following configuration:

- id: deskpilot
  disabled: false
  config:
    # CLI Artifact: Fixed Immutable Address
    asset:
      version: '6947fa5'
      platform: win-x64
      url: 'https://shared-public-assets.oss-cn-beijing.aliyuncs.com/deskpilot/cli/releases/6947fa5/dsh-bootstrap-6947fa5.zip'
      bytes: 13918926
      sha256: '6f0a3949ca155bb5106bbe2f18e6cb777e8c8ff2c1eebeb063e662585a1c21ba'
    timeoutMs: 130000
    doctorTimeoutMs: 60000
    setupTimeoutMs: 900000
    maxLineBytes: 8388608
    registerSkills: true

3. Restart the Host

After configuration is complete, you must completely exit and reopen the DSH host for the plugin to take effect.

Typical Usage

Once enabled, Agents can interact with the desktop via the following tools and commands.

Tools

The plugin provides four session tools:
* deskpilot_doctor: A one-time process that reports whether the local environment meets automation conditions (UIA, screenshots, OCR, etc.).
* deskpilot_run: Sends read-only requests and returns structured responses as-is.
* deskpilot_batch: Executes batch operations (up to 32 steps); reason must be provided.
* deskpilot_session: View or reset the driver session.

Slash Commands

Type /deskpilot or /dp in the input box to invoke; this does not consume model turns:
* status: View status.
* doctor: Run environment self-check.
* windows: List current windows.
* reset confirm / setup: Reset or reconfigure.

Agent Skills

The plugin also includes several built-in Agent Skills that can be invoked on demand:
* deskpilot-core: Core desktop operation capabilities.
* deskpilot-browser: Browser automation.
* deskpilot-messaging: Message handling.
* deskpilot-wechat-assistant: WeChat assistant.
* deskpilot-testing: Testing capabilities.
* deskpilot-flow-evolution: Flow evolution.

Use Cases and Notes

Environment Requirements

  • System: Windows 10 build 19041+, x64.
  • Desktop: An logged-in, interactive desktop session (Lock screen or service sessions are not supported).
  • Runtime: .NET Desktop Runtime 10 x64 is required for the first run. The plugin will automatically download and install it, which may trigger a UAC privilege escalation.

Permissions and Risks

  • Real Operations: The plugin operates on the real desktop, simulating clicks, typing, and window switching. Please use in an authorized environment.
  • Security Boundaries: The plugin does not bypass security boundaries, including UAC, the secure desktop, and password controls. Captchas, OTPs, etc., must be handled by the user.
  • Network Restrictions: The network only accesses configured fixed OSS addresses and official Microsoft addresses; it will not fall back to GitHub or npm Registry.

Summary

DeskPilot enables DSH Agents to truly “get hands-on” with tasks, rather than just offering suggestions. Through window observation, UIA actions, and real input simulation, it fills the gap in desktop application operation for text-only Agents. For more details, please refer to the GitHub Repository or the Community Directory.

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

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

Xiaoye