DeepSeek Harness 插件

dsh-computer-use-windows-nanbbb

Safety-gated Windows Computer Use tools for DeepSeek Harness with ModLens visual grounding.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
nanbbb/dsh-computer-use-windows
最近更新
2026年8月17日
分类
工具与能力
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/nanbbb/dsh-computer-use-windows
插件名:dsh-computer-use-windows-nanbbb
作者:nanbbb

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-computer-use

Windows Computer Use tools for DeepSeek Harness. The plugin combines:

  • Windows window discovery and foreground input;
  • UI Automation element discovery and focus state;
  • window screenshots;
  • ModLens-compatible 3x3 visual grounding;
  • observation-bound element/coordinate actions;
  • DeepSeek Harness one-shot approval prompts for risky actions.

Why the grid exists

ModLens deliberately returns semantic evidence rather than invented bounding boxes. computer_observe therefore produces an annotated A1-C3 screenshot. For a custom UI, call modlens_read_image on grid_screenshot_path, select the reported cell with computer_zoom, and repeat until the region is small enough to click. Standard controls should use the UI Automation element_index path.

Apps without an accessibility tree (WeChat, Electron, …)

Self-drawn UIs such as WeChat expose an empty accessibility tree, so element_index navigation is unavailable. Use the screenshot path instead:

1. computer_observe returns a grid_screenshot_path. If a window renders blank on first capture (it was still activating or was occluded), the native helper re-activates it and retries before falling back to a screen copy; a still-occluded window now fails with a clear error instead of silently returning a screenshot of the wrong window. 2. Call modlens_read_image on the grid, pick an A1-C3 cell, computer_zoom, and repeat until the region is small. ModLens can time out or be imprecise: retry the read, and cross-check with computer_zoom rather than trusting a single grid answer. 3. WeChat hides to tray without minimizing: wake it with computer_hotkey ctrl+alt+w (or computer_tray) before observing, instead of relying on the helper to reveal a blank window.

Install

# 从 npm 安装
npx -y @deepseek-ai/dsh plugin --profile web add dsh-computer-use-windows

# 或从 GitHub 安装
npx -y @deepseek-ai/dsh plugin --profile web add github:nanbbb/dsh-computer-use-windows

Build from source

npm run verify
npm pack
npx -y @deepseek-ai/dsh plugin --profile web add C:\absolute\path\to\dsh-computer-use-windows-0.2.1.tgz

Restart DeepSeek Harness after installation. Keep @liustack/modlens enabled; this plugin does not duplicate or replace its vision provider.

Example task

> Use Computer Use to open the existing Calculator window and calculate 19 × 7. > Do not operate any other application.

The model should call computer_list_windows, choose exactly one returned window, call computer_observe, act once, and observe again.

Safety model

Risky calls use the Harness approval service. Missing approval support fails closed. On-screen instructions never count as user authorization. The native helper refuses invisible windows, invalid handles, out-of-window points, password controls, terminal windows, authentication UI, and locked desktops.

完整的安全模型见 [SECURITY.md](SECURITY.md)。

配置

cordis.patch.yml 里的 config 字段(均可选,有默认值):

字段默认说明
observationTtlMs120000观测快照有效期(毫秒),过期后 element_index / 坐标失效
maxAccessibilityElements300单次观测返回的 UI Automation 元素上限
screenshotDirectoryauto截图输出目录;auto = 系统临时目录
requireApprovalForTypingfalsetrue 时所有打字强制走审批
allowedApps[]白名单;非空时只允许这些进程名(不含 .exe,如 ["notepad","chrome"]),其余全部拒绝
allowedExternalLabels[]允许降级「发送/提交」类标签的名单(子串匹配,不区分大小写,如 ["发送","send"])。命中时按模型的显式 risk 处理;仅 external 类可放行,删除/支付/登录永远升级

This is an MVP for Windows 10/11 x64 and is fully self-contained — the bundled native helper ships its own .NET runtime, so no separate install is required.

Interaction model

Actions activate (bring to foreground) the target window before clicking, typing, or pressing keys. This is a foreground mode: while the agent operates a window, that window takes the foreground and the physical mouse moves to the action point. It does not run in the background. Keep this in mind if you need to use the machine while the agent is working.