DeepSeek Harness Plugin

JackyZhou0227/dsh-phone-fleet#plugin

Stars ★ 0 Category Remote & Mobile Added 2026-11-26 npm dsh-phone-fleet

Drives several Android phones from DSH at once, with HarmonyOS and iOS adapters behind the same tools: a claimed device belongs to exactly one session, so parallel tasks never contend for the same phone, one task can be dispatched to many devices, and every Android screen mirrors live in the right sidebar. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-phone-fleet

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:JackyZhou0227/dsh-phone-fleet#path:/plugin

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

将 Android、HarmonyOS 和 iOS 设备接入 DSH,让 agent 能查看屏幕、执行操作,并在侧栏查看设备画面。Android 通过 adb 连接;HarmonyOS 和 iOS 分别通过 hdc 和 WebDriverAgent 连接。

功能

  • 通过对话操作手机,并在操作后检查结果
  • 读界面树时连「没有文案的图标按钮」一起给出;每帧带 frame_id,拿旧帧去点会被拒绝(stale_frame)
  • tap 可带 verify 回执、scroll 按方向语义滑动,截图可裁成与界面树一致的范围
  • 在 DSH 侧栏查看实时投屏
  • 同时连接多台设备,或向多台设备下发同一任务;批量下发时可开启目标模式,任务会自动继续直到完成
  • 自动查找 adb;需要时可自动下载 Android platform-tools

安装

在 DSH 插件页添加 dsh-phone-fleet,或运行:

dsh plugin add dsh-phone-fleet

安装后重启 DSH,让插件和「手机操作」工作模式生效。

快速开始

  1. 在电脑上安装 Android USB 驱动(如系统需要),用 USB 连接手机。
  2. 在手机设置中开启开发者选项和 USB 调试,并授权这台电脑。
  3. 在 DSH 右侧栏点击「+」→「手机操作」,认领要操作的设备。
  4. 直接描述任务,例如:「打开设置,把亮度调到最高」。

也可以在手机操作面板中选择多台设备,向它们各自启动的会话下发同一任务。

支持平台

插件提供 Android、HarmonyOS 和 iOS 三个平台的连接适配。Android 使用 adb,HarmonyOS 使用 hdc,iOS 使用 WebDriverAgent(WDA);设备操作通过 DSH 工具完成,Android 还支持实时投屏。

平台 连接方式 当前状态
Android adb 已实现并作为当前主要验证平台;支持设备操作与实时投屏。默认自动查找 adb,缺少时可按需下载 Android platform-tools。
HarmonyOS hdc 适配器已实现,尚未实机验证;hdc 需由 DevEco Studio SDK 提供或自行配置路径。
iOS WebDriverAgent 适配器已实现,尚未实机验证;需自行部署 WDA,并在配置中填写服务地址。

三个平台均纳入项目支持范围。当前 HarmonyOS 与 iOS 的硬件和运行环境条件有限,尚未完成实机验证;欢迎有设备和环境的用户协助测试。高级配置见维护与配置指南。

问题与贡献

使用中遇到问题,请在 GitHub Issues 提交复现步骤、DSH 版本和设备信息。开发测试与发布说明见贡献指南。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.