Skip to content
Sandworld

Search the docs and guides

    Evaluation

    How to test computer-use agents: same tasks, same verifier, any interface

    Run the same tasks through tools and the screen, grade both by the app’s final state, and the gap is what the interface costs. A method and checklist.

    By the Sandworld teamUpdated 6 min read

    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:

    1. Pick tasks and seeds, and keep the system prompt, policy, step budget and verifier identical.
    2. 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).
    3. 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:

    PatternLikely cause
    Fails on screen, passes with tools; clicked the wrong elementGrounding: mapping intent to the right control
    Fails on screen; never reached the right pageNavigation: finding where the action lives
    Fails on screen; ran out of steps or contextCost of the interface: more steps per action
    Fails the same way in bothReasoning 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

    1. Resettable app copies with seeded starting states.
    2. One verifier per task that reads state, shared by every interface.
    3. Identical prompt, policy and step budget across modes.
    4. Fixed viewports, app-only screens and stable element numbers.
    5. An ask-the-user action on screen as well as in tools.
    6. Pass rates per mode, and a list of tasks that fail only on screen.
    7. 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.

    Frequently asked questions

    What is the GUI tax for AI agents?

    The drop in pass rate when the same agent does the same tasks through the screen instead of through tools, with the prompt, policy and verifier unchanged. It isolates what perception, grounding and navigation cost.

    Should computer-use agents see screenshots or an accessibility tree?

    Test both if you can. Element lists from the accessibility tree are cheaper and more robust; screenshots test visual grounding. Set-of-Marks, a screenshot with numbered elements, sits between them.

    Can one benchmark test both API agents and computer-use agents?

    Yes, if every task has a tool surface and screens over the same state, and one verifier grades the final state either way. Then pass rates are directly comparable.

    How do you test a phone agent?

    On an Android emulator or test device, driven with adb or UI Automator, against an app that resets to an exact state and whose final state a verifier can read. Real apps on emulators can’t be reset exactly and talk to live backends.

    Try it

    See every idea here in a working environment.

    The examples come from real Sandworld tasks. Play one in your browser — every tap is the tool call an agent would make — then read the verifier’s check-by-check verdict.