agent-desktop — AI 用無障礙樹操控整台電腦,不靠截圖
- URL: https://www.threads.com/share/BAXLFqC8XY/
- Canonical: https://www.threads.com/@yrzheee/post/DfKiW50Efc1
- Date Saved: 2026-11-01
- Source: Threads (@yrzheee)
- Tags: ai-tools, dev-tools
- Repo: https://github.com/vercel-labs/agent-desktop (⭐4.4K)
Summary
@yrzheee 介紹 Vercel Labs 的 Chris Tate(agent-browser 作者)於 10 月 31 日發佈的開源工具 agent-desktop。
核心思路
- 以往 AI 操控電腦靠截圖 → 猜按鈕坐標 → 點擊 → 再截圖確認,每張截圖約 1000-1800 input tokens(Anthropic computer use)
- agent-desktop 改讀系統「無障礙樹」(accessibility tree)— 本來給讀屏軟件/盲人用戶用的系統接口
- snapshot 不截圖,直接讀 accessibility tree 返回 JSON,每個可操作元素有編號 ref
- Agent 說「click 這個 ref 編號」就行,點完再 snapshot 確認
技術特點
- 用 Rust 寫,讀取任何 app 的真實 UI 結構
- ref 編號防錯:界面變了拿舊編號去點會報 STALE_REF
- 每個報錯都寫明重試安不安全
- 定位:agent-browser 管瀏覽器,agent-desktop 管整台電腦
與 Anthropic computer use 對比
- Anthropic 靠截圖猜坐標,每張 1000-1800 tokens
- agent-desktop 靠結構化 accessibility tree,更精確、更省 tokens
- 也有截圖命令,但「看界面」這步不靠截圖