DeepSeek Harness Computer Control Plugin (Windows): Screen Viewing and Click Control, Read/Write Clipboard

Introduction

The core philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin.” When building agents capable of autonomous work, enabling the model to directly manipulate the local desktop is a common requirement. Existing solutions often rely on complex native modules or are difficult to integrate into the DSH workflow. copylee711/dsh-computer-use aims to solve this problem by injecting tools that directly bridge Windows screenshots, mouse clicks, and keyboard inputs with the model’s capabilities.

What is this

copylee711/dsh-computer-use is a Windows desktop control plugin for DeepSeek Harness. Maintained by user copylee711, it is open-sourced under the MIT license. It solves the core problem of: enabling models to operate Windows applications via screenshots and UI Automation mechanisms, without relying on native code compilation or disrupting clipboard history.

Core Features

This plugin converts visual information into operational instructions through a set of tools and mechanisms, ensuring interaction stability and security.

  1. Screenshots as Coordinate System: The model only needs to view the image; the plugin automatically handles DPI scaling and multi-monitor offsets, ensuring that the coordinates clicked by the model land accurately on the screen.
  2. Automatic Screenshot Feedback after Actions: After executing actions like clicks or inputs, the plugin waits for the screen to become static (up to 2.5 seconds) before taking a screenshot. If the screen is identical to the previous one, it does not send the image but simply informs the model of “no visible changes,” thereby saving tokens.
  3. Control by Name: Use the target parameter to specify the visible name of a control (e.g., "Save", "Button:OK") instead of coordinates. Even if the control does not appear in the previous screenshot, the plugin will wait for 3 seconds for it to appear.
  4. Condition-based Waiting: The wait tool supports the until parameter, e.g., wait until "window:Save As". It continues as soon as the window or control appears, and only reports an error upon timeout.
  5. Reading Windows as Text: ui_elements combined with the text: true parameter can directly read text content within the window (defaulting to the last 4000 characters), which is faster than scrolling through screenshots.
  6. App-based Authorization: List applications to be controlled via request_access, allowing the user to approve them in the DSH interface. It can also be set to “Allow All,” though the plugin’s own windows and applications in the disabled list remain non-interactive.
  7. Self-Exclusion and Clipboard Protection: The plugin refuses to input into DeepSeek Harness’s own windows; after reading or writing to the clipboard, it automatically restores the user’s original clipboard content, preventing it from entering the Windows clipboard history.
  8. Zero Native Dependencies: Leverages DSH’s built-in koffi library for screenshots and input. The helper program is compiled using the system’s built-in .NET, requiring no node-gyp installation and unaffected by Electron ABI issues.

Installation and Enablement

Installing this plugin requires meeting environment prerequisites and adding it via the command line or interface.

Environment Requirements:
* OS: Windows 10 2004+ / Windows 11.
* Dependency: DSH 0.2.0-rc.2 or higher.
* Model: A model that supports image input (e.g., DeepSeek V4.1 Flash); pure text models will automatically switch to using ui_elements.

Installation Command:

dsh plugin --profile web add @copylee/dsh-computer-use@latest

After installation, simply enable the plugin in the “Computer Control” tab of DSH settings.

Typical Usage

Once the plugin is enabled, the model gains a series of new tools. Below are some typical usage scenarios and corresponding tool calls:

  • Open Application: Use open_application to open Chrome, Notepad, or WeChat.
    • Example: open_application("Notepad").
  • Batch Operations: Use computer_batch to chain multiple actions, capturing only one final screenshot.
    • Example: Input text, press Enter, wait for window appearance, click Save.
  • Read Content: Use ui_elements to read text from web pages or documents.
    • Example: ui_elements(text: true).
  • Clipboard Operations: Use the clipboard tool to read and write clipboard text.

Scenarios and Notes

This plugin is primarily suited for desktop automation tasks on the Windows platform, but the following limitations and mechanisms should be noted during use:

  • System Limitations: Windows only. Windows running as administrator, UAC prompts, and the lock screen cannot be controlled (due to Windows UIPI restrictions).
  • File Storage: Screenshot attachments generated by the plugin are stored by default in ~/.dsh/attachments and retained with the session history.
  • Security Notice: The system prompt injected by the plugin requires the model not to fill in passwords, payment information, or handle CAPTCHAs on the user’s behalf; such situations should be handed back to the user.
  • Skill Management: The plugin includes built-in operational skills for common applications like Word, Excel, and Chrome. The AI can use app_skill to record new operational patterns during the process.

Conclusion

copylee711/dsh-computer-use lowers the barrier for Agents to control the Windows desktop by providing a complete toolchain and friendly interactive feedback (such as orange halos and mini progress cards). For developers and users who need to execute complex tasks locally, this is a ready-to-implement solution. For more details, please refer to its GitHub Repository.

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

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

Xiaoye