dsh-desktop-sidecar: Native Windows Desktop Control for DeepSeek Harness

Preface

When building agents in DeepSeek Harness (DSH), a common requirement is enabling the model to not only generate text but also operate real applications on the local machine: checking windows, reading interface text, clicking buttons, typing Chinese, and pressing hotkeys. Many software applications lack public APIs and rely solely on desktop automation; furthermore, depending on Python runtimes, additional drivers, or popup-style auxiliary tools complicates deployment and permission management.

Below is an introduction to the community plugin dsh-desktop-sidecar (maintained by 111xjyuan). It provides a suite of native desktop control capabilities for DSH on Windows: UIA control tree inspection, offline OCR, verified clicking, and Unicode input. The README explicitly states no external runtimes are required. The plugin is categorized as “Client” in the SkillHub directory; the current GitHub star count is 0 (based on directory page information).

What is this

dsh-desktop-sidecar acts as the “hands” installed into DeepSeek Harness: it enumerates windows, reads control trees, takes screenshots, locates text via OCR, clicks, types, and sends key combinations on Windows 10/11. It also includes tools for automatic online course playback and environment self-diagnostics. The design goal is to not depend on Python, not download drivers, and not pop up windows; OCR utilizes the native Windows engine, and the README specifies it is completely offline without uploading screen content.

The license is MIT; the version in package.json is 0.4.5, supporting win32 only (macOS / Linux are not implemented). The peer dependency is @deepseek-ai/dsh-tools >= 0.1.5-rc.1, and it uses koffi for native FFI dependencies.

Core Functions

The plugin exposes a set of tools prefixed with desktop_ to DSH. The capabilities according to the README are as follows:

Tool Function
desktop_windows List current open windows
desktop_tree Get the UIA control tree of a specified window (name, role, capabilities)
desktop_invoke Directly trigger controls (no mouse movement, no requirement for window to be in foreground)
desktop_read Read window text (offline OCR with coordinates)
desktop_capture Take a screenshot (can be viewed directly by the model)
desktop_click Click by text or coordinates (performs pixel verification after clicking)
desktop_type Type Chinese (Clipboard + real Ctrl+V)
desktop_key Key presses / key combinations
desktop_course Automatic online course playback (frame difference judgment for playback status + auto-next section)
desktop_doctor Environment self-check, providing repair suggestions when exceptions occur

Target applications include Notepad, Office, browsers, online course players, and common software like WeChat that lacks automation interfaces.

Two Identification Routes

The README emphasizes selecting the path based on application type. The rule of thumb is: If you can use desktop_invoke, don’t use desktop_click; if you can click by text, don’t click by coordinates.

Application Type Identification Method Description
Notepad, Office, Explorer, Settings, WinUI Apps UIA Control Tree Use desktop_tree to get button/menu names and Invoke capabilities, then desktop_invoke to trigger directly
WeChat, VS Code, Discord, Electron/Qt Custom UI OCR + Coordinate Clicking When UIA is not implemented, desktop_tree may be empty with an OCR summary attached; use desktop_read to find text and the text parameter of desktop_click to click by text

Installation and Activation

Choose one of the following installation methods. Commands are from the official README:

# A. npm (Published, Recommended)
plugin_manager install_bundle dsh-desktop-sidecar

# B. Plugin Market: Search for desktop-sidecar

# C. Local Source Code (For Development)
plugin_manager install_bundle file:<absolute path to this directory>

After installation, run a self-check first. Call desktop_doctor, expecting a return of ok: true, and check four items: platform / ocr / foreground / editable-child. If there are exceptions, the README provides direct repair suggestions (e.g., missing OCR language packs).

All plugin operations execute within the local desktop session, with permissions consistent with the current DSH process; non-elevated processes cannot send input to elevated windows (UIPI). The README recommends starting DSH as an administrator. It is advisable to review the GitHub Source Code and the MIT license before installing.

Typical Usage

The README provides a 3-minute quick-start example: ask the model to “Open Notepad and write ‘Hello, World’”. The model will usually call desktop_windows → desktop_type → desktop_read sequentially for verification.

During development, you can execute the following in the source directory:

powershell -NoProfile -File scripts/sync.ps1

This syncs the package into the DSH profile’s node_modules; after modifying lib/, you can “Disable → Enable” in the DSH plugin panel for hot reloading without restarting DSH.

Use Cases and Notes

Who it is for: Users performing RPA, office automation, online course assistance, or needing to operate desktop applications without APIs on Windows using DSH, who require a native toolchain integrated with the Harness.

Platform: Windows 10 1809+ / Windows 11, x64 and arm64.

Common Issues (Excerpts from README):

  • OCR returns 0 lines: Usually due to the system missing the “Chinese (Simplified)” OCR language pack; desktop_doctor will point this out, and you need to install Optical Character Recognition in the system language optional features.
  • Clicking has no response: Check changed and hint in the return value; if changed:false and inClient:true in a plain text area, it might be cursor movement; for buttons/menus, it is better to switch to desktop_invoke or desktop_key.
  • Chinese garbled text: desktop_type uses clipboard pasting; if the target disables pasting, switch to desktop_key to send keys individually.
  • Screenshot temporary files are in %TEMP%\dsh-sidecar and are automatically cleaned up after exceeding 1 hour.

System restrictions such as foreground locks, UIPI, and lock screens/secure desktops are not bypassed; the README treats these as design choices.

Conclusion

dsh-desktop-sidecar encapsulates Windows UIA, offline OCR, and click verification into a DSH plugin, allowing agents to “see, read, click, and type” within common desktop software without the need to set up a separate Python environment or external drivers. The DSH ecosystem emphasizes “Everything is a plugin”; the community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek / High-Flyer. For source code and detailed instructions, see GitHub: 111xjyuan/dsh-desktop-sidecar.

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

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

Xiaoye