DSH Windows Computer Use: Native Desktop Operations on Windows

Preface

When building agents in DeepSeek Harness (DSH), a common requirement is allowing the model to “see” the current desktop, select a specific window, and perform step-by-step clicking, typing, and scrolling. If relying on legacy Windows controllers or browser-side capabilities, window binding, observation invalidation, and input validation often operate independently. Consequently, when failures occur, it is unclear whether a screenshot refresh or an action retry is required.

Below is an introduction to the community plugin Very12345/dsh-computer-use-windows (npm package name @very12345/dsh-computer-use-windows, current documentation version 0.6.4). It provides Windows desktop application control for the DSH 0.2 series. Referencing Codex’s workflows for window selection, observe-then-act, post-action refresh, and error recovery, it implements a native control layer within DSH independently. It does not include browser DOM, tabs, extensions, or browser input, nor does it distribute OpenAI programs.

What is this

Maintained by Very12345 and categorized as a client plugin. In one sentence: On the Windows 10/11 interactive desktop, it enables models to safely operate standard desktop applications through window binding, one-time observation (screenshot + UIA), validated input, and native DSH approval and emergency stops.

The Windows backend is based on version 0.2.3 of the MIT project Yu-tao-Li/dsh-computer-use-win, with modifications to target identity, control scope, focus, coordinates, and input paths. The DSH control layer and tests are code from this repository, licensed under MIT. Community directory page: skillhub.cn Plugin Page; Source code: GitHub.

Core Features

Windows and Observation

Window IDs are generated from real enumeration, binding HWND, PID, and process start time. The binding persists across title changes, but must be re-selected if the window is closed or recreated.

Screenshots and UIA states generate a one-time observation_id, valid by default for 5 minutes to accommodate longer model reasoning times. Other inputs invalidate old observations; before operation, the window, layout, focus, and mouse position (for visual input) are still validated. Control indices belong to the corresponding observation and cannot be used across different observations.

Screenshots are sent as DSH attachments to vision-capable models; the JSON does not carry base64. Text-only models can still read the accessibility tree but cannot guess coordinates based on screenshots they do not receive.

Input and Validation

Click coordinates use pixels from the returned screenshot; the plugin handles scaling and window movement, but window size changes require a new observation. Occlusion fallback screenshots prohibit coordinate operations. Windows display scaling (e.g., 200%) does not require model recalculation.

All desktop tasks share a serial queue; a new screenshot and UIA state are returned after each input, with no automatic input retries.

The horizontal and vertical parameters for computer_scroll are Windows wheel deltas (120 per notch), not pixels; a single action sends up to 30 independent wheel ticks sequentially. Text input uses the clipboard; recognizable edit controls verify focus and old values. type_text defaults to input_mode:auto; self-drawn interfaces (like some IM apps) may use visual input, requiring a recent left-click and viewing the post-click screenshot.

The response fields verified, dispatched, outcome_unknown, and rejected distinguish between successful readback, delivered (pending visual check), unknown effect, and explicit rejection; the tool does not automatically resend.

Tool Surface

The tools registered by the plugin include: computer_list_apps, computer_list_windows, computer_launch_app, computer_get_window, computer_get_window_state, computer_click, computer_type_text, computer_press_key, computer_scroll, computer_drag, computer_set_value, computer_secondary_action, computer_activate_window, computer_stop.

launch_app supports returned app IDs or explicit local absolute .exe paths; it does not accept command lines or arguments. Native tool mode allows direct calls; PTC mode calls via host-generated SDKs, with screenshots following host attachment projection. Recommended workflow: Get State -> View Result -> Issue Next Action.

Permissions, Approval, and Emergency Stop

Standard desktop applications are available by default; you can also switch to “Pre-authorized apps only” in settings, adding or removing items individually via the app list. In this mode, apps not added will request session authorization via DSH; if the approval policy is never, they will be rejected. Browsers, terminals, and sensitive applications remain excluded.

Actions such as deletion, external sending, permission modification, and payment require requires_confirmation:true and must pass current DSH approval. A blue visual cue appears during operation; pressing the physical Esc key immediately cancels input and pauses the controller, requiring a restore in settings and a new observation. Escape shortcuts sent by the plugin do not trigger an emergency stop.

The settings page supports dark/light themes, narrow screens, auto-save, and independent pause/resume; it integrates with DSH “Computer Use” settings.

Installation and Activation

Environment requirements: Windows 10/11 interactive desktop, PowerShell 5.1, Node ≥22; Python, browser extensions, or third-party npm runtime dependencies are not required.

Execute the official installation command in PowerShell:

dsh plugin --profile desktop add github:Very12345/dsh-computer-use-windows --ignore-scripts

Restart DSH after installation and enable it in Settings → Computer Use. All standard desktop applications are allowed by default; you can tighten this to app list mode as needed.

If you previously installed the legacy plugin dsh-computer-use-win, it is recommended to uninstall it to avoid having two controllers coexisting. When the new plugin is enabled, the DSH tool guard will reject legacy mcp__wincu__* calls; it does not modify other plugins, models, presets, or PowerShell/Git Bash tools.

Typical Usage

The workflow matches the README description and can be summarized as follows:

  1. Use computer_list_windows or computer_launch_app to identify the target window, and use computer_activate_window if necessary.
  2. Call computer_get_window or computer_get_window_state to obtain a screenshot and UIA state with an observation_id.
  3. Within the validity period of the same observation, issue actions using computer_click, computer_type_text, computer_press_key, computer_scroll, etc.; the observation refreshes after each action.
  4. Based on the response status, decide whether to continue, re-observe with computer_get_window, or include requires_confirmation:true before sensitive steps.
  5. Use computer_stop to abort, or if the user triggers an Esc emergency stop, restore via settings.

The host-provided windows-desktop skills and native system prompts cover window selection, focus checks, step-by-step operation, failure recovery, and confirmation requirements, and can be used in conjunction with the tools above.

Use Cases and Notes

Who it is for: Teams wanting DSH agents on Windows to operate desktop programs within the allowlist (e.g., Notepad, Office-like apps, some self-drawn UI clients); requires native DSH approval, observation invalidation rules, and Esc emergency stops.

Scope and Limitations: Actual input occupies the Windows foreground; lock screens, UAC, privilege escalation windows, invalid focus, or occlusion may cause rejection of operations. Browsers, terminals, authentication, password managers, and security applications are not eligible for authorization; Win keys are not allowed. General pixel clicking cannot automatically recognize all business semantics and still relies on the model following operational skills; it is not a complete system sandbox.

Security: The plugin runs with the current DSH process privileges. Before installation, review the GitHub Source, NOTICE, and license yourself. The DSH community directory (SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-computer-use-windows consolidates Windows desktop window binding, observation, validated input, and DSH approval/emergency stops into a single native control layer, making it suitable for local GUI automation in DSH 0.2 desktop configurations to replace the legacy WinCU path.

  • Directory Page: https://www.skillhub.cn/plugins/Very12345/dsh-computer-use-windows
  • GitHub: https://github.com/Very12345/dsh-computer-use-windows
羽毛球分组比赛记分
小程序二维码

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

Xiaoye