geohotstan/dsh-computer-use ↗★ 0
dsh-computer-use
Standalone DeepSeek Harness plugin: desktop computer use on macOS — app listing, accessibility-tree window capture, screenshots, and synthesized mouse/keyboard input, cloned from Codex Computer Use
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:geohotstan/dsh-computer-use说明文档
阅读完整 README ↗dsh-computer-use
English | 中文
一个面向 DeepSeek Harness 的独立插件:macOS 桌面计算机操作——应用列举、以截图加模型可读辅助功能树捕获关键窗口、合成鼠标键盘输入——克隆自 OpenAI 的 Codex Computer Use 窗口 API。输入投递与 Codex 自身的执行模型一致、后台优先:语义 AX 动作完全不需要焦点,原始事件走私有 SkyLight 路径(SLEventPostToPid 加键盘认证信封、字段戳记与免提升聚焦记录,移植自 MIT 许可的 trycua/cua 项目),并按符号回退到公开的 CGEvent.postToPid,因此用户的前台从不改变。不需要任何 OpenAI 组件。
设计遵循“辅助功能树优先”:computer_use_get_app_state 返回带编号、制表缩进的元素树;模型按元素索引操作,窗口相对坐标作为回退;同一应用的后续捕获返回相对上一棵树的差异而非完整树。
与 OpenAI 实现之间的完整功能差异见 docs/codex-parity.md,该参考文档即对齐清单。
安装
本仓库是一个 DSH bundle:根 package.json 声明 dsh.bundle.patch → cordis.patch.yml,后者插入三行 host 插件。像安装其他 bundle 一样从检出安装它。
懒人版
对你的 dsh 说:
安装一下这个插件包:https://github.com/geohotstan/dsh-computer-use
手动
git clone https://github.com/geohotstan/dsh-computer-use
cd dsh-computer-use
pnpm install
pnpm run build # 构建各插件包的 host lib/
pnpm run build:native # 构建、签名并打包守护进程(每台机器一次;需要 Xcode 命令行工具)
cd
dsh plugin --profile add ../dsh-computer-use
dsh plugin add 会把仓库注册为 profile 的一层 bundle(dsh.profile.bundles)。它的行以 dsh-computer-use/* 子路径命名,因此一切都通过链接的检出解析——不需要安装任何兄弟包依赖。然后把 helperPath(或 DSH_COMPUTER_HELPER_PATH)指向签名包内的守护进程可执行文件,并重启 web 服务:
# helper: /packages/computer-local/native/.build/dsh-computer-daemon.app/Contents/MacOS/dsh-computer-daemon
请保持检出路径固定——macOS 以助手的 bundle id、代码签名和磁盘路径为键记录 TCC 授权(见权限)。
包
| 包 | 角色 | 加载行 |
|---|---|---|
dsh-computer | 服务定义——ctx.computer | 由 注册 |