Introduction¶
DeepSeek Harness (DSH) extends its capabilities through plugins, but by default it only supports text and API calls. When an agent needs to interact with a real desktop (clicking, typing, switching windows, handling pop-ups), it requires a reliable set of “hands” and “eyes.” The yugegezhenshuaia/dsh-plugin-desktop-control plugin leverages pure native Windows capabilities to provide screenshots, OCR, mouse and keyboard control, window management, and UI Automation, enabling agents to perform tasks that only a human could do — such as “open WeChat, read a message, click a link, and answer a quiz.”
Plugin Overview¶
This plugin serves as the desktop control plugin for DeepSeek Harness, maintained by yugegezhenshuaia. It relies on interfaces built into Windows 10/11 (PowerShell 5.1, .NET, and system OCR), requiring no Python, no compilation, and no model downloads. A resident proxy process delivers tens-of-milliseconds response times.
Core Features¶
The plugin provides 9 tools covering visual perception and interactive operations:
desktop_status: Check proxy status, physical screen resolution, OCR language, foreground window, and cursor position.desktop_screenshot: Capture full-screen, window, or region screenshots (PNG), with optional simultaneous OCR.desktop_ocr: Recognize text on screen or in a PNG file, returning the position and center point of each line.desktop_mouse: Move, single-click, double-click, right-click, drag, and scroll.desktop_keyboard: Type any Unicode text, press single keys or key combinations.desktop_window: List/find/activate/minimize/maximize/restore/close/move/launch windows.desktop_uia: UI Automation control tree: read, find, trigger, and set values.desktop_clipboard: Read and write clipboard text.desktop_wait: Wait for a window title or screen text to appear.
All tool coordinates use physical pixels, so OCR bounding boxes and click points are naturally aligned.
Installation & Activation¶
- Place this repository in any directory.
- Install it as a local plugin in DSH: Plugin Market → Add Plugin → Select this directory; or have the agent execute
plugin_manager install_bundlewith the absolute path of this directory as the target. - Start a new session and ask the agent to self-check:
Use desktop_status to check the screen status.
Typical Usage¶
Simply issue natural language commands, for example:
Open my WeChat. There’s a link sent by someone called Guo Menglong. Click into it — it’s a quiz. Answer it for me, make sure the answers are accurate. Once done, just let me know. Do NOT send any message to Guo Menglong.
The agent will autonomously complete the full workflow: activate WeChat → screenshot/OCR to locate the conversation → open the link → wait for the browser to load → read each question → click the correct option → submit → read back the score → report the result.
For detailed steps, prompt templates, and troubleshooting, see the user manual: docs/使用手册.md.
System Requirements¶
| Item | Requirement |
|---|---|
| OS | Windows 10 / 11 |
| DSH | >=0.2.2-rc.5 <0.4.0-0 (the engines.dsh field in package.json) |
| PowerShell | Windows PowerShell 5.1 |
| OCR | Depends on system OCR language packs; a Chinese system typically has both zh-Hans-CN and en-US |
Configuration¶
Add the following to the plugin section in cordis.patch.yml:
- id: dsh-plugin-desktop-control
name: 'dsh-plugin-desktop-control'
config:
idleMinutes: 120 # Proxy idle timeout (minutes)
ocrScale: 2 # OCR scale factor
screenshotDir: '' # Screenshot directory; empty means use system temp directory
requestTimeoutMs: 45000
Security & Permissions¶
These tools operate on the real desktop: a click lands wherever the pointer is and may trigger sending messages, submitting forms, or deleting data. Be explicit about what the agent is allowed to do and what it is not. The plugin itself performs no secondary confirmation.
Applicable Scenarios & Caveats¶
- Suitable for scenarios where the agent needs to interact with real Windows applications (WeChat, browsers, local tools, etc.).
- The plugin runs with the current DSH process permissions. Review the source code and license before installing.
Summary¶
This plugin uses pure native Windows capabilities to provide desktop control for DeepSeek Harness, covering screenshots, OCR, mouse and keyboard, window management, and UI Automation, enabling the agent to operate the Windows desktop like a human. Full details: GitHub