rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
mannixS/dsh-plug-computeruse
Computer use for DeepSeek Harness: operate Windows, macOS and Linux desktops with the Cua Driver core bundled — no separate driver install. Window-scoped screenshots, approval for state-changing actions, screenshot cleanup, a focus cursor, and a settings page.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:mannixS/dsh-plug-computeruse
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 简体中文
Let your DeepSeek Harness agent actually use the computer — click, type, read the screen — on Windows, macOS and Linux.
The Cua Driver core ships inside this plugin. Nothing else to install, no MCP server, no PATH setup, no driver to fetch. Add the plugin and your agent can drive the desktop.
"Open the calculator and work out 847 × 392"
"Find the invoice PDF in Downloads and read me the total"
"Fill in this form with the details from my last email"
Most desktop-automation setups ask you to install a driver, start a daemon, and wire up a transport before the agent can do anything. This one is a single plugin. | | | | --- | --- | | Batteries included | The Cua Driver SDK and its native binary install with the plugin. Nothing else to fetch or configure. | | Scope it to one app | Point it at a single app and the agent physically cannot screenshot or touch anything else. Enforced by the plugin, not by good behaviour. | | Approve what matters | Clicks and typing can ask you first; reading the screen never interrupts you. | | Nothing piles up | Screenshots are pruned on a timer and wiped when the turn ends. | | See where it's working | A per-session focus cursor marks the area the agent is about to act on. | | Configure it in the UI | A real settings page under Settings → Cua computer control. Changes apply immediately. |
From npm
In DeepSeek Harness, open Plugins in the sidebar → Add plugin → enter:
dsh-plug-computeruse
From a local checkout or GitHub
Same Add plugin dialog — give it the absolute path to this folder, or the repository URL.
Then start a new session so the tool is registered. The first install pulls the Cua Driver SDK and its platform binary (about 28 MB).
Requires DeepSeek Harness
>=0.2.2-rc.3 <0.3.0and Node 20+.
Ask in plain language. The agent picks the tool and the arguments:
Take a screenshot of the calculator and tell me what's on screen.
Or drive it explicitly:
{
"action": "call",
"name": "get_window_state",
"arguments": {
"include_accessibility_tree": true,
"include_screenshot": true,
"session": "my-task"
}
}
A good loop is look → act → look again: read a fresh state, act on it, then verify the result. Never reuse element tokens from an older snapshot, and treat a returned action as "sent", not "done".
Settings → Cua computer control — the same place as other third-party plugins such as Trae and WorkBuddy.
| Setting | Default | What it does |
|---|---|---|
| Control scope | Whole desktop | One app only pins every call to one application |
| Pinned app | — | Executable name (e.g. CalculatorApp.exe) or process id |
| Approval before acting | State-changing actions | All actions, State-changing actions, or Never ask |
| Show a focus cursor | On | Marks the area the agent is about to act on |
| Keep screenshots for | 900 s | Disk screenshots expire after this; cleared at turn end |
| Limit screenshot long edge | Driver default | Smaller images mean fewer tokens |
| Call timeout | 120000 ms | Upper bound for a single driver call |
Saving applies immediately — no restart, no new session.
allowToolsandsessionare configuration-file only. Everything above is in the UI.
This is the feature that makes unattended automation safe to leave running.
scope: window
app:
name: WXWork.exe
With scope: window:
get_window_state instead.The refusal is enforced in code, not requested from the model:
dsh-cua: scope is "window", so get_desktop_state is not available.
Use get_window_state on the pinned app instead, or set scope to "desktop" in the plugin configuration.
Screenshots go to the model as attachments — they never touch your disk in the normal path. Only when the model can't take images, or the attachment service is unavailable, do they land in <session dir>/.dsh-cua/. Those files are:
Set retention to 0 to keep them only for the current turn.
The driver is bundled, but the operating system still has the final say:
verify_state before trusting the result. After a timeout, check the state before retrying.get_desktop_state takes no include_screenshot — it always captures. Use max_image_dimension / screenshot_out_file.get_window_state accessibility walks have a 1000 ms budget; past it you get degraded: true and a partial tree. Raise timeout_ms or cap max_elements.A rare install problem shows up as:
启用失败: EPERM: operation not permitted, realpath
'...\node_modules\dsh-plug-computeruse\node_modules\.pnpm\...'
That is a stale nested node_modules inside the plugin folder, usually left by an earlier install of an older copy. Its symlinks point at packages the profile root already provides, and Node cannot traverse them.
From 1.3.1 the plugin checks this at activation and tells you the exact folder to remove. To repair manually:
<profile>\node_modules\dsh-plug-computeruse\node_modules.The profile root already carries every dependency, so nothing needs reinstalling. cua_driver with action: "status" reports Installation: dependencies resolve on a healthy install.
pnpm run check # syntax check every module
pnpm test # 74 unit tests
A live check against a real desktop (read-only calls plus the calculator — it never types into a chat window):
$env:ELECTRON_RUN_AS_NODE='1'; & $env:DSH_NODE_EXECUTABLE test/integration-live.mjs
Covered by the live check: whole-desktop capture allowed on desktop scope, refused on window scope, other apps refused, approval returns ask for state-changing calls and allows read-only ones, and the screenshot directory is empty after a turn ends. On a locked workstation the capture steps are reported as skipped instead of failing.
Pushing a version tag publishes to npm automatically. The workflow verifies the tag matches package.json, runs the checks above, refuses to ship a package containing node_modules, and then publishes:
# bump "version" in package.json first
git tag -a v1.3.2 -m "v1.3.2"
git push origin main --follow-tags
An ordinary commit to main never publishes: npm cannot overwrite a version, so releasing stays a deliberate act.
Plugin code is MIT. The bundled Cua Driver follows its own upstream license — see trycua/cua.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。