Introduction¶
In DSH, a common approach for Windows automation is having the model invoke external scripts or discrete tools: every button click and field entry requires a separate round trip, and operations are prone to error when window focus changes. To enable the Harness to “look at the desktop before acting” and stop immediately when the user presses Esc, a computer control plugin aligned with DSH Desktop is required.
Below is an introduction to the community plugin dsh-windows-computer-use (maintainer shinji00222, GitHub repository shinji00222/dsh-windows-computer-use). The current version is the 0.1.0-preview.3 preview release, targeting Windows x64 and users willing to test on DSH Desktop. It is categorized as a “Workflow” in the SkillHub directory. The plugin is implemented with a C# native engine + TypeScript access layer and has evolved independently based on Yu-tao-Li/dsh-computer-use-win. Its focus includes target window binding, stop mechanisms, and result verification (see NOTICE.md in the repository for upstream and licensing information).
What is this¶
dsh-windows-computer-use is a Windows computer control plugin for DeepSeek Harness (DSH): it allows the model to read controls and take screenshots, execute clicks and inputs via MCP tools, and distinguish between “instruction sent” and “effect confirmed.” The source repository does not contain pre-compiled native engines; installation requires using the .tgz package from GitHub Releases or building it yourself on Windows. It is currently not published to npm, nor is it guaranteed to be included in any plugin marketplace.
Core Features¶
The following capabilities are derived from the project README and package.json descriptions, and can be combined as needed.
Desktop Observation and Recognition¶
- Reads Windows controls, finds windows and buttons; when UI Automation is incomplete, it can fall back to Windows OCR or screenshots.
- Requires observation of the target window before operation; it refuses to blindly input if the window moves, focus changes, the target is unclear, or the observation is expired.
- The engine returns screenshots via memory, and DSH saves the approved images as session attachments.
Input and Window Operations¶
- Click, double-click, drag, scroll, Chinese input, hotkeys, control value assignment, and window management.
- Activating a window waits for the target to process messages; if
FOREGROUND_DENIEDorFOCUS_CHANGEDoccurs, input should stop and the target window should be re-observed.
One Screenshot, Multiple Actions (run_batch)¶
- With models supporting image input, you can use a single screenshot to plan up to 8 actions. After executing them in one go, it returns the final screenshot and step-by-step results, reducing model round trips.
- Batch actions use pixel coordinates from the screenshot and automatically convert window position and scaling; screenshot references are valid for one minute and can only be used once.
- Navigation, submission, opening menus, etc., should set
checkpoint: true; scrolling and Enter automatically end the current group. Window movement, focus or readable control changes, failures, or Esc will stop remaining actions. The result includes the number of completed actions and the final screenshot; the group cannot be replayed entirely. - Pure text models will receive
VISION_MODEL_REQUIREDand need to switch to a model that supports images.
Emergency Stop and Permission Boundaries¶
- A separate thread listens for Esc: after stopping, the current turn cannot continue input; new user requests can proceed.
- The plugin runs with the current DSH process privileges; it does not control the UAC secure desktop or automatically elevate privileges. Standard privileges cannot guarantee operation of administrator applications.
- Two computer control plugins operating simultaneously will contend for the desktop; it is recommended to keep only one set active. This project’s cross-process mutex only constrains this project’s engine.
The tool name prefix is mcp__shin_desktop__windows_computer_use_. The plugin configuration provides operation hints and read-only mode; the client plugin card explains operation and stop rules.
Installation and Activation¶
Obtaining the Installer¶
Download the corresponding version of the .tgz from GitHub Releases. To build from source, you need Windows 10/11 x64, Node.js ≥22, and .NET 10 SDK. Run the following in the repository root directory:
npm ci
npm run build
npm test
npm run package:local
The build generates a self-contained native/DesktopEngine.exe; the package result is in artifacts/. You can specify the SDK’s dotnet.exe via the environment variable DOTNET_EXE.
Connecting to DSH Desktop¶
Install via the DSH Desktop built-in terminal (replace the path with the actual absolute path):
dsh plugin --profile desktop add "C:\path\to\dsh-windows-computer-use-0.1.0-preview.3.tgz"
The plugin takes effect after fully exiting and reopening DSH. Before installation, you should read the source code and the MIT license, and confirm acceptance of the risks of controlling the desktop with current process privileges.
Typical Usage¶
First Smoke Test¶
You can ask DSH to perform a minimal verification round as suggested in the README:
List windows, confirm the HWND of the test Notepad, observe then input “Hello”, then read the text to confirm. Only operate this test window.
Form-based Tasks (Vision Model Required)¶
After selecting a model that supports image input in DSH, for example:
Look at this form and fill in the name and notes. Do the steps you are sure about consecutively, and stop to show me before submitting.
The flow corresponds to the plugin’s screenshot → run_batch → final screenshot; filling in known text, Tab switching, etc., can be placed in the same group. If unsure about the next step, be sure to set a checkpoint; do not use an old screenshot to infer a multi-page flow.
Standalone MCP Client¶
For non-DSH scenarios, you can start dist/server.js in the MCP configuration (modify the path according to your machine):
{
"mcpServers": {
"desktop-native": {
"command": "node",
"args": ["C:/path/to/dsh-windows-computer-use/dist/server.js"]
}
}
}
Standalone MCP does not have DSH user turn signals; after Esc, windows_computer_use_resume needs to be called when a new user request is explicitly received; the model is forbidden from using this tool to resume the current turn within DSH.
Use Cases and Notes¶
Who is it for: Users prototyping desktop automation, filling forms, and performing screenshot-based batch clicking and input verification using DSH Desktop on Windows; users willing to accept preview version boundaries and verify operation results themselves.
Known Boundaries (Selected):
- This version has no background message input or WGC capture; background windows use PrintWindow, and screen cropping may be marked as obscured if it fails.
- UIA control invocation may block; timeouts will stop and reclaim the worker process without automatic replay, and actions already delivered to the application cannot be revoked.
- OCR relies on installed Windows OCR language packs; coordinate matching is text localization, not understanding button semantics.
- After migrating from upstream, element IDs, return structures, configurations, and package names have all changed; its internal calls cannot be directly replaced.
- Automated tests cover specific WinForms windows and MCP communication, which does not mean all applications, games, or complex web pages can be operated stably.
Maintenance and verification entries are found in Skill.md (技能.md) in the repository.
Conclusion¶
dsh-windows-computer-use consolidates Windows desktop observation, input, and batch actions into the DSH plugin and MCP tools, emphasizing refusal of input upon observation expiration, Esc emergency stop, and checkpoints. Community directory page: SkillHub - dsh-windows-computer-use; Source and Release: GitHub - shinji00222/dsh-windows-computer-use.