A robot uses an accessibility tree to identify and automate interface elements across platforms.
Vercel Labs has open-sourced agent-desktop. It's a command-line tool that lets AI agents read and operate desktop applications through the operating system's accessibility tree instead of guessing from screenshots. It runs on Windows, macOS and Linux. On Windows it uses Microsoft's UI Automation (UIA) framework, so Windows developers and IT teams who are testing agentic automation should look at it. The catch is that it only works with apps that expose usable accessibility data.

A robot uses an accessibility tree to identify and automate interface elements across platforms. What agent-desktop is, and what it isn't​

The project describes itself as giving any agent reliable computer use on the desktop. It is a Rust CLI plus a C library, licensed under Apache-2.0. It is not an agent. It bundles no language model and has no GUI. Each command prints one JSON envelope and exits, and the observe, act and verify loop stays with whatever agent you connect.

On release timing, the GitHub release page for v1.0.2 shows it was published on 30 October. That matches MarkTechPost's report of an October 30, 2026 release. Separate coverage says the project was announced on X the same day.

How the observe, act, verify loop works​

An agent runs snapshot against an app and gets JSON back. Each element it can operate carries a ref, such as @s8f3k2p9:e8. The agent acts on that ref, for example with click, and then takes another snapshot to confirm the result.

The design is strict about stale state:

  • Qualified refs only. The snapshot ID is part of the ref. A bare @e8 is rejected with INVALID_ARGS.
  • Changed UI. If the interface shifts, an action returns STALE_REF or AMBIGUOUS_TARGET, and the agent should take a fresh snapshot.
  • Multiple matching windows. snapshot lists candidate window IDs in the error details, and you pick one with --window-id.
  • Retry rules. Every error carries a disposition. The agent should retry only when error.disposition.retry is safe.

This fails closed. The tool would rather refuse than click the wrong control.

The Windows-specific details​

The install documentation spells out several Windows behaviors:

  • No permission grant for same-level apps. Windows needs no grant for apps running at your terminal's integrity level. This is the documented boundary.
  • Elevated apps. An app running as administrator can be read, but only an elevated agent can send it input.
  • Unsigned binary. The binary is unsigned. SmartScreen may warn on a browser download, and antivirus may quarantine it. On a clean Windows 11 install, Smart App Control blocks it. The documentation says the npm install path doesn't trigger SmartScreen.
  • Shell surfaces. list-surfaces lists each process's window, focused, sheet and menu surfaces. snapshot --surface can also read the taskbar, system tray, tray overflow, Start menu and Action Center without --app. quick-settings returns PLATFORM_NOT_SUPPORTED and points to action-center.
  • Launching apps. launch takes an absolute path, or a bare name under System32 or the Windows directory. It can't resolve a display name such as "Google Chrome".
  • PowerShell quoting. Quote every ref, for example '@s8f3k2p9:e8'. A bare @token is PowerShell's splatting operator.

MarkTechPost lists Windows 10 1809+ or Server 2019+ as minimum versions. I couldn't confirm those figures in the primary documentation I reviewed. Check them against the version-matched agent-desktop skills get platform output before you rely on them.

Headless by default​

Ref actions go through the accessibility API without moving the pointer or taking focus. That is the main practical difference from pixel-based tools, because you can keep using the machine while an agent works. The global --headed flag allows physical input when you need it.

This shouldn't be over-generalized. The tool also ships mouse and keyboard commands. The README says four of its 60 command names (key-down, key-up, mouse-down, mouse-up) refuse to run until a daemon can release a held key or button. That leaves 56 operational commands. MarkTechPost also reports that ref actions auto-wait up to 5,000 ms for a visible, enabled, stable target. I didn't see that timeout confirmed in the primary excerpts.

Installation​

  1. Install globally with npm install -g agent-desktop, then check with agent-desktop version. Bun, Yarn and pnpm also work. The package includes native binaries for x64 and ARM64.
  2. Alternatively, download a release archive for your OS and architecture. Keep the platform helper beside the executable.
  3. Don't expect Homebrew or Scoop yet. The documentation says official packages are still being submitted and aren't in the default catalogs.
  4. Watch for blocked install scripts. The postinstall step swaps the Node launcher for a native-binary link, at roughly 21 ms per call. If your package manager blocks scripts (npm 12 does by default), each call costs about 146 ms. Approve the script with npm install-scripts approve agent-desktop or install with --allow-scripts.
  5. A plain npm install agent-desktop without -g doesn't put the command on PATH. Use npx agent-desktop or install globally.
  6. Release archives come with checksums that catch corruption but don't prove origin. The documentation suggests gh attestation verify --repo vercel-labs/agent-desktop for that.
  7. To teach an agent the tool, run agent-desktop skills get desktop and agent-desktop skills get platform. The binary carries version-matched docs.

Early rough edges​

A pull request in the repository describes a Windows bug. Releasing the main thread's UI Automation client after COM teardown crashed in combase, so every command, 1.0.1 included, ended in a crash report and about 3 s of error reporting. That fix was a proposed change when I looked, and I couldn't confirm it shipped in v1.0.2. The project is young, with a v1.0.x label, so test it on your own Windows builds before putting it into any workflow.

Token-savings claims​

MarkTechPost reports a 78% to 96% token reduction from "skeleton" snapshots on dense apps like Slack, VS Code and Notion. It also reports Apple Maps dropping from 3,811 tokens per look to 273, and a simulated 52-step task dropping from 198k to 31k tokens. These figures come from the builder. MarkTechPost itself says they are not an independent benchmark.

The workflow behind them is documented. You map a dense app first with snapshot --skeleton --app Slack -i --compact, then drill into one region with snapshot --root <ref> -i --compact. The documented workflow is real, but your savings will depend on the app and the task.

Limits and risks​

  • Accessibility coverage is the ceiling. Apps with poor or missing accessibility trees remain out of reach. Custom-drawn UIs and some games are the usual suspects, though that is general industry knowledge and not a claim from the project.
  • Snapshots can hold private data. The documentation warns that snapshots, clipboard reads, screenshots, command output and debug artifacts may contain private desktop content. Keep them out of public logs and uploads.
  • The optional JEV helper is separate. It sends screen descriptions to a configured model provider, and it isn't part of the native CLI. Don't conflate the two when you assess data handling.
  • Agent permissions need thought. An agent that can click, type and read the clipboard in your session has your privileges. Enterprise teams should run it in a test VM and avoid running the agent elevated unless a task requires it.

How it compares​

MarkTechPost's comparison table sets agent-desktop against Claude computer use, OpenAI computer use and Microsoft UFO². Its claims include per-screenshot token costs and UFO²'s licensing. I couldn't verify those against primary documentation, so treat them cautiously. The comparison that holds up is the architectural one. Screenshot-based tools infer targets from pixels. agent-desktop reads structured UI data and leaves the model choice to you.

The idea is also not new to Vercel. Its earlier Agent Browser drives browsers through compact accessibility-tree snapshots rather than raw HTML. agent-desktop extends the approach to the whole desktop.

Bottom line​

For Windows developers, agent-desktop offers a local, model-agnostic way to let agents drive UIA-visible apps without a vision model. It also brings the usual agent-automation risks: elevated apps, captured desktop data and an unsigned binary. Try it in a sandbox first. Check which of your target apps expose a useful accessibility tree, and treat the efficiency numbers as the builder's claims until independent tests appear.

 

References

  1. Vercel Labs Open-Sources agent-desktop for Agent Computer Use - MarkTechPost MarkTechPost 2026-10-31T10:10:28+00:00
  2. install.md github.com
  3. agent-desktop github.com