rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:linabellbiu/dsh-computer-use-pip
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Agent 在后台操作电脑时,屏幕右上角浮一个置顶小窗,实时镜像它正在操作的那个窗口。 纯观察:没有文字、没有暂停,关掉它不会影响 Agent。
| 部分 | 文件 | 职责 |
|---|---|---|
| 小窗 | overlay/main.swift → dist/ComputerUsePip.app |
只显示 frame.png + 两个按钮,按钮写 control.json |
| 桥接 | plugin/pip-bridge.mjs |
跟随目标窗口 → cua-driver 抓帧(display_only,约 4 fps)→ 写 state.json/frame.png;处理按钮动作 |
| 插件 | plugin/lib/index.js |
App 启动时拉起桥接;暴露 computer_pip 工具(status/show/hide) |
| 联动 | dsh-computer-use-next/lib/cua.js 约 30 行 |
每次带目标窗口的调用写 activity.json;没装小窗时静默跳过 |
activity.json computer-use 每次动作写入 {pid, windowId, tool, action, at}
pin.json computer_pip action=show 手动钉住(优先,不过期)
state.json 桥接 → 小窗 {visible, status, aspect, frameSeq, updatedAt}
frame.png 最新一帧(原子替换)
control.json 小窗 → 桥接 {seq, action: takeover|hide}
hidden.json 关闭小窗的标记:同一条旧动作不会把小窗弹回来
overlay.pid 小窗进程 pid(只用这个 kill,绝不按模糊 cmdline 批量 pkill)
bridge.log 桥接启动/退出记录
pip-bridge.mjs --serve(待机,不抓帧)。×:立即隐藏,5 秒内不会被新的帧重新拉起PIP_IDLE)自动关闭SIGTERM/TTL 300s)时写入 visible:false,小窗随之收起get_window_state(display_only:true),4 fps 左右,不是视频流。需要 macOS 13+ 和 Xcode Command Line Tools(构建原生小窗)。
git clone https://github.com/linabellbiu/dsh-computer-use-pip.git
cd dsh-computer-use-pip
./install.sh # 构建小窗 + 复制到 ~/.dsh/tools + profile 登记 + 软链
然后 ⌘Q 退出 DSH 再打开。
卸载:还原 ~/.dsh/profiles/desktop/package.json.bak-pip-*,删 ~/.dsh/tools/dsh-computer-use-pip、
~/.dsh/profiles/desktop/node_modules/dsh-computer-use-pip、~/.dsh/computer-use-pip,再重启 App。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。