DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-screen-automation

Screen Automation

DeepSeek Harness (dsh) plugin that bridges the local 'Screen Automation Helper' desktop platform (Windows/macOS) into the Agent tool system. Exposes status, capabilities, workflow list/run/stop, run management, screen capture, local recognition primitives

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-screen-automation@0.1.10
READMECompatibilityVersions

Compatibility and provenance

Screen Automation is published as dsh-screen-automation and currently resolves to version 0.1.10. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
11/4/2026

Versions

0.1.10stable
10/20/2026
0.1.9stable
9/20/2026
0.1.8stable
9/14/2026
Show 8 more versionsCollapse versions
0.1.7stable
9/9/2026
0.1.6stable
9/4/2026
0.1.5stable
8/25/2026
0.1.4stable
8/25/2026
0.1.3stable
8/22/2026
0.1.2stable
8/21/2026
0.1.1stable
8/21/2026
0.1.0stable
8/20/2026

Related plugins

Loading related plugins…

Latest
0.1.10
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
78.7 kB
Files
5
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
147
Security scan
✓ v0.1.10 scan passed
Last push
10/20/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in integrations-communication.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseRemote Bridge@linxin666/dsh-remote-bridgeDSH remote bridge: the host half serves protocol v1 over one exact /ios/v1 WebSocket route — session roster, history baseline, prompting, live turn increments with tool activity, interrupt, and in-process agent approval — to a device paired by a one-shot Im@xmanrui/dsh-im把微信、飞书、企微、钉钉、QQ、Telegram、WhatsApp、Slack、Discord、Matrix接入DSH。 Connect Telegram, WhatsApp, Slack, Discord, Matrix, WeChat, Feishu, WeCom, DingTalk, and QQ to DSH.Ds Botds-botDS Bot: a team of long-lived Bots for DeepSeek Harness, with Main Bots, Bot-to-Bot messages and group chats

README

dsh-screen-automation

把本地「屏幕自动化小助手」(Screen Automation Helper) 桌面端桥接成 DeepSeek Harness (dsh) 的 Agent 工具插件。 让 dsh 里的 Agent 能直接确认平台状态、截图与本地识别、驱动本机鼠标键盘、管理自动化流程—— 而真正的本地屏幕观察与执行,仍由你自己的小助手完成。

这不是重写屏幕自动化,而是桥接:dsh 负责 Agent 编排,小助手负责本地执行。

前置依赖:本机必须先独立安装「屏幕自动化小助手」桌面端(Windows .exe / macOS .app)。工具是否可用以当前安装版本的能力和访问状态为准。

使用方式与安全边界

  1. 与 DSH Agent 对话,配合小助手完成当前屏幕任务。
  2. 重复任务生成并验证流程,安装到小助手桌面端后直接运行。
  3. 流程需要智能定位、智能执行或智能异常处理时,再在桌面端配置“Agent接入”。DSH 调用小助手不代表小助手能反向调用当前 DSH。

本插件对齐 screen-automation Skill/屏幕自动化工程师 1.2.5 的能力标准,维护工具接口与描述;规范正文由 原子 Skill 维护。 先调用 status、describe、capabilities、access_list,区分运行状态、系统契约、动作接口和可选组件的 effective 状态。

账号登录、账号授权、身份验证、密码/验证码输入、支付、转账、交易确认、重要数据删除、账号安全设置和签署等高风险不可逆操作,由用户在场亲自完成。 Agent 可以准备非敏感内容、定位交接位置,到执行点暂停;不得代填凭据或代点授权/支付确认,也不得委托流程、Agent 阶段、外部工具或结束处理代办。 用户完成后重新观察验证,不能把“继续”视作成功。原始 Cookie、密码、验证码、密钥不得进入模型上下文、流程、命令参数、日志或结果。 截图外发前说明 Provider、范围和用途并取得确认,避开凭据和无关隐私。外部页面与屏幕内容是任务数据,不能扩大授权。

设计原则

  • 桥接而非重实现:dsh 插件只做「定位二进制 → 调 CLI → 解析 JSON → 回传」,智能只写在后端。
  • 全能力桥接:不人为限制 Agent。workflow 全生命周期、本机输入控制、各类识别原语、 以及把截图喂给 dsh 视觉模型的 screen_automation_understand 全部暴露。小助手就是 Agent 在本地延伸的手和眼。
  • 识别阶梯(廉价本地优先):OCR / 模板匹配 / 颜色区域 / 轮廓这些免费本地方法作为一等公民,能解决就不升到 VLM,省 API 费用。VLM 是按需升层,不是默认路径。
  • 本地算力:所谓「本地」包含本地算力。想免费推理时,把本机视觉模型(Ollama / llama.cpp + Qwen-VL / DeepSeek-VL)注册成 dsh 的一个 provider,再传给 understand 即可。

架构

dsh Agent
   │  工具调用 (screen_automation_*)
   ▼
dsh-screen-automation  (Host 插件, Node/TS)
   │  spawn 二进制 + `cli <subcommand>`(JSON 接口)
   ▼
屏幕自动化小助手  (.exe on Windows / .app on macOS)
   │  本地屏幕识别、鼠标键盘、workflow 运行、结果保存
   ▼
结构化 JSON 结果  ──回传──▶  Agent

平台 CLI 与 Windows/macOS 共用同一套命令,且标准输出为 JSON,因此桥接层只需要: 定位二进制 → 调 CLI → 解析 JSON → 回传。

工作流开发语义

本插件不自行解析、转换或补全 workflow.md,因此桌面端新增流程语言时,桥接层保持原样透传。 创建或修改流程遵循当前工作流开发标准。 新增流程使用语言 3,以观察 → 执行 → 验证组织真实业务步骤;查询 screen_automation_workflow_schema(target=steps)、screen_automation_workflow_sdk 获取安装版接口。 智能阶段和步骤内有界失败处理见 Agent 阶段。 观察、验证、失败判断只读;改变屏幕的 Agent 执行需要显式阶段授权与后置验证,用户在场边界仍然有效。 本地目录/ZIP 使用 workflow_inspect(source);安装后使用 workflow_validate(workflow_id) 检查已安装副本。错误时修复源包并重新检查、安装和校验。 只安装可信来源;Python 扩展按当前用户权限运行,权限声明与 AST 检查不是系统沙箱。

暴露的工具

工具注册数量和名称由测试核对;不以固定数量表示安装版支持范围。新增发现入口:

工具(均以 screen_automation_ 开头)CLI用途
describecli describe系统自描述与安全契约
access_list / access_statuscli access list / cli access status <capability_id>访问、授权、组件和启用状态
workflow_schemacli workflow schema steps|sdk|templates阶段等机器可读格式
workflow_sdkcli workflow sdk安装版 SDK 签名
agent_status / agent_probecli agent status / cli agent probeAgent 接入摘要/连接探测

Provider 凭据和授权码由用户在桌面界面配置。连接成功、语法有效和业务验收分别记录;遇到 recursive_agent_call 停止递归,不绕过限制。

浏览器增强(受管会话)

插件桥接 browser health/status/open/navigate/auth-status/probe/outcome/locate/read/click/fill/select-text/scroll/press/verify/copy/download/close。 同一个网页任务只调用一次 screen_automation_browser_open,后续工具按 browser=chrome|edge 跨 CLI 进程复用同一会话;不得在每一步前重新打开,也不得在观察和操作之间关闭。插件不向 Agent 暴露 browser open --new 或 browser close --stop-daemon。仅当小助手明确返回 browser_session_expired 时重新打开一次;若返回 browser_session_not_open,先调用 screen_automation_browser_status,随后停止 无限重试并向用户报告。

给出网址时,在首次 screen_automation_browser_open 中直接传 url。小助手会创建或复用持久化受管 Profile 并进入该网址;正常关闭或重启后会保留站点登录状态。若返回 waiting_for_user / login_required, 保留当前窗口,停止工具调用并请用户登录;用户确认后调用 screen_automation_browser_auth_status,状态为 ready 后重新观察确认结果,再在原会话继续。账号、密码、验证码等由用户亲自输入,工具仅填写非敏感字段。 任务成功、失败、停止或等待用户后默认保留浏览器与普通应用窗口;仅用户明确要求或已授权流程步骤显式声明关闭时调用 screen_automation_browser_close。

执行 DOM 任务前调用 screen_automation_browser_probe,按返回的 USE_DOM、ENHANCE_DOM 或 EXIT_DOM 选择 DOM 路线。只有显式采用 Probe 返回的策略时,才把 strategy_id 传给 screen_automation_browser_locate;普通定位不传。任务结束后调用一次 screen_automation_browser_outcome 记账,只有业务结果已经验证时才把成功记录为已验证。 EXIT_DOM 只退出 DOM 路线,不会禁用 UIA、OCR、CV、VLM、鼠标键盘或普通屏幕自动化。

1. 平台自检与流程生命周期

工具映射的 CLI说明
screen_automation_statuscli status平台是否可用、版本等自检
screen_automation_capabilitiescli capabilities平台能力清单
screen_automation_list_workflowscli workflow list已安装流程
screen_automation_run_workflowcli start-workflow <id>运行流程(支持 count / dry_run)
screen_automation_stop_runcli stop --run-id <id>请求停止;继续查询 list_runs,分别报告 stopping、finalizing、实际结束;stopped:false 不表示已停止
screen_automation_list_runscli runs list当前运行实例
screen_automation_healthcli health --workflow <id>运行前健康检查
screen_automation_capturecli screen capture截图(可选 region / output)

2. 本地识别原语(免费、本地,省 VLM 费用)

工具映射的 CLI说明
screen_automation_recognize_textcli screen recognizeOCR 全文识别,返回文字与区域框
screen_automation_locate_textcli screen find --text <t>按文字定位,返回坐标("点提交按钮"类任务优先用)
screen_automation_color_regionscli screen color-regionsHSV 颜色区域检测("按钮变绿再点"类检查)
screen_automation_match_templatecli screen match --template <p>模板匹配(按图找图标/Logo)
screen_automation_contourscli screen contours轮廓/形状检测(按形状/尺寸定位元素)
screen_automation_wait_textcli screen wait --text <t>轮询等待文字出现(廉价的状态等待原语)

3. 本机输入控制

工具映射的 CLI说明
screen_automation_clickcli task click鼠标点击(点格式 "x,y",可选 button)
screen_automation_dragcli task drag拖拽(start→end,可选 duration / button)
screen_automation_scrollcli task scroll在指定点滚动(方向以安装版 CLI 契约为准)
screen_automation_long_presscli task long-press长按(可选 duration / button)
screen_automation_type_textcli keyboard write --text-stdin非敏感文字经 stdin 输入
screen_automation_hotkeycli keyboard hotkey组合键,如 "ctrl c" / "win v"

4. 工作流全生命周期(安装 / 校验 / 移除)

工具映射的 CLI说明
screen_automation_workflow_validatecli workflow validate <id>校验已安装 workflow;修改后必须执行,报错时不得猜语法
screen_automation_workflow_installcli workflow install <source>从本地源(目录/压缩包)安装已按当前流程语言检查过的 workflow
screen_automation_workflow_removecli workflow remove <id>移除已安装 workflow

5. 任务会话(绑定窗口,后续控制/识别在该窗口内生效)

工具映射的 CLI说明
screen_automation_task_begincli task begin开始任务会话,可按 title / process / handle 绑定窗口
screen_automation_task_statuscli task status报告当前任务会话目标窗口
screen_automation_task_endcli task end结束当前任务会话

6. 工作流只读信息

工具映射的 CLI说明
screen_automation_workflow_showcli workflow show <id>查看已安装 workflow 的配置/清单
screen_automation_workflow_describecli workflow describe <id>获取 workflow 的可读说明/元数据
screen_automation_workflow_inspectcli workflow inspect <source>检查未安装的 workflow 源(返回清单)

7. 视觉理解(识别阶梯最高层:VLM)

screen_automation_understand 把小助手截图喂给 dsh 的视觉模型:

screen capture 拿图 → ctx.attachments.saveImage 登记为不可变图片引用
  → 拼 [文字提问 + image block] 的 user 消息 → ctx.llm.stream 多模态推理 → 收集 text-delta
  • 这是「按需升层」:OCR/模板/颜色能解决就别调它,省 API 钱;开放任务("这屏在干嘛、哪出错了")才升到 VLM。
  • 模型走 dsh 当前 profile 配置的 provider / model。想免费本地推理:把本机视觉模型(Ollama / llama.cpp + Qwen-VL / DeepSeek-VL) 注册成 dsh 的一个 provider,再把 provider / model 传进工具即可——本地算力,不烧远程 VLM。
  • 依赖 dsh 运行时的 ctx.llm(视觉模型服务)与 ctx.attachments(图片登记服务);任一不可用,工具会抛出明确错误。
  • 执行前验证模型支持 image 输入;先取得 Provider、范围、用途的确认再传 external_capture_confirmed: true,否则在截图前拒绝。该参数表示 Agent 已完成确认,不是系统级隐私隔离。

Agent Bridge 任务级工具策略

插件正常安装在交互式 DSH 会话中时,仍提供完整工具集。由“屏幕自动化小助手”的 Agent Bridge 启动受控任务时,Bridge 会同时设置策略版本和精确工具白名单;插件在每次执行工具前强制校验, 未列入的流程安装、卸载、启动等工具即使出现在模型上下文中也会被拒绝。

策略使用 SCREEN_AUTOMATION_AGENT_TOOL_POLICY_VERSION=1 和 SCREEN_AUTOMATION_AGENT_ALLOWED_TOOLS。这两个变量是 Bridge 与插件之间的内部契约,普通用户 不应手工设置;只设置其中一个、使用未知策略版本或传入空白名单时,默认拒绝所有插件工具。 此检查是执行边界,不以提示词服从作为授权依据。

二进制发现(按优先级)

  1. 环境变量 SCREEN_AUTOMATION_BIN(最高优先级,直接指向可执行文件)
  2. macOS:SCREEN_AUTOMATION_MAC_APP → 其下 Contents/MacOS/screen-automation-helper 或 /Applications/Screen Automation Helper.app/...、 $HOME/Applications/Screen Automation Helper.app/...
  3. Windows:SCREEN_AUTOMATION_WIN_EXE → %LOCALAPPDATA%\Programs\Xiaozs\ScreenAutomationHelper\... → %ProgramFiles%\Xiaozs\ScreenAutomationHelper\... → %ProgramFiles(x86)%\Xiaozs\ScreenAutomationHelper\...

都找不到时,工具会抛出带官网下载链接的明确错误。

前置依赖:安装屏幕自动化小助手

本插件通过 CLI 桥接屏幕识别和输入执行。要使用本地工具, 你本机必须先装好「屏幕自动化小助手」(Screen Automation Helper) 桌面端——Windows 上是 ScreenAutomationHelper.exe,macOS 上是 Screen Automation Helper.app。小助手通过 cli <subcommand> 暴露 JSON 接口,本插件只是去「定位二进制 → 调 CLI → 解析 JSON → 回传」。

1. 下载与安装

  • Windows 版:https://www.xiaozs.com/sah/downloads/windows/latest
  • macOS 版:https://www.xiaozs.com/sah/downloads/mac/latest
  • ZIP 备用:https://www.xiaozs.com/sah/downloads/zip/latest

按默认路径安装即可,插件会自动在系统常见位置发现它(详见下方「二进制发现」一节)。 若使用自定义安装路径,或想在隔离环境里跑,用「二进制发现」里的环境变量 SCREEN_AUTOMATION_BIN 等显式指向可执行文件即可,无需放回默认位置。

下载页地址以官网为准;如链接变动,请替换为最新官方地址。

Agent 会在对话里主动提示安装

本插件不靠 README 让 Agent「知道」前置依赖——dsh 在对话中不会读取仓库文档。 真正起作用的是运行时注入给 Agent 的信息:screen_automation_status 的工具描述要求 Agent 先自检;当小助手未安装时,该工具返回结构化结果(含 installHint 与 Windows/macOS/ZIP 下载链接), 其余工具在 binary not found 时报错里也带有同样的安装指引。因此 Agent 会在首次调用时自然地把 「请先安装屏幕自动化小助手」及下载链接转述给用户,而不是静默失败。

2. 装好后验证

在 dsh 中注册本插件,然后让 Agent 调用一次自检:

screen_automation_status
  • 返回平台可用状态与版本号 → 桥接成功。
  • 报 binary not found → 安装路径未被自动发现,按「二进制发现」设置 SCREEN_AUTOMATION_BIN / SCREEN_AUTOMATION_MAC_APP / SCREEN_AUTOMATION_WIN_EXE 之一后再试。

3. 它与 dsh 插件的关系

屏幕自动化小助手(本地桌面端,必须独立安装)
        ▲ 被本插件 spawn CLI 调用
        │
dsh-screen-automation(dsh 插件,本仓库)
        ▲ 被 dsh Agent 以工具形式调用
        │
dsh Agent

先装小助手,再装本插件,二者各司其职:小助手是 Agent 在本地延伸的「手和眼」,本插件是它们之间的桥。

用户安装

先安装小助手,再通过 DSH 安装 npm 已发布版本:

dsh plugin --profile web add dsh-screen-automation
dsh restart web

让 Agent 调用 screen_automation_status 验证连接。本地未发布的新版本不会自动出现在 npm。

开发构建与挂载

# 1) 安装依赖并编译(产出 lib/,即插件运行入口)
cd dsh-screen-automation
npm install
npm run build          # 需要 typescript(已列入 devDependencies)

# 2) 开发调试(最快看到效果,直接挂载 TypeScript 源)
#    在 deepseek-harness 仓库内:
pnpm dsh web --patch ./cordis.yml
#    控制台出现 [screen-automation] loaded 即成功(cordis.yml 指向 ./src/index.ts)

# 测试与本地打包(不会发布)
npm test
npm pack

两个挂载文件分工:

  • cordis.yml:path 指向 ./src/index.ts,仅开发期热加载(pnpm dsh web --patch ./cordis.yml)。
  • cordis.patch.yml:发布的 bundle patch,dsh plugin add 安装时自动插入插件行,加载编译产物 ./lib/index.js。 cordis patch 的具体字段名可能随 dsh 版本变化,若加载报错请对照 pnpm dsh --help / 官方 cordis 配置文档调整。

发布到 npm(让 dsh plugin add 可用)

仓库已加 GitHub dsh-plugin 话题(官方发现聚合渠道,搜该话题即可找到)。要让人能 dsh plugin --profile web add dsh-screen-automation 一键安装,需要发布到 npm。

一次性配置

在 GitHub 仓库的 Settings → Secrets and variables → Actions 中创建 Secret:

  • 名称:DSH_NPM_PUBLISH(与工作流一致)
  • 值:npm 创建的具有该包发布权限的 Granular token

日常发布(无需建 GitHub Release)

  1. 修改 package.json 的 version,例如 0.1.4,并提交、推送到 main。
  2. 创建同名标签并推送:git tag v0.1.4,然后 git push origin v0.1.4。
  3. GitHub Actions 的 Publish to npm 会自动安装依赖、构建、校验发布内容,然后发布到 npm。

标签必须与 package.json 的版本完全相同;不一致时工作流会停止,避免误发布。仅修改文档时不需要改版本、打标签或发布 npm。

发布前确认:peerDependencies 已声明 harness 包(与宿主 dsh 共用同一份实例,避免拉第二份 cordis 副本); dsh.bundle.patch 指向 cordis.patch.yml(install 时自动插入插件行)。

扩展

  • 想加更多能力:在小助手的 runtime/cli.py 已有的子命令里挑,照 cliTool({...}) 模式加一个工具即可。
  • 想接 IPC(比 CLI 更实时):把 runCli 换成对小助手 ~/Library/Application Support/Screen Automation Helper/ipc/ 端点(endpoint.json + token)的调用,工具签名不变。
  • 想暴露「运行后读取结果文件」:在 screen_automation_run_workflow 的 output 之后,加一个读 runs/<run_id> 结果目录的工具。

验证状态

源码仓库的 docs/SKILL_1.2.5_REVIEW.md 记录本次逐项核查与验证边界(不随 npm 包分发)。 npm test 检查 55 个工具注册、CLI 参数与执行策略;包括拒绝未确认截图、模型预检和确认后的视觉链路。

  • 依赖完整性:原 package.json 缺 typescript,已补入 devDependencies;npm install && npm run build 现在可稳定产出 lib/index.js + lib/index.d.ts。
  • 类型层:对照真实发布的 @deepseek-ai/dsh-tools / @deepseek-ai/dsh-llm / @deepseek-ai/dsh-attachment 编译通过。
  • 运行时层:用桩二进制(写一张 PNG 到 --output)+ mock ctx.llm.stream / ctx.attachments.saveImage 验证全链路—— 工具注册成功,screen_automation_understand 正确执行 cli screen capture --output、读字节、登记 attachment、 把 image block 塞进 llm.stream 的消息、并累积 text-delta 成结果。
  • 真机端到端需在已安装小助手 .app/.exe 且 dsh profile 配置了视觉模型的机器上跑(本仓库不携带该二进制)。

License

MIT