agent-desktop vs AppleScript
432 runs of an AI agent operating Mac apps, on two macOS versions and three model sizes. The accessibility tree costs more, runs slower, and takes over your screen more often than AppleScript.
agent-desktop gives an AI agent "computer use without screenshots or pixel matching". It reads a desktop app's accessibility tree, hands the agent a JSON list of every control with a ref, and lets the agent click or type on a ref. Its actions are "headless by default: no pointer movement, no focus change". It runs on macOS, Windows and Linux.
I was wiring it into reminal, so that you could tap a button on your Mac from your phone, or watch an agent drive an app while you keep using the machine. Before building more on it, I wanted to know whether an agent actually does better with it. So I measured.
Short version: on macOS it did not. On two macOS versions and with three model sizes, an agent using agent-desktop was always slower and more expensive than one using screenshots or AppleScript. Its one edge, finishing a few more tasks than AppleScript with smaller models, came almost entirely from one app, and screenshots had the same edge at half the price. Working beside a person, which is the thing it promises, it took over the screen more often than AppleScript did.
Continue reading →