From Reading Screens to Operating Computers: The Evolution of GUI Agents

    A close look at how AI models are shifting from generating text to completing real tasks by operating a computer. The article breaks down the capabilities of computer-use (GUI) agents across three levels—seeing accurately, finishing the task, and doing it well—and maps them to recent public benchmarks. It then explains the four core design decisions behind a GUI agent (screen perception, a bounded action space, hybrid command-line and visual execution, and failure recovery), presents a minimal Python-style agent loop, and offers guidance on building an in-house evaluation system and deploying agents securely with sandboxes, observability, and human-in-the-loop handoff. It closes with a measured view on whether this marks the arrival of AGI.

    A leap in capability often precedes a shift in how we apply it. When an AI research lab releases a new general-purpose model, the most revealing question is rarely where it ranks on a leaderboard—it’s what the model has learned to do. These releases are moving away from “stating the answer better” toward “actually finishing the task.” This time, the focus lands squarely on operating a computer.

    This article examines that shift across four dimensions: capability breakdown, technical principles, evaluation methods, and engineering deployment. It closes with a measured take on the question of whether artificial general intelligence (AGI) has arrived.

    1. The Capability Leap: From Answering Questions to Operating Computers

    1.1 From conversation to execution

    For the past few years, the main arena for large models has been conversation and content generation—writing, summarization, Q&A, and code completion. These tasks share a common premise: the input is text, the output is text, and the model never has to interact with a real computing environment.

    A computer-use agent (referred to here as a “GUI agent”) is different. It has to close a loop: first see the screen and understand the current state of the interface; then reason about the next action; then act—click, type, scroll, switch windows; and finally, based on the new screen state, judge whether the task is done or whether it needs to self-correct. Once this perceive–decide–act chain runs end to end, the model transforms from a “content producer” into a “task executor.”

    1.2 Why focusing on screen understanding is the right direction

    The software ecosystem of the real world is highly fragmented. Not every system offers a well-defined application programming interface (API). Many internal enterprise business systems were built years ago, with missing API documentation—or documentation that no one left on the team can fully explain. But the overwhelming majority of software shares one thing in common: it has a graphical user interface (GUI).

    The interface is the universal bridge between humans and software, and it can just as easily be the universal bridge between an agent and software. An agent doesn’t have to wait for every vendor to build an integration. As long as it can read the screen and understand the controls, it can complete the task directly.

    Compared with traditional process-automation approaches that rely on element paths or image templates, screen understanding has two advantages:

    • Semantics over coordinates: The agent understands the meaning of a “search box” or a “submit button,” not the absolute position of “row 320, column 480.” It keeps working after a redesign, a theme change, or a language switch, making it markedly more robust.
    • Zero-modification integration: There’s no need to instrument every system or build APIs. Deployment costs are low, which makes it well-suited to covering long-tail systems.

    2. Capability Breakdown: Evaluation Across Three Levels

    Assessing whether a model “can operate a computer” usually proceeds through three ascending levels: seeing accurately, finishing the task, and doing it well. Several classes of industry benchmarks map neatly onto these three levels.

    Level Typical evaluation format What it tests Recent top-model performance on public benchmarks (trend reference)
    See accurately Screen-element grounding benchmark Given a natural-language description, can it precisely locate the target element in a screenshot? Accuracy rose from about 77% to about 93%
    Finish the task End-to-end benchmark on a real operating system Plan and complete multi-step tasks in a real desktop environment Completion rate rose from about 66% to about 73%; average time dropped from about 75 minutes to about 40 minutes
    Do it well Complex-task benchmark in a terminal environment Deep tasks such as software development, system configuration, and data analysis Score rose from about 37% to about 58%

    The figures above are a generalized summary of public benchmarks, used to illustrate the direction of capability evolution rather than as precise measurements. Refer to the latest data in official releases for specifics.

    2.1 Screen grounding: from “just over 70%” to “above 90%”

    Screen-element grounding tests whether a model can point to the location of a target control in a screenshot based on a natural-language description. It looks simple but is actually the hardest part:

    • Targets are often tiny icons only a dozen or so pixels across, which easily “disappear” when a screenshot is scaled down.
    • The same screen may contain several buttons with near-identical appearances, requiring the model to disambiguate them using surrounding context.
    • Overlays such as dropdown menus, modal dialogs, and hover tooltips can obscure the target.
    • High-resolution screens, high zoom levels, and multilingual interfaces add further noise.

    The new generation of models has pushed grounding accuracy above 90%, meaning that on a large number of ordinary interfaces, “point where you look” now reaches engineering-grade usability.

    2.2 End-to-end tasks: speed matters as much as completion

    Evaluations closer to real work place the model directly into a real operating system and let it complete multi-step tasks on its own—opening applications, filling out forms, handling files, and so on.

    • Completion rate: rose from about 66% to about 73%, indicating a clear improvement in reliability across multi-step, cross-application tasks.
    • Average time: shortened from about 75 minutes to about 40 minutes—nearly cut in half.

    Time deserves attention too. In long tasks, time is often consumed by repeated trial and error: clicking the wrong spot, choosing the wrong menu, or repeating actions because a result wasn’t clear. A shorter runtime signals more efficient planning, more accurate grounding, and fewer errors—exactly the qualities that business deployment values most.

    2.3 Terminal tasks: from the graphical interface into the system’s depths

    Another class of evaluation focuses on the terminal, covering complex tasks such as software development, system configuration, and data analysis, with scores rising to about 58%.

    Terminal tasks can’t be done by clicking. They require the model to understand the command line, the file system, and runtime state—a more “hard-core” form of execution. That the same model can cover both graphical and terminal operations shows that agent capabilities are extending deeper into the system.

    3. Technical Principles: Four Key Design Decisions Behind a GUI Agent

    3.1 Screen perception: aligning vision with natural language

    The model takes a “screen capture + task description” as input and outputs the location of a target element. At its core, this is a grounding capability of a vision-language model on screen data: establishing a correspondence between an object described in natural language and a specific region in the image.

    Two engineering points are worth noting:

    • Multimodal input: With only a screenshot, the model has to “guess” whether a small green dot means save, success, or online. Also supplying the interface element tree (accessibility information or the document object model), which gives control type, label, and hierarchy as text, can significantly reduce ambiguity.
    • Grounding augmentation: Number the candidate regions on the screenshot and have the model “pick a number” instead of outputting coordinates. This is usually more stable than emitting raw pixel coordinates, and it makes post-processing and validation easier.

    3.2 Action space: converging unlimited operations into a finite set of instructions

    To control a computer reliably, the model first needs a clearly bounded action set. Common conventions include:

    • click(x, y): click a screen coordinate;
    • type(text): enter text into the currently focused field;
    • key(keys): send a key combination or function key;
    • scroll(x, y, direction): scroll within a specified region;
    • wait(ms): wait for the interface to finish loading;
    • done(status): declare the task finished and return the result.

    By restricting actions to a finite enumeration, the model’s output can be validated by a program. Illegal actions are blocked before execution rather than acting directly on the real system.

    3.3 Hybrid execution: use the command line when you can

    Not every operation is best done through a graphical interface:

    • Running scripts, processing files, or inspecting processes via the command line is usually faster, more stable, and easier to validate than repeated clicking;
    • Scenarios such as logging in, configuring dropdown options, and filling out forms often can only be done through the interface.

    The mature approach is to choose the execution mode dynamically based on the task: anything that can be done via the command line or a programmatic interface goes through the command line; only what the interface can reach is handed to screen operations. Combining the two improves efficiency and expands the range of tasks covered.

    3.4 Failure recovery: the key difference between an agent and a script

    A deterministic script exits with an error when it hits something unexpected. The value of an agent lies in “being able to come back after a mistake.” Reliable failure recovery generally includes these mechanisms:

    1. State validation: after each action, take a fresh screenshot and compare it against the expected state;
    2. Error attribution: distinguish among different failure types, such as “click missed,” “element not visible,” and “system error”;
    3. Fallback strategies: try alternative paths such as scrolling to find the target, closing a blocking popup, or using a keyboard shortcut;
    4. Boundary termination: set a maximum step count and timeout, and hand control back to a human when necessary.

    4. A Worked Example: The Minimal Runtime Skeleton of a GUI Agent

    The following conceptual pseudocode (Python-like syntax) shows how the designs above fit together:

    1. # Conceptual illustration: the main loop of a GUI agent (observe -> decide -> validate -> act)
    2. # 1. Action space: described as structured JSON for easy parsing, validation, and auditing
    3. ACTION_SCHEMA = {
    4. "type": "object",
    5. "properties": {
    6. "thought": {"type": "string"}, # rationale for the decision
    7. "action": {"type": "string",
    8. "enum": ["click", "type", "key", "scroll", "wait", "done"]},
    9. "point": {"type": "object"}, # normalized coordinates {"x": 0.0, "y": 0.0}
    10. "text": {"type": "string"}, # input content or element description
    11. "status": {"type": "string", "enum": ["success", "failed"]},
    12. },
    13. "required": ["thought", "action"],
    14. }
    15. def run_gui_task(model, desktop, goal: str,
    16. max_steps: int = 30, max_retry: int = 2) -> dict:
    17. """
    18. goal: natural-language task description
    19. desktop: controlled desktop environment wrapping screenshot, element tree,
    20. and action execution
    21. """
    22. history, last_text, fail_count = [], "", 0
    23. for step in range(max_steps):
    24. # 2. Perceive: screenshot + element tree, combined with the trajectory for context
    25. screenshot = desktop.screenshot()
    26. a11y_tree = desktop.accessibility_tree() # accessibility info, used for disambiguation
    27. prompt = build_prompt(goal, screenshot, a11y_tree, history[-5:])
    28. # 3. Decide: constrain the model's output format with a structured schema
    29. action = model.decide(prompt, schema=ACTION_SCHEMA)
    30. # 4. Validate: block illegal actions outright so they never touch the real system
    31. if not validate_action(action, desktop):
    32. fail_count += 1
    33. history.append({"step": step, "action": action, "result": "invalid"})
    34. if fail_count >= max_retry:
    35. break
    36. continue
    37. # 5. Execute
    38. result = desktop.execute(action)
    39. # 6. Simple deduplication: repeating the same action on the same screen
    40. # is treated as a suspected hang
    41. text_sig = result.get("text", "")
    42. if action["action"] == last_text and text_sig == last_text:
    43. fail_count += 1
    44. else:
    45. fail_count = 0
    46. last_text = text_sig
    47. history.append({"step": step, "action": action, "result": result})
    48. if fail_count >= max_retry or result.get("status") == "failed":
    49. break
    50. # 7. Completion check: the model decides for itself whether the task is done
    51. if action["action"] == "done":
    52. return {"status": action.get("status", "unknown"), "steps": step + 1,
    53. "history": history}
    54. # 8. Fallback: hand control to a human on timeout or repeated failure
    55. return {"status": "timeout", "steps": max_steps, "history": history}

    If you need to switch between the graphical interface and the command line, you can introduce a simple execution strategy:

    1. def route_task(task, model) -> str:
    2. """
    3. Prefer the more deterministic execution path to reduce reliance on UI actions.
    4. - Tasks that can be done via the command line or a programmatic interface go straight to the CLI;
    5. - Only when the target system offers nothing but a GUI is it handed to the GUI agent.
    6. """
    7. if task["preferred_channel"] == "cli":
    8. return model.plan_cli(task) # generate and validate commands
    9. return run_gui_task(model, task["desktop"], task["goal"])

    A note on coordinates: The code above uses normalized coordinates, whose advantage is that they are independent of resolution. Another common approach is to number the candidate regions on the screenshot, have the model “pick a number,” and let the program convert it to coordinates. The two approaches can be combined.

    5. Building a Reliable Evaluation System

    Public benchmarks can indicate the overall trend, but what enterprises really care about is “how stable it runs on our own business systems.” It’s advisable to build your own evaluation at three levels:

    • Element level: capture 100–500 screenshots from real business interfaces and annotate the target elements by hand. Measure the “grounding hit rate” to quickly uncover a model’s weaknesses on specific interface styles.
    • Task level: select high-frequency, standardized business workflows (such as data entry, report export, and cross-system data transfer), define clear success criteria, and measure “task completion rate” and “average time.”
    • Resilience level: deliberately introduce anomalies—network interruptions, blocking popups, interface redesigns, expired logins—and measure the agent’s “recovery success rate” and “human-takeover rate.”

    Evaluation metrics should serve decisions, not just chase numbers:

    1. Element hit rate determines the usable scope;
    2. Task completion rate determines whether it can go into production;
    3. Time determines the per-task cost;
    4. Recovery ability determines the operational burden.

    6. Engineering Deployment: Security, Observability, and an Elastic Sandbox

    6.1 Security boundaries: lock the risk inside a sandbox

    Letting an AI directly operate a computer is essentially granting it control over a computing environment, so the security risk is far higher than for pure text generation. At a minimum, you should:

    • Isolate the environment: run it inside a dedicated virtual machine or containerized desktop, isolated from office endpoints and production networks;
    • Apply least privilege: grant only the accounts and file-directory permissions necessary to complete the task;
    • Intercept dangerous actions: operations such as deletion, fund transfers, and outbound sending must require secondary confirmation or be governed by an allowlist;
    • Handle sensitive information: manage sensitive data such as account credentials through a credential-management mechanism so they never appear in cleartext in screenshots or logs.

    6.2 Observability: leave a trail at every step

    Agent task chains are long and their decisions are unpredictable, so debugging can’t rely on “looking at the result” alone. It’s advisable to record each run’s step sequence, screenshot snapshots, model decision rationale, elapsed time, and token consumption; store them centrally via a logging service; and use monitoring and alerting to warn of abnormal fluctuations in failure rate and average time.

    6.3 An elastic sandbox: making the agent “ready on demand”

    GUI agents are naturally suited to running in the cloud. They need a large number of concurrent desktop sessions, graphics processing power, and storage resources—all of which can be built on a cloud platform’s general capabilities to form an elastic sandbox:

    • Host desktop sessions on a container platform, scaling in and out with task volume;
    • Store screenshots, operation recordings, and evaluation datasets in object storage;
    • Feed execution traces into a logging service and monitoring and alerting for end-to-end tracing;
    • Achieve environment isolation through a private network and access controls.

    This lowers the cost of building your own data center and desktop cluster, while allowing rapid scaling during task peaks.

    6.4 Human-agent collaboration: define a clear takeover mechanism

    Even the strongest model will encounter interfaces it “can’t handle.” A workable approach is to split the workflow into “automated execution + human fallback”:

    1. Set approvals at key points, such as operations involving funds or outbound sending;
    2. When failures exceed a threshold, automatically notify a human to take over;
    3. Turn human resolutions into new evaluation samples to feed the next round of optimization.

    7. A Rational View: Is This the Dawn of the AGI Era?

    “AGI has arrived” is a phrase heavy with promotional framing. A more rigorous judgment needs to separate two things: expanding the breadth of capability versus achieving reliable generality.

    On the positive side, models are expanding from “understanding content” to “interacting with the environment.” If a model can use a computer like a human, the barrier to automating the software ecosystem drops dramatically, and tens of thousands of systems without programming interfaces could be “taken over”—an important step toward a general-purpose agent.

    But several hurdles remain:

    • Long-tail scenarios: industry software interfaces vary wildly, and legacy systems lacking accessibility information are especially tricky;
    • Reliability: an end-to-end completion rate above 70% still means a substantial share of tasks need human fallback;
    • Cost: screen operation is essentially an “screenshot–reason–act” loop, and each step consumes visual tokens, so the cost of long tasks is not negligible;
    • Compliance and accountability: an operational error can directly affect real business data, and the boundaries of responsibility still need to be defined institutionally.

    A more accurate statement is this: agents are moving from “usable” to “good to use,” and artificial general intelligence is still on the road ahead.

    8. Conclusion

    From “seeing accurately” to “moving fast” to “going deep,” progress in screen understanding is redefining how humans interact with software. The interface, as the most universal of bridges, is being taken over by agents.

    For enterprises, the more pragmatic path at this stage is:

    1. First use the three-level evaluation to map the boundaries of capability;
    2. Then, with a hybrid “command line + graphical interface” strategy, pilot in high-frequency, standardized, low-risk scenarios;
    3. Meanwhile, back everything with a security sandbox, observability, and human-agent collaboration mechanisms, gradually expanding the scope of application.

    Each time the boundary of capability extends, the possibility of automating the digital world grows a little more.