groundy
developer tools

Terminal vs Browser for AI Agents: What a Hybrid GUI+CLI Benchmark Shows

CUA-Universe preprint shows hybrid GUI+CLI agents cut steps 37% and tokens 60% on 16 apps. Audit your eval stack: screenshot-only benchmarks mismeasure tasks with terminal.

14 min···4 sources ↓

When a desktop application exposes both a GUI and a terminal, a computer-use agent’s performance depends heavily on which surface it acts through. That is the core claim of CUA-Universe, an author-reported, unreplicated preprint (arXiv 2609.05374, observed 2026-09-07) reporting that a 9B model, when applications are wrapped as hybrid GUI+CLI environments, gains 39.3 score points on the authors’ CUA-Verse benchmark while using 37% fewer steps and 60% fewer tokens, with further gains on the public OSWorld and OSWorld-MCP benchmarks. No third party has evaluated these numbers. The design question they raise is worth taking seriously anyway: which surface should each action route through, and who gets to grant shell access.

What does CUA-Universe actually ship?

CUA-Universe is an environment-to-data pipeline that converts real desktop software into reproducible evaluation environments where an agent can act through either the GUI or a command-line interface on the same task. According to the preprint, the pipeline has three named components, and the one that matters most for practitioners is App-Forge. App-Forge adapts applications into reproducible VMs and command-line surfaces, which is what makes an agent evaluation deterministic: same starting state, same software version, no host-machine drift between runs. The other two components feed the training-data side. Task-Weave synthesizes diverse hybrid tasks of controllable difficulty from reusable operations over seed files, and Path-Steer steers rollouts along efficient hybrid paths and harvests verified trajectories for post-training.

App-Forge’s job is worth pausing on, because it quietly defines the ceiling of the whole approach. The authors describe it as discovering, wrapping, or generating command-line surfaces for the target applications. Those are three very different operations. “Discovers” means the application already ships a CLI and the pipeline finds it. “Wraps” means the application has some programmatic entry point that the pipeline dresses up as a command-line interface. “Generates” means the pipeline synthesizes a CLI where none existed, presumably against the application’s internal APIs or file formats. The current scale is 16 applications, and the paper’s abstract gives no breakdown of how many of the 16 fell into each bucket.

That breakdown matters for anyone trying to replicate the result on their own stack. If most of the 16 surfaces were generated, then the headline numbers partly measure how good the generated CLI is, not how good hybrid routing is. A well-designed generated command can collapse a twelve-click GUI workflow into one invocation; the agent’s improvement then reflects the wrapper author’s API design as much as the model’s behavior. This is not a criticism of the paper so much as a scoping note: App-Forge is itself a contribution, and its output quality is entangled with every downstream metric.

What are the headline numbers, and who reported them?

The preprint reports that a 9B-parameter model trained on CUA-Universe data improves CUA-Verse scores by 39.3 points while cutting steps by 37% and token consumption by 60%, and improves the public OSWorld benchmark by 16.8 success-rate points (steps down 57%, tokens down 44%) and OSWorld-MCP by 7.84 score points (steps down 27%, tokens down 30%). The abstract attributes all of these deltas to training on CUA-Universe data without specifying the comparison condition. Every one of those figures comes from the same source: the authors’ arXiv paper, one author-run evaluation across three benchmarks, two of them public, with the CUA-Verse environments built by the authors’ own pipeline. As of 2026-09-07, there is no independent replication anywhere in the public record.

That provenance does not make the numbers false. It does tell you what kind of claim they are. The OSWorld and OSWorld-MCP deltas carry more weight than the CUA-Verse one, because they were measured on established public benchmarks rather than the authors’ own suite. Even so, a self-reported delta from a single author-run evaluation is a hypothesis about direction and rough magnitude, not a result you can put in a procurement deck. The direction is plausible on first principles: a CLI action is typically one model call that either succeeds or returns a parseable error, while a GUI action is a screenshot, a coordinate prediction, a click, and another screenshot to verify. Token savings follow mechanically from not serializing screenshots; step savings follow from collapsing multi-click sequences into single commands. The 60% token reduction is the least surprising number in the paper. The 39.3-point score jump is the one that needs an outside lab.

One more scoping detail: “hybrid” in this paper means per-action surface choice inside a single environment. The agent decides, action by action, whether to click or to run a command. It does not mean a new model architecture, a new modality, or two agents cooperating. If you skimmed the abstract and pictured something more exotic, recalibrate: the contribution is the environment and the routing data, not the model.

Why do single-surface benchmarks mismeasure tasks with a terminal shortcut?

Screenshot-only benchmarks conflate two different difficulties: deciding what to do, and doing it through pixels. Any task that has a terminal shortcut lets an agent skip the second difficulty entirely, which means a GUI-only score for that task measures the wrong thing.

The eval-validity argument goes like this. Benchmarks like the screenshot-driven computer-use suites grade an agent on completing tasks in a desktop environment where the only available interface is the screen. For a task like “find all log files larger than 100MB and archive them,” the GUI path is a file manager, manual sorting, and drag-and-drop; the CLI path is one find invocation piped to tar. If your benchmark only permits the GUI path, you are measuring the agent’s ability to operate a file manager, not its ability to accomplish the goal. The preprint’s efficiency deltas support this direction: when agents were allowed to route, steps dropped 37% and tokens 60%, which is consistent with agents substituting cheap command invocations for expensive click sequences.

Two caveats keep this from being overclaimed. First, the “screenshot benchmarks overstate difficulty” framing is an inference from the efficiency numbers, not a claim the paper tests directly; it does report gains on the public OSWorld and OSWorld-MCP suites, but those runs are author-executed, and no independent group has attached a shell to a GUI-only benchmark and published the delta. Second, overstatement only applies to the subset of tasks with a viable terminal shortcut. Plenty of real desktop work has no CLI equivalent: editing an image mask in a graphics program, dragging elements in a slide deck, interacting with a canvas that renders no text. For those tasks, screenshot-only evaluation is not overestimating anything; pixels are the job.

The practical consequence lands on two groups. Teams evaluating computer-use agents should discount screenshot-only benchmark scores for any workload in their target task mix that has a terminal shortcut, because the deployed agent will not face the constraint the benchmark imposed. Teams building agents should treat per-action routing as a first-class capability rather than an afterthought, because the gap between “agent that can only click” and “agent that routes” is, per the author-reported numbers, a 39.3-point delta on CUA-Verse.

When should an action route through the CLI versus the GUI?

Route through the CLI whenever the target application exposes a command-line surface, the action is expressible as a command, and your security policy permits shell execution. Route through the GUI when the GUI is the only system of record, when no stable CLI exists, or when the task is inherently visual. The table below operationalizes that against the decision axes a builder actually faces.

SituationRoute throughWhyWatch for
App ships a stable CLI; policy allows shellCLIOne call replaces a click sequence; parseable errors; no screenshotsGenerated or wrapped CLIs may not match vendor docs
Bulk or batch operation (rename N files, export all records)CLIGUI cost scales with N; command cost does notConfirm the command’s exit code actually reflects success
GUI is the only system of record (state lives in the UI)GUICLI may bypass validation or write nothing the app readsSilent divergence between UI state and on-disk state
Bespoke internal app with no CLIGUI, or build a wrapperApp-Forge had to discover, wrap, or generate all 16 of its surfacesWrapper maintenance becomes your problem
Locked-down environment prohibiting shell accessGUINo choice; the permission boundary decides for youDo not let the agent escalate to whatever shell it finds
Visual judgment task (layout, masking, canvas work)GUIThe task is the pixels; there is no command equivalentNone; this is the GUI’s home turf

The middle rows deserve emphasis because they are where teams get burned. “GUI is the only system of record” is common in enterprise software: the application validates input in the UI layer, and writing directly to its files or database produces state the application either ignores or corrupts. An agent that routes around the GUI in that environment has not found a shortcut; it has found a way to make the audit trail lie. And the bespoke-app row is the quiet constraint on the whole research direction. App-Forge’s 16 applications were selected partly because surfaces could be produced for them. Your internal line-of-business tool from 2011 was not in that set, and its “CLI” may be a prayer and a socket.

Who grants shell access, and what does vendor governance actually cover?

Shell access is a separate permission boundary from GUI interaction, and today that boundary is yours to build: none of the managed agent platforms in the current evidence models shell access as a distinct, interface-level permission scope. This distinction is the article’s most consequential inference, so it is worth stating precisely what is sourced and what is not.

What is sourced: the Microsoft Agent 365 overview describes governance well beyond billing, including a centralized agent registry, lifecycle management and access control through Microsoft Entra, compliance and data-risk safeguards through Microsoft Purview, and runtime threat protection through Microsoft Defender. The product reached general availability for the Commercial segment on May 1, 2026, on a per-user licensing basis, and at least one user must hold a qualifying license to enable it. Microsoft’s agents admin guide states that Copilot Chat is available at no additional cost for Microsoft Entra accounts with a Microsoft 365 or Office 365 subscription, and that agents that incorporate the organization’s data are billed on metered consumption. Office Agent’s FAQ describes a Frontier early-access rollout limited to Microsoft 365 Personal, Family, and Premium plans, English-only, for US-based accounts in the preview phase.

What is not sourced: none of these pages say anything about granting or denying an agent shell access as a distinct scope from clicking buttons. The claim that an agent allowed to open a terminal is a different security scope than one clicking buttons is an inference from how operating systems work, not a fact any of these vendors states. Treat it as a design requirement you bring to the platform, not a feature the platform gives you.

The billing detail has its own second-order effect on the routing decision. If CLI routing cuts token consumption by anything like the author-reported 60%, metered-cost models favor the terminal path in a way per-seat licensing does not. A team paying per action or per unit of consumption gets a direct invoice reduction from routing; a team on flat per-user licenses gets the latency and reliability benefits but no line-item change. When you model the cost of a hybrid agent, the licensing structure determines whether efficiency gains show up as savings or just as headroom.

What can hybrid evals measure that screenshot-only benchmarks cannot?

A hybrid environment measures three things a single-surface benchmark structurally cannot: routing quality, per-surface failure attribution, and the true cost of a task when the agent is free to choose its interface. Screenshot-only suites measure one thing well, which is pixel-level operation, and answer one question: can the agent do the task the hard way?

Routing quality is the new signal. When both surfaces are available, the environment can log not just whether the task succeeded but whether the agent picked the right surface for each action. An agent that clicks through a file manager to do what grep does in one call is exhibiting a measurable inefficiency that a GUI-only benchmark scores as success. If CUA-Verse’s score function rewards efficient surface choice, and the abstract does not specify how it scores, then its +39.3 delta is partly a routing-quality measurement wearing a success-rate costume.

Failure attribution is the quieter win. In a GUI-only run, a failure could mean the agent misread the screen, mispredicted coordinates, picked the wrong UI path, or never understood the task. In a hybrid run with a deterministic VM substrate, you can compare the agent’s CLI attempts against its GUI attempts on the same task and separate comprehension failures from motor failures. That distinction is exactly what you need when deciding whether to fix your agent with more vision training or with a bigger tool surface.

The third measurement, true task cost, is what turns the eval into a procurement tool. Tokens and wall-clock steps on a hybrid run approximate what the task will cost in production, where the agent will also have both surfaces available. A GUI-only benchmark’s step count approximates what the task costs if you deploy a screenshot-only agent. Comparing the two, per the author-reported figures, is a 37% step difference and a 60% token difference, which is the kind of number that changes a build-vs-buy calculation if it survives replication.

What should you verify before adopting any of this?

Verify three things before letting this paper change your eval stack or your agent architecture: independent replication of the headline numbers, whether your target applications have producible CLI surfaces at all, and whether your security posture permits the shell access that makes hybrid routing worthwhile.

On replication: as of 2026-09-07, every evaluation of CUA-Universe was run by its authors: one author-run evaluation across three benchmarks, their own CUA-Verse plus the public OSWorld and OSWorld-MCP, with zero independent replications. The numbers are internally consistent and directionally plausible, and that is the full extent of the evidence. If an independent group publishes a replication on OSWorld or a CUA-Verse run with a public model, the deltas become either results or a cautionary tale. Until then, run your own test: take a representative slice of your actual task mix, instrument a routing agent against a screenshot-only agent, and measure steps and tokens on your own environment. The preprint’s architecture for doing this, VM-packaged apps with dual surfaces, is reproducible in principle even if its specific wrappers are not yet public.

On surface availability: App-Forge scaled to 16 applications by discovering, wrapping, or generating their CLIs, which tells you the surface does not always exist for free. Audit your own stack before assuming transferability. Commercial off-the-shelf tools with documented CLIs are the easy case. Internal tools, thick clients, and anything whose state lives exclusively in its UI are the hard case, and for those the honest options are building a wrapper you will then own forever, or accepting the GUI path and its costs.

On security posture: if your environment prohibits arbitrary shell execution, hybrid routing’s efficiency gains are mostly theoretical for you, because the CLI path is where the preprint’s savings concentrate. Conversely, if you do open a shell for your agent, you have created a permission scope that the managed platforms’ governance controls, per Microsoft’s Agent 365 and agents admin documentation, do not model. Sandboxing, command allowlists, and per-action audit trails are the price of the 60% token cut.

The practical verdict holds even under maximum skepticism about the numbers. Route actions through the CLI whenever the application exposes one and policy permits it, because the mechanism behind the efficiency gains, one parseable command replacing a screenshot-click-verify loop, does not depend on the exact size of the delta. Discount screenshot-only benchmark scores for any task with a terminal shortcut, since the benchmark is measuring a constraint your production agent will not have. And treat the shell as its own permission scope with its own controls, because no vendor’s current governance model will do it for you. The strongest limitation remains the evidence base itself: one author-reported preprint, one author-run evaluation across three benchmarks, two of them public, and 16 applications whose VMs and surfaces the authors produced. The routing question is real. The 39.3 points are, for now, a claim awaiting a second lab.

Frequently Asked Questions

How does the billing model for Microsoft Agent 365 affect the financial case for CLI routing?

Agent 365 uses per-user licensing, so efficiency gains from CLI routing do not reduce the license cost, only latency. In contrast, agents accessing shared tenant data like SharePoint are billed on metered consumption, where the author-reported 60% token reduction directly lowers the invoice.

What is the current availability status of Office Agent for non-US users?

Office Agent is currently in Frontier early access for Microsoft 365 Personal, Family, and Premium plans, but it is restricted to English language and US-based accounts. Users in other regions or languages cannot access the preview phase.

Why might the 39.3-point score improvement in CUA-Universe be misleading for internal software?

The 16 applications in the benchmark had CLIs that were discovered, wrapped, or generated by the authors’ App-Forge pipeline. Internal tools often lack stable CLIs, so the efficiency gains may reflect the quality of the generated wrapper rather than the model’s routing ability, making direct transfer to bespoke software unreliable.

Does Microsoft’s current governance model include specific permissions for agent shell access?

No. Microsoft Agent 365 governance covers registry, lifecycle, and access control via Entra, but it does not define shell access as a distinct permission scope separate from GUI interaction. Teams must build their own sandboxing and command allowlists to manage terminal permissions.

sources · 4 cited

  1. Microsoft Agent 365 overviewlearn.microsoft.comvendoraccessed 2026-09-07
  2. Agents admin guide for Microsoft 365learn.microsoft.comvendoraccessed 2026-09-07
  3. Frequently Asked Questions about Office Agentsupport.microsoft.comvendoraccessed 2026-09-07