AI Agents Moving from Code Generation to Computer Use
This article examines the shift in general-purpose AI models from generating text and code to understanding screens and executing GUI operations. It breaks down three core capability areas—screen grounding, end-to-end task completion, and terminal-based engineering work—along with their benchmark logic and what the reported score improvements mean in practice. It also explains why screen understanding is the practical direction given that most software lacks APIs, outlines a minimal execute-verify-retry loop, and lists the governance constraints enterprises need before production deployment, while cautioning against equating benchmark gains with AGI.
1. From Writing Code to Operating a Computer: A Shift in Capability Focus
Over the past two years, the narrative around general-purpose large models has centered on code generation: completing functions, explaining errors, and producing scripts. But in real enterprise IT environments, the work that can be automated goes well beyond writing code. A large share of business actions happens on graphical interfaces—pulling up reports, filling out approval forms, moving data between multiple systems, reconciling discrepancies, and writing results back.
The capability focus of the new generation of general models has therefore shifted noticeably: from generating text and code to understanding screens and executing operations. When one cloud vendor released its latest general model, it did not put coding scores at the center of the announcement. Instead, it positioned the model as an operation-oriented model for graphical interfaces, emphasizing that it can observe the screen, click controls, fill in forms, and switch between applications like a human. The judgment behind this direction is that interface coverage is far higher than API coverage.
2. Three Core Capabilities and How They Are Evaluated
To understand the capability boundaries of this class of models objectively, “operating a computer” needs to be decomposed into several measurable sub-capabilities. Common evaluation approaches in the industry map roughly to three categories.
2.1 Screen Grounding
Screen grounding measures the ability to understand an interface and hit the target control. A typical evaluation provides a real business screenshot plus a natural-language instruction, asks the model to output the coordinates or region of the target control, and then checks whether it hit. Such benchmarks usually pick professional software interfaces with high resolution, dense controls, and small fonts, because these interfaces pose the greatest challenge for visual recognition and spatial localization.
Based on public information, the previous generation scored about 76.9% on this type of benchmark, while the new generation improved to 92.7%. The significance of these numbers is not the absolute values but that they cross a key threshold. When grounding accuracy stays in the low-to-mid seventies, one in every three or four actions on an interface fails, and any slightly long task chain becomes unusable. Once accuracy exceeds ninety percent, long workflows become engineering-feasible when combined with retry and verification mechanisms.
2.2 End-to-End Task Completion
A more realistic evaluation puts the model inside a real computer and has it complete multi-step tasks on its own: opening applications, retrieving information, entering data across systems, and saving results. This type of benchmark focuses on two dimensions: final completion rate and time taken. Public data shows the new generation’s task completion rate at about 72.6%, versus about 65.7% for the previous generation. More importantly, there is an efficiency difference: completing the same tasks took the previous generation about 75 minutes on average, versus about 40 minutes for the new generation.
The drop in time taken is larger than the improvement in completion rate, a point that is often overlooked. In real business operations, per-task duration directly determines concurrency scale and unit cost: halving the duration means the same compute budget can support twice the task throughput, and it also brings waiting time in human-machine collaboration back into an acceptable range.
2.3 Terminal and Engineering Tasks
The third category of capability happens in the command-line environment: completing software development, system configuration, log troubleshooting, and data analysis. Public results for the relevant benchmark show the new generation at about 57.9%, the previous generation at about 37.3%, and other general models of the same generation at about 55.8%. The value of terminal scenarios is that they are the real interface for operations and data work. Screen operation and command-line capability complement each other: the former covers GUI software with no API, the latter covers servers and engineering pipelines.
3. Why Screen Understanding Is the Right Direction
The conclusion is not complicated: the vast majority of software in the real world has no open API. Many internal enterprise systems were built over a decade ago, with missing API documentation, maintainers who have left, and high change risk, making the return on investment of rework very poor. But all software has an interface, which makes the interface the de facto universal interface.
A schematic version of the reasoning looks like this:
Automatable coverage ≈ share of systems with APIs + share of systems with only interfacesRework cost: API approach = high (requires vendor cooperation, regression testing)UI approach = low (no changes to the system under test)
It is worth stressing that the UI approach is naturally less stable than the API approach: control position changes, pop-up overlays, and loading timing can all cause failures. Engineering practice must therefore introduce verification and fallback rather than assume one-shot success. A minimal viable execution loop typically has four steps:
def run_task(goal, screen, max_retry=3):for i in range(max_retry):action = model.plan(goal, screen) # observe the interface, produce the next actionresult = executor.apply(action) # perform click/input/keyboard shortcutscreen = capture() # re-capture the screen, close the loopif verifier.satisfied(goal, screen): # verify the result, not the processreturn Truereturn escalate_to_human(screen) # escalate to a human when retries are exhausted, avoid silent failure
The key design point here is replacing process verification with result verification: do not trust the model’s own claim that it has finished; confirm the goal is met from the interface state. At the same time, set a retry limit and a human fallback to prevent infinite loops on a wrong path.
4. Engineering Constraints for Enterprise Adoption
Being usable is only the starting point. Whether a system can enter production depends on governance design. At minimum, the following areas should be covered.
- Least privilege: assign a dedicated account to the operation agent, grant only the permissions required to achieve the goal, and prohibit default use of an administrator identity.
- Full-chain auditing: retain records of every action, screenshot, and result so that runs are traceable and reviewable, meeting compliance check requirements.
- Sensitive information isolation: for interfaces involving personal information and business secrets, apply masking or partial-visibility policies to avoid feeding a full screen of information into the model context.
- Sandbox and canary rollout: first validate task success rate and duration distribution in an isolated environment, then ramp up gradually by business line.
- Stability fallback: for high-frequency tasks, establish a dual channel of “UI operation + API call,” preferring the API where one exists and using UI operation as a supplement.
- Observability: use general-purpose cloud services such as log services, monitoring and alerting, and container platforms to collect metrics like success rate, average duration, and retry rate, forming a continuous optimization loop.
5. Taking the “AGI Has Arrived” Claim Rationally
The jump in benchmark scores is real engineering progress, but equating it directly with the arrival of artificial general intelligence does not hold up logically. The limitations of current benchmarks are clear: task environments are relatively fixed, step counts are limited, and there is a lack of the ambiguity and exception handling found in real business. Meanwhile, long-tail cases, permission constraints, and accountability in production environments are far from reflected in evaluations.
A more pragmatic positioning is that general models are becoming automation executors at the interface layer. They turn cross-system operations that previously had to be done manually into flows that can be orchestrated, monitored, and rolled back. For enterprises, the real gains do not come from any single score but from embedding this capability into existing process governance—defining which steps can run automatically, which require human confirmation, and how to exit safely on failure.
