Preface¶
In DeepSeek Harness (DSH), the common way to let a model “see the screen, click buttons, fill forms” is to pile up a bunch of standalone tool schemas, or require a human approval click at every step. Context gets flooded with tool definitions, action and observation coordinates don’t line up, and when Windows foreground locks and XAML input fail, the pipeline breaks easily.
orangeofcarl0-sys/dsh-computer-use is a client-side desktop-operation plugin for DSH (current version 0.5.6, MIT). The maintainer orangeofcarl0-sys states in the README: the project originated from 988hj7tczd-oss/dsh-computer-use (MIT) @07477f4, and is now an independently maintained personal project. Below is an introduction to its positioning, capabilities, and installation; facts are subject to the GitHub repo and the SkillHub directory page.
What Is This¶
It adds an observable, verifiable layer of desktop automation to DeepSeek Harness: observe → numbered targeting → automatic escalated delivery → verification, with the design goal of zero approvals and zero interruptions throughout. At the bottom layer it drives the local desktop via cua-driver, using an independent virtual cursor that does not take over the user’s real mouse.
On the tool surface, the plugin adopts 2 tools collapsed / 21 expanded model-friendly tools: by default only computer_do and screen_observe are exposed; the full desktop capability set is expanded only when needed. Windows-related capabilities (foreground locks, XAML/WinUI input, observation geometry, etc.) are marked in the README as deeply tested scenarios.
Three Core Mechanisms¶
- Observe first, then act: actions must be based on a fresh observation snapshot (
elementnumbers or window-local screenshot pixel coordinates); stale ones are rejected. - What you see is what you click: observation output and action coordinates share the same “window-local screenshot pixel” space, with no extra conversion needed.
- Automatic escalated delivery: background-first; when the background is unavailable it automatically escalates to foreground, bypassing the foreground lock when necessary, and restores the user’s original focus when done.
Design Position: Seamless Autonomy¶
The plugin README explicitly does not pursue “extreme safety”, but executes four principles on the foundation of “background-first + escalation chain + restore original foreground + audit annotations”:
| Principle | Behavior |
|---|---|
| Effortless & seamless | Zero approval, zero interruption for actions; attribution relies on full-delivery annotations and session logs |
| Automatic privilege escalation | The delivery chain escalates automatically; observation failures automatically degrade to desktop-level capture; observation/delivery capabilities are fully enabled by default |
| Extreme-danger sensitive warnings | When extremePatterns matches element labels, the result carries a warning annotation, without blocking; default empty means zero difference |
| Basic fallback only | Hard credential protection (password fields refuse automated input — the only hard refusal), snapshot TTL, no-snapshot rejection, allowedApps whitelist (off by default) |
Before installing and using, you should read PERMISSIONS.md in the repo and the dsh.permissions summary in package.json: the plugin invokes cua-driver via host spawn with a non-shell fixed argv; actions run with the current DSH process permissions, so please review the source code and license yourself.
Core Features¶
Observation and Coordinates¶
| Mode | Principle | Suitable for |
|---|---|---|
ax (default) |
AX/UIA tree → numbers + coordinates | Native apps |
native |
Window screenshot supplied via attachments for the main model to read directly | Canvas/games/Electron, empty trees |
vision |
Structured description from a visual observer (default configurable deepseek-v4-flash-vision-exp) |
When the main model doesn’t support image input |
Automatic degradation chain: AX tree empty → native (model supports images) → vision (observation model available) → ax. When window-level observation is rejected, it can degrade to desktop-level capture (visual read-only, coordinate system becomes desktop pixels, result marked visualOnly).
Since v0.2.0, all action coordinates are window-local screenshot pixels: screen_observe’s @(x,y) and computer_click(x=,y=) share the same space; no scaling, no window offset added. When the tree is empty or AX fails, the README suggests the zoom targeting loop: screen_observe → screen_zoom crop → convert in-image coordinates using crop metadata → computer_click.
Dynamic Tool Surface¶
| State | Visible to model | When |
|---|---|---|
| Collapsed (default) | computer_do + screen_observe |
When not doing desktop operations |
| Expanded | Plus 19 action/verification/app/delegation tools | After calling computer_do({action:'enter'}), visible in the next request |
Ways to collapse: computer_do({action:'exit'}), or automatically after 2 consecutive non-desktop tool calls.
Delivery Chain¶
deliveryMode |
Behavior |
|---|---|
auto (default) |
Background first → foreground retry on background_unavailable → when foreground-locked, use bring_to_front to bypass, restore original foreground when done |
background |
Background throughout; on unavailability return a structured error with foreground escalation guidance |
foreground |
Always foreground |
A single action can override with foreground: true. Chromium/Electron content, GTK, VCL and other background-unreachable targets return background_unavailable, rather than pretending success.
Other Capabilities (Expanded State)¶
- Text and hotkeys:
computer_typewrites to the background via UIA ValuePattern; chord keys go through thehotkeychannel. - Deterministic verification:
computer_verify,computer_wait_for(unknown is never considered success). - Clipboard, direct menu path invocation, app list and background launch, force-kill switches (
computer_stop/computer_resume). - Sub-agent delegation:
computer_task, must end with{ok,summary,evidence}; the main context only consumes one receipt of ≤400 characters. Whether the tool scope can be restricted depends on host capabilities; when unsupported, the receipt will state so truthfully (see README “Boundaries of Delegation Capability”). - Context cost control: de-noising repeated observations, compact action receipts (details attached when
verboseReceipts: true).
For the full tool list and parameters, see the “Tool List” section of the repo README.
Installation and Activation¶
Prerequisite: cua-driver¶
First install the trycua/cua driver (use the curl installer on macOS/Linux, the PowerShell installer on Windows), or specify manually:
export CUA_DRIVER_BIN=/path/to/cua-driver
When missing, each tool returns a structured error with self-help guidance, without silent failure.
Install the Plugin¶
Windows/Linux requires setting the DSH home directory first, e.g.:
export DSH_HOME=/path/to/dsh-home
The installation steps given in the official README are as follows:
git clone https://github.com/orangeofcarl0-sys/dsh-computer-use.git
cd dsh-computer-use
./install.sh --dry-run # dry run, no config written
./install.sh # link into profile + register bundle patch
You can also manually install according to the repo’s docs/store-evidence.md. Environment requirements: Node.js ≥ 22.18.0, DSH ≥ 0.1.5-rc.2.
After installation, restart the host, and verify with app_list or screen_observe whether it works.
Configuration Example¶
The following fragment can be mounted in the DSH profile (see the README “Configuration” table for field meanings):
- id: dsh-computer-use
config:
ttlMs: 60000
maxElements: 120
observeDedup: summary
verboseReceipts: false
taskTimeoutMin: 5
maxTaskCalls: 3
deliveryMode: auto
allowedApps: []
extremePatterns: []
Typical Usage¶
Enter the Desktop Tool Surface and Observe¶
- Call
computer_do({ action: 'enter' }); all desktop tools become visible in the next request. - Call
screen_observeon the target window, defaultmode: 'ax'; passforce: truewhen you need the full inventory. - Use
computer_click({ element: N })for numbered elements, orcomputer_click({ x, y })for screenshot coordinates (must be the same window as the latest valid observation, withinttlMs).
The Targeting Loop When the Tree Is Empty (Conceptual Flow)¶
screen_observe (AX tree failed/empty)
→ screen_zoom(x1,y1,x2,y2)
→ confirm the target within the cropped image and read out the in-image coordinates
→ in-image coordinates × crop.scale + crop.x/y = full-window screenshot pixels
→ computer_click(x=, y=)
Verification and Exit¶
- Use
computer_verify/computer_wait_forto assert or poll against UIA predicates. - End the desktop session:
computer_do({ action: 'exit' }), or switch to other non-desktop tasks (auto-collapsed after two consecutive ones).
Suitable Scenarios and Notes¶
Suitable for: Agents already running on DSH that need to complete clicks, input, scrolling, menus, and simple verification on the local machine’s GUI; the README especially details tested paths for Windows foreground locks and UIA input.
Notes:
- The plugin’s declared security posture is “seamless autonomy”: except for the hard refusal on password fields, actions are not blocked by default; in sensitive environments please configure
allowedAppsandextremePatternsyourself, and understand that auditing relies on delivery annotations and session logs. app_launchnote: the driver may require administrator privileges, and launched apps may inherit a high integrity level.- When
visionor GLM fallback is enabled, outbound calls may go through the corresponding official API (seepackage.jsonpermissions); the default outbound call is none. - The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin”, and this article is only a description of a third-party plugin.
Conclusion¶
dsh-computer-use condenses desktop automation into a single chain of “observe — consistent coordinates — three-level delivery — verifiable”, and controls the model’s attention cost with a collapsible tool surface. To further understand the permission boundaries and Windows test records, please read the repo README, PERMISSIONS.md, and WINDOWS_TEST.md directly.
- Directory page: https://www.skillhub.cn/plugins/orangeofcarl0-sys/dsh-computer-use
- GitHub: https://github.com/orangeofcarl0-sys/dsh-computer-use