Just over fourteen thousand stars, and the README’s privacy warning is about screenshots, two lines after the sentence promising computer use “without screenshots or pixel matching.” The tool ships a screenshot command anyway.
The warning is not a description of how it works. It is a note about what a snapshot can leak, and the same paragraph tells you to keep snapshots out of public logs and uploads.
vercel-labs/agent-desktop gives an agent computer use by reading the operating system’s accessibility tree and handing back JSON with a stable handle on every element it can act on. On macOS that is the AX API, on Windows UI Automation, on Linux AT-SPI. One Rust core, three platform adapters, 2,751 .rs files on main, and an Apache-2.0 license. The current release is v1.1.0, published to npm on November 3 at 04:15 UTC, roughly nineteen hours before the pull request that added its MCP server was merged.
I installed it and ran it. Some of it worked better than I expected, and the parts that refused to work were more informative than the parts that did.
The bet, in one sentence
An agent does not need to see the screen to use it, and every pixel-based approach that has ever shipped has quietly traded away the one thing a computer-use loop cannot afford to trade away: knowing whether its own click landed.
The loop, which is the whole product
There is no model inside agent-desktop. It is a CLI and a C library, and the observe-act-verify loop lives in whatever is driving it. The shape is three commands:
agent-desktop snapshot --app Finder -i # observe: JSON tree, refs on actionable elements
agent-desktop click @s8f3k2p9:e8 # act: on a ref from that snapshot
agent-desktop snapshot --app Finder -i # verify: read again
Refs are qualified with the snapshot that produced them, @<snapshot_id>:e<N>, and they carry the snapshot id because a bare @e8 is rejected:
INVALID_ARGS: Invalid ref_id '@e1': expected @<snapshot_id>:e<N>
That is a small thing that turns out to be load-bearing. A ref without its snapshot id has no way to say which observation it came from, and without that, the tool cannot know whether the element it is pointing at still exists.
What I actually ran
The box is Ubuntu 24.04.3, aarch64, an X11 session with KDE Plasma running. npm install -g agent-desktop added one package in 564 milliseconds. The tarball is 26 files: a native binary for every platform it ships, a sha256 file next to each one, and a postinstall script that checks the digest of the binary matching this box and links it. Version reports as 1.1.0.
agent-desktop status
{"version":"2.6","ok":true,"command":"status","data":{
"permissions":{"accessibility":{"state":"granted"},
"automation":{"state":"not_required"},
"screen_recording":{"state":"not_required"}},
"platform":"linux","ref_count":1,"session_id":null,
"snapshot_id":"sn45wcyikdc6e",
"state_root":"/home/ubuntu/.agent-desktop",
"supported_surfaces":["window","sheet","alert","menu"],
"tracing":false,"version":"1.1.0"}}
Note screen_recording: not_required. It did not ask for screen recording permission, because the accessibility tree does not need one. It also did not ask for automation permission, which is the macOS equivalent.
list-apps returned twenty-plus live processes through the accessibility bus, and list-windows --app zenity gave me a real window rectangle with real geometry:
{"app_name":"zenity","bounds":{"height":200.0,"width":311.0,"x":224.0,"y":586.0},
"is_focused":false,"minimized":false,"title":"AD Probe","visible":true}
Then the snapshot of a live GTK3 dialog:
{"app":"zenity","complete":true,"ref_count":1,"snapshot_id":"sn45wcyikdc6e",
"tree":{"role":"dialog","name":"AD Probe","states":["modal"],
"children":[{"role":"group","children":[{"role":"group","children":[
{"role":"group","children":[{"role":"group","children":[
{"role":"button","name":"OK","ref_id":"@sn45wcyikdc6e:e1",
"available_actions":["Click","SetFocus"]}]}]}]}]}]},
"window":{"id":"w-1.144-org-gnome-Zenity-a11y-a794fd44_7b81_4942_a804_70014b466d8d",
"title":"AD Probe"}}
One button, one ref, real actions. The -i flag keeps interactive nodes only, which is why the static text inside the button is dropped. A full snapshot without -i shows the same button carrying a statictext child also named “OK”, so the label shows up twice, once as the button’s name and once as a node of its own.
Then Kate, which is a much bigger surface: 273 refs in 0.51 seconds.
Where it stopped, and why that is the story
The button in that dialog was actionable on paper. It had a Click action, it was enabled, it was present. Clicking it failed:
TIMEOUT: Target did not become actionable within the wait budget
details.kind: actionability_timeout
checks: [{"check":"visible","reason":"bounds unavailable","status":"unknown"},
{"check":"enabled","status":"pass"},
{"check":"supported_action","status":"pass"},
{"check":"policy","status":"pass"}]
Read the checks carefully, because the ordering is the design. Three of four gates passed. The one that did not was visible, and it did not fail — it came back unknown. That is a different answer from fail, and the difference matters.
get --property bounds on that same ref returned null. get --property states returned []. The button was there and the tool could not prove where it was. The visibility gate in crates/core/src/actionability/gates.rs handles this case explicitly:
let Some(bounds) = evidence.bounds else {
return unknown("visible", "bounds unavailable");
};
unknown is not fail. An element that is provably hidden gets rejected immediately. An element whose position cannot be read gets unknown, and then the actionability evaluator waits for the geometry to settle, and when it never does, the whole thing times out at five seconds with not_delivered.
That is the correct behaviour, and it cost me a click on a button that was sitting right there. The alternative — clicking anyway because the semantic action was advertised — is how you get a double submission into a payment form.
The twin problem, which is where Linux and Windows diverge from macOS
The same run against Kate produced the other refusal I care about. Three textfields in that window are named Filter..., and one of them was at ref e63:
AMBIGUOUS_TARGET: Saved ref was not proven unique when it was captured,
so it cannot be re-identified safely
details.kind: identity_not_unique
Acting on it would mean picking one of three identical controls, and the tool will not guess.
The v1.1.0 changelog explains this precisely. On macOS a ref carries the element’s own address, so identical twins each keep their own ref and can each be used. On Windows and Linux a ref resolves only if the element was unique when captured and exactly one live element still matches it now. Identity is the element’s role and stable fields, not its instance — and the changelog is blunt about the consequence: “an identical element that replaced the original is acted on, and a toolkit that keeps a removed widget listed (GTK4, Qt6 on Linux) can still receive the action.”
So on Linux the ref is not a handle to an object. It is a claim about a unique shape, and the tool verifies the claim before it acts. That is a weaker guarantee than macOS gets, and it is a deliberate trade: on Windows and Linux you cannot cheaply ask the OS “is this the same widget I saw a minute ago”, so the tool refuses instead of guessing.
There is an escape hatch and it is ugly. The suggestion text says it: “where headed pointer input is available, an explicit —headed coordinate click can pick one.” Coordinate clicking is the thing this tool exists to avoid, and it remains available as the escape hatch when the tree cannot disambiguate. That is the right order of preference, and it is also the reason the tool is worth reading the source of.
The delivery contract is the part I would steal
Every response carries a disposition, and it has two independent axes:
pub enum DeliveryDisposition { Unknown, NotDelivered, DeliveryUncertain,
DeliveredUnverified, DeliveredVerified }
pub enum RetryDisposition { Unknown, Safe, Unsafe }
not_delivered plus retry: safe means the action provably did not happen, so repeating it is harmless. Anything other than not_delivered means it may have landed, and a repeat could click twice or type twice. toggle is called out specifically because a repeat can undo itself.
The bundled agent skill states the rule the way an engineer would want it stated:
Retry or substitute an action only when
disposition.retryissafe. Onlynot_deliveredis safe. Any other delivery value means the action may have landed. A repeat can click, type or submit twice, andtogglecan undo itself.
That is the difference between a computer-use tool and a click-automation script. A script that fails halfway leaves the agent guessing. This one can say “nothing happened, go again” and mean it.
I confirmed the contract held under failure. Every failed click came back not_delivered / safe, the zenity dialog was still open afterwards, and the four held-input commands refused correctly: key-down returned ACTION_NOT_SUPPORTED with delivery: unknown because a stateless process cannot guarantee it released the key, and mouse-down returned POLICY_DENIED for headless mode.
That refusal matters more than it looks. key-down without a matching key-up leaves a modifier held down, and every subsequent keystroke in that session is corrupted. The tool says delivery: unknown rather than not_delivered — it will not promise the key stayed up, because it cannot know. The fix is architectural: a held key requires a daemon-owned transaction that can guarantee release, and there is no daemon. v1.1.0 removed the macOS command host entirely, and the four held-input commands are permanently unavailable in this release.
One doc bug worth reporting
The README documents an MCP server:
agent-desktop mcp
The shipped binary does not have it.
INVALID_ARGS: error: unrecognized subcommand 'mcp'
The source tree has src/mcp/ with seven files. The pull request that added it, #519, merged on November 3 at 23:13 UTC. The v1.1.0 npm publish was November 3 at 04:15 UTC. The README on main describes a feature that landed nineteen hours after the release it documents, and the released binary is the artifact most people will install.
The fix is a version gate or a note. The command list in the README says “60 command names, 56 operational commands,” and --help on the installed binary lists 61 entries including help itself, which is 60 real command names. Minus the four held-input commands that refuse, that is 56 operational. The arithmetic in the README is right for the binary I have. It is only the MCP section that is ahead of the release.
What this is actually good for
Agent-driven GUI work has a reputation for being flaky, and it deserves to. The flakiness is usually not the model, it is the loop: the agent takes a screenshot, guesses coordinates, clicks, and cannot tell whether the click landed because nothing verified it. Then it retries, and now it has clicked twice.
The accessibility tree removes the coordinate guess and replaces it with something checkable. A ref names a shape. The tool verifies the shape is still unique. It verifies the element is visible, enabled, and that the platform can actually perform the requested action. It reports whether the action landed, in a form that says whether repeating it is safe.
That last part is the whole trick. Computer use was unreliable not because agents could not see buttons, but because the system could not tell them what had already happened. Everything else in this repo is a well-built answer to the harder half of that problem.
What I could not verify
I never got a successful click on this box. The bounds came back null for the GTK dialog’s button and zero-sized for Kate’s, and the X server would not answer a focus query either — focus-window returned TIMEOUT with details.display_unavailable: silent, which suggests the compositor was not responding to the request rather than the tool mishandling it. This is an X11 session over what looks like a remote desktop, and the accessibility bus is clearly not fully wired into the display server.
So every action I attempted ended in a refusal. That is not a claim that agent-desktop cannot click; the project ships 56 working commands and a macOS adapter with a different, stronger ref model. It is a claim about what I could confirm: the observation path is solid, the refusal path is precise and honest, and the one thing I could not test is the thing the tool exists to do.
I also did not test the C library. The v1.1.0 changelog breaks the ABI, moving the major version to 7 and making ad_resolve_element_exact and ad_execute_ref_action_exact_with_policy refuse outright, because “a C caller cannot supply the capture proof a ref now resolves by.” The FFI path is a strictly weaker contract than the CLI path, by design.
Where I would start
If you are wiring this into an agent, read crates/core/src/actionability/gates.rs first, then the disposition enums in crates/core/src/response/. That is the part that is not a platform detail. The AX and AT-SPI plumbing is well-documented and mostly interchangeable; the refusal discipline is the design, and it is portable to any other tool an agent drives.
Then check whether your target app is one of the frameworks that keeps removed widgets listed. The changelog names GTK4 and Qt6 on Linux by name. If your app is one of those, a ref that pointed at a row you just deleted can still fire at whatever now occupies that slot, because the identity check found exactly one matching shape and it happens to be the wrong one. That is the trade the tool made, and it is worth knowing about before you point it at a form that submits.
References
vercel-labs/agent-desktop— https://github.com/vercel-labs/agent-desktop (Apache-2.0, v1.1.0, just over 14,400 stars at time of writing)- Actionability gates —
crates/core/src/actionability/gates.rs - Disposition enums —
crates/core/src/response/delivery_disposition.rs,crates/core/src/response/retry_disposition.rs - State vocabulary —
crates/core/src/tree/state.rs - v1.1.0 changelog —
CHANGELOG.md - Shared vocabulary —
CONCEPTS.md - MCP server (unreleased at v1.1.0) —
src/mcp/, PR #519
Comments
Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.