Test a computer-use agent the way you would test an API agent: on resettable copies of real apps, graded by a verifier that reads the app’s final state rather than the last screenshot. Run the same tasks through tools and through the screen, with the same prompt and policy, and the difference in pass rate is what acting through the interface costs (the GUI tax). That separates perception and grounding failures from planning and policy failures.
What makes computer-use agents hard to test?
A computer-use agent observes the screen as pixels, an accessibility tree or both, and acts with clicks, typing and scrolling. Each model provider defines its own action schema (Anthropic, OpenAI, Google), so a harness has to translate. Real apps make poor test beds: they can’t be reset to an exact state, they change without notice, and they have real side effects. Public benchmarks help but age quickly. OSWorld, for example, reported a human baseline of 72.36% when it launched (Xie et al., 2024); check its official, verified leaderboard before quoting how close agents now are.
Why grade the final state, not the screen?
A check of the last screen’s text passes an agent that typed the right words into the wrong field and misses a second order placed three screens earlier. A verifier that reads the app’s data checks what matters: exactly one order, these items, this slot, nothing else changed. Some mobile benchmarks already read app databases for this reason; AndroidWorld, for example, inspects SQLite state in some tasks (source). The verifier should also be the same one an API agent faces, or you can’t compare the two.
What is the GUI tax, and how do you measure it?
Hold everything constant except the interface:
- Pick tasks and seeds, and keep the system prompt, policy, step budget and verifier identical.
- Run the agent through tools, then through the screen in each observation mode you care about: an element list (the accessibility tree as text), a screenshot, and a screenshot with each element numbered (Set-of-Marks).
- Report the pass rate per mode, and list the tasks that pass with tools but fail on screen.
Then read the failures, because they mean different things:
| Pattern | Likely cause |
|---|---|
| Fails on screen, passes with tools; clicked the wrong element | Grounding: mapping intent to the right control |
| Fails on screen; never reached the right page | Navigation: finding where the action lives |
| Fails on screen; ran out of steps or context | Cost of the interface: more steps per action |
| Fails the same way in both | Reasoning or policy, not the interface |
How should the screen be set up?
- Fixed viewports. Sandworld uses 390×844 for its mobile twins and 1280×800 for web twins. A layout that shifts between runs is noise.
- Only the app. No page chrome, and no grading or submit button a model could click. The harness submits.
- Stable element numbers for visible, unobstructed controls, with role, accessible name and value, so element-list and Set-of-Marks modes refer to the same things.
- A way to ask the user. Screen agents meet missing details too, so give them the same ask-the-user action an API agent has.
- Context management. Screenshots are large inputs. Collapse older screens in the conversation so long episodes fit.
What about phones?
Phone agents are usually tested on Android emulators, driven with adb, UI Automator or an AndroidWorld-style harness (AndroidWorld). The same problems apply: a real app on an emulator can’t be reset exactly and talks to a live backend. Sandworld’s Android app runs its mobile twins full screen on an emulator or test device while a real episode records every tap, and the task’s verifier checks the final state, the same checks an API or browser agent gets (Android docs).
How do you keep screen runs reproducible?
Screen agents add noise of their own: animations, loading spinners, layouts that reflow, clocks that tick. Remove what you can. Seed the app’s data so every run starts from the same state, use a simulated clock, disable animations, and wait for the page to settle before each observation. Then make the actions themselves comparable. In Sandworld’s twins every tap or keystroke that changes something becomes the same tool call an API agent would make, so a screen episode leaves the same kind of action log as a tool episode. That has three consequences: the verifier and its collateral-damage check work unchanged; an episode can be replayed exactly from its log; and a human demonstration recorded on screen is directly comparable with an agent’s run. Without that, you end up grading screen agents with a different, weaker check than API agents, and the comparison stops meaning anything.
Finally, separate the agent’s failures from the harness’s. A click that lands on nothing because the page was still loading is the harness’s fault, and should be fixed rather than counted against the model. Read a sample of failed episodes by hand before trusting a new screen mode’s numbers.
What does it cost?
Screen modes take more steps and more tokens per step than tool calls, so they run slower and cost more. A practical split is to run the element-list mode in regular CI, since it is cheapest and catches most navigation regressions, and screenshot modes on a schedule or before releases. Keep per-episode time limits, and treat a model API error as an error, not a pass.
A checklist for testing computer-use agents
- Resettable app copies with seeded starting states.
- One verifier per task that reads state, shared by every interface.
- Identical prompt, policy and step budget across modes.
- Fixed viewports, app-only screens and stable element numbers.
- An ask-the-user action on screen as well as in tools.
- Pass rates per mode, and a list of tasks that fail only on screen.
- Element-list runs in CI; screenshot runs on a schedule.
Sandworld’s own computer-use harness opens any twin in a headless browser with an element list, visible text and screenshots (optionally marked), and grades the episode with the task’s own verifier. Results appear on the Arena labelled by interface. To test your own computer-use agent, start an episode in computer-use mode: the API returns a link to the twin that your agent opens in its own browser, and the same verifier grades the final state. For the landscape of surfaces, see computer-use and mobile agent environments.
