‹ Back to Orbis News
Guides

Vercel agent-desktop clicks in the background. Did it save the file?

Claude Code pressed the buttons on a Mac calculator and added a line in TextEdit without bringing either app forward. The two outcomes show what a desktop agent needs to verify.

Orbis News4 min read
On a dark blue background, an orange cursor points at a button next to a file whose save status is unconfirmed

Claude Code pressed the digits and multiplication key on a Mac calculator and read 5,888 from its display. Calculator stayed in the background the whole time. The testers then asked Claude to add a line to a note in TextEdit and press the save shortcut. The line appeared, but the title bar still read “Edited.”

The AI Parabellum editorial team published the test on November 3. They used agent-desktop 1.0.2. As of November 9, 2026, the Vercel Labs open-source repository showed about 19,900 stars. Version 1.2.0, released November 5, added MCP support. Those two windows show where the tool fits. It can reach controls in the background, and the app’s output tells you how far the task got.

How Vercel agent-desktop finds a calculator button

An accessibility tree is a structured description of an interface that the operating system provides to assistive software. When the app exposes enough detail, the tool can read a control’s name, role, current value, and sometimes the actions it accepts. Calculator can expose its digits as named buttons and the number on its display as a readable value. The agent can target a named button while someone works in another app in the foreground.

The project’s quick start uses Finder. Install the tool, then grant macOS Accessibility permission to the terminal app that runs it. Open Finder and run agent-desktop snapshot --app Finder -i to list interactive controls. Look for a ref_id under the target control. It will look something like @s8f3k2p9:e8. Pass the full reference from your snapshot to agent-desktop click, then read the current window again. The first part of the reference ties it to that snapshot. The sample ID won’t work in your Finder window.

One action can change the target of the next. A click can open a dialog or make the original control disappear. If the tool reports STALE_REF, take a fresh snapshot and find the target again. If the interface is updating asynchronously, wait for the expected state. Vercel’s Ben Sabic gives a small example. If you press 7 again before Calculator updates its display, you could end up with 77. In Calculator, that’s an extra digit. In a ticketing system, it could be an extra record.

TextEdit’s title bar still said “Edited”

In the third-party test, the agent used set-value to add a line containing “Eggs.” It then tried Command-S. The tool reported sending the keystroke but couldn’t confirm that TextEdit had received it. The window still said “Edited.” The new content appeared in the file a little later. The testers thought TextEdit’s autosave was the likeliest explanation. They also tried the File menu in the background. Both Save and Save As were grayed out at the time.

Calculator’s answer lives on its display. Reading 5,888 gives you the result. For a text edit, the deliverable is the document on disk, so the line in the text field still has to be checked against the file. If you can’t read the file back, report the save as unconfirmed and say whether the path was missing or the read failed. Whether the mouse moved tells you very little about either outcome.

What you observedWhat it confirms
The snapshot found a button or text fieldThe app exposed a control the agent can locate
The action returned a result and the interface updatedThe target state in that window changed
You read back the target file or business recordYou find the line in the file, or the new record and its ID

The testers ran macOS 26.5 with Claude Code 2.1.316, Opus 5.5, and agent-desktop 1.0.2.

If you want to try it, Calculator gives you an easy result to check. Then pick a temporary document. Ask the agent which window shows the new content, and have it read the same line back from the specified path. Once both checks work, you can consider adding the workflow to your regular routine. If you can verify only the edit on screen, leave it as a visible draft and let someone save it.

When to bring an app to the foreground

For a web form, browser automation can locate fields directly, and some pages let the browser tool set a file input. Desktop agents come into play for native buttons, menus, and system dialogs, or when the workflow moves outside the browser. You might download a report from a website and open it in a desktop app. Pass along the file path and the reporting period you’ve verified so the second tool can open the right download.

Some controls are hard to see in the tree. A custom-drawn canvas may appear as a single container. A screenshot can help determine where elements sit, what covers them, and how a button looks. In a discussion on r/ClaudeAI, a reader proposed comparing actual misclicks on the same workflow instead of counting successful command responses. For tasks that require physical keyboard or mouse input, the docs offer --headed mode. You still need to account for platform support and which window has focus. When an authorized API can return the business record directly, you can skip the interface for that step.

Related reading. How Pi gives you control over your coding tools · What AI assistant permission rules can leave behind

Further reading