Preface¶
When running an Agent in DeepSeek Harness (DSH), the common bottleneck is not “failing to produce steps,” but “unable to reach the desktop”: conversations in the browser can generate plans, yet cannot directly open native applications, type into real windows, or verify results. Pure scripts or mouse macros can manipulate the UI, but often lack the constraint of “first seeing the current interface before acting,” and they also expose the operation process poorly for model and user auditing.
dsh-computer-use-ng is a community-maintained Computer Use plugin that decomposes desktop interaction into observation, decision-making, and constrained execution. It performs clicks and typing through an independent virtual cursor and aligns with the DSH 0.2.x runtime. The following describes its positioning, capabilities, installation methods, and recommended operation loop.
What Is This¶
dsh-computer-use-ng (the npm package name is the same) is a cross-platform Computer Use plugin for DeepSeek Harness: it reads the target window and Accessibility/AX/UIA information, then uses cua-driver with an independent virtual cursor to execute clicks, typing, scrolling, and other actions, rather than silently delivering a sequence of invisible events to the system.
Maintained by AndroidSix, repository at AndroidSix/dsh-computer-use-ng. The project is independently maintained based on Wei Jerry’s dsh-computer-use (MIT), and since 0.4.0 has focused on following DSH 0.2+; it has no affiliation with the original author, attribution is found in the repository’s NOTICE. It is categorized as a workflow-type plugin in community directories such as SkillHub; the README states that it is an open-source community plugin and does not represent DeepSeek’s official position.
The introduction matches the directory page: Community-maintained dsh-computer-use, a virtual-cursor Computer Use for DeepSeek Harness, compatible with the DSH 0.2.1 series (the README notes it has been tested and verified on 0.2.1-rc.2).
Core Principles and Capabilities¶
The plugin emphasizes “observe first, then operate”: actions are rejected when there is no fresh observation snapshot; element IDs and coordinates come from the same window observation space; element IDs are preferred, while coordinate mode retains visual-scene flexibility; it fails closed when the target is unclear, the snapshot is stale, or the application is not on the whitelist.
Capability overview (all from the README):
| Direction | Description |
|---|---|
| Screen observation | Window metadata, AX/UIA elements and coordinates |
| Observation modes | ax (default, zero visual tokens), native (screenshots handed to the current conversation model), vision (visual observer) |
| Pointer and keyboard | Virtual cursor click/double-click/right-click; text input and shortcuts |
| Scrolling and dragging | Window-local coordinate scrolling, dragging |
| Application management | app_list, app_launch |
| Safety guardrails | Snapshot TTL, application whitelist, dangerous-operation approval, password-field protection, etc. |
| Platforms | macOS verified; Windows/Linux require acceptance testing in the real environment |
It exposes 12 tools to the model; tool names remain consistent with upstream (screen_observe, computer_click, etc.), so existing prompts and workflows need no renaming due to branch switching:
| Tool | Purpose |
|---|---|
screen_observe |
Get window, elements, coordinates, or screenshots |
screen_zoom |
Capture and zoom into a window region |
computer_click / computer_double_click / computer_right_click |
Click-type operations |
computer_type / computer_key |
Typing and key presses |
computer_scroll / computer_drag / computer_wait |
Scrolling, dragging, waiting |
app_list / app_launch |
Enumerate and launch applications |
Version and Environment¶
The README records the current plugin version as 0.4.0; the npm version in the repository’s package.json is 0.4.1. When installing, you may use the package name or pin a version with dsh-computer-use-ng@0.4.0.
- DSH runtime:
>=0.1.2-rc.1 <0.2.0-0 || >=0.2.0-rc.1 <0.3.0-0 - Node.js:
>=22.18.0 - Dependencies
@deepseek-ai/dsh-tools/@deepseek-ai/schemasteryare hostpeerDependenciesand are not bundled with the plugin
Under the hood it invokes cua-driver via a non-shell, fixed-argv call (resolvable via CUA_DRIVER_BIN or PATH; under the Windows installer layout it can also detect %USERPROFILE%\.cua-driver\packages\current\cua-driver.exe).
Installation and Activation¶
Installation via the DSH plugin manager is recommended. If you previously installed the old package dsh-computer-use, uninstall it first to avoid duplicate registration of the same-named tools:
dsh plugin --profile desktop remove dsh-computer-use
dsh plugin --profile desktop add dsh-computer-use-ng
The Web profile uses the same package name:
dsh plugin --profile web add dsh-computer-use-ng
Example of pinning a version:
dsh plugin --profile desktop add dsh-computer-use-ng@0.4.0
Or pin a tag from GitHub:
dsh plugin --profile desktop add github:AndroidSix/dsh-computer-use-ng#v0.4.0
You can also enter dsh-computer-use-ng in the DSH Plugins page → Add Plugin. Restart DSH after installation, or confirm it is enabled on the Plugins page.
Other entry points (use as needed):
- harness-desktop: Download the desktop client from releases, then install the plugin as above and restart.
- Repository
install.sh: Links the plugin to$DSH_HOME/profiles/desktop/node_modules/dsh-computer-use-ngand registers it in$DSH_HOME/cordis.patch.yml; supports--dry-runfor preview. On Windows/Linux you can firstexport DSH_HOME="/path/to/your/dsh-home". - Global npm:
npm install -g dsh-computer-use-ng; you still need the DSH profile to load the bundle and ensurecua-driveris available.
After installation, you can verify that the tools appear on the Agent side using app_list or screen_observe.
Typical Usage¶
The first complete task given in the README can serve as an acceptance script to hand to the Agent:
Please complete the following desktop tasks:
1. Use app_list to list running applications;
2. Use app_launch to open a regular desktop application;
3. Use screen_observe to observe the target window;
4. Find the target button and prefer clicking using the element ID;
5. Use computer_type to input some non-sensitive test text;
6. Use screen_observe again to verify the text has appeared;
7. If the interface changes, re-observe; do not continue using old element IDs;
8. If an action is rejected by the safety guardrails, report the rejection reason; do not bypass the guardrails.
Recommended loop:
app_list / app_launch
↓
screen_observe
↓
computer_click / computer_type / computer_key
↓
computer_wait (if waiting is needed)
↓
screen_observe to verify the result
After obvious interface changes you should re-run screen_observe; element IDs belong to a single snapshot and should not be reused across pages or after long waits.
The default mode of screen_observe is ax, suitable for native applications with a complete AX tree; for Canvas, Electron, or empty AX you may consider native or vision (vision may use the optional Z.AI GLM vision API when a GLM key is configured, see the permissions note in package.json).
Use Cases and Notes¶
It is suitable for letting the DSH Agent operate native desktop interfaces on macOS, Windows, and Linux, or interfaces with incomplete AX information, and for building a closed loop of “open app → observe → operate → re-observe to verify”; it can also be used to study Computer Use and safety-guardrail behavior.
Notes before use:
- The plugin invokes
cua-driverto operate the local desktop under the permissions of the current DSH process. Before installing, read the source code, the MIT license, and the permission summary inpackage.json. - When background delivery of keyboard/text is rejected, it may request a one-time user approval and then try the foreground mode, and may switch window focus; dangerous operations and password fields have extra protection.
- Bug reports, feature requests, and PRs should be submitted to AndroidSix/dsh-computer-use-ng, not the upstream
dsh-computer-userepository.
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page and the GitHub repository are community-maintained and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-computer-use-ng converges desktop automation into 12 tools the model can understand, and constrains the execution path with observation snapshots and guardrails, making it suitable for landing auditable Computer Use on DSH 0.2.x. For further information, visit the SkillHub plugin page and the GitHub repository; the npm package is at dsh-computer-use-ng.