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.
- 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.
- 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.
- Control by Name: Use the
targetparameter 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. - Condition-based Waiting: The
waittool supports theuntilparameter, e.g.,wait until "window:Save As". It continues as soon as the window or control appears, and only reports an error upon timeout. - Reading Windows as Text:
ui_elementscombined with thetext: trueparameter can directly read text content within the window (defaulting to the last 4000 characters), which is faster than scrolling through screenshots. - 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. - 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.
- Zero Native Dependencies: Leverages DSH’s built-in
koffilibrary for screenshots and input. The helper program is compiled using the system’s built-in .NET, requiring nonode-gypinstallation 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_applicationto open Chrome, Notepad, or WeChat.- Example:
open_application("Notepad").
- Example:
- Batch Operations: Use
computer_batchto chain multiple actions, capturing only one final screenshot.- Example: Input text, press Enter, wait for window appearance, click Save.
- Read Content: Use
ui_elementsto read text from web pages or documents.- Example:
ui_elements(text: true).
- Example:
- Clipboard Operations: Use the
clipboardtool 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/attachmentsand 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_skillto 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.