arXiv(opens in a new tab)cs.AISep 2026Cited by 5 papers on PaperVantage

Manuscript Offprint

arXiv:2609.05374

CUA-Universe: A Scalable and Dynamic Environment for Hybrid GUI+CLI Agents

Haoting Shi, Wenhao Wang, Weicheng Fang, Yaozhong Liang, Tian Jin, Pengxiang Zhao, Guangyi Liu, Siheng Chen, Yanfeng Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Computer-use agents have advanced on benchmarks like OSWorld and AndroidWorld, but still act mostly through the GUI, often producing inefficient trajectories. Real-world computer work is hybrid, combining visual-state inspection with precise, high-throughput command-line operations, so capable agents must coordinate both modalities over shared application state. Yet scalable hybrid environments remain scarce because supporting both GUI and CLI over real applications typically requires substantial manual engineering for each application. Existing agents also struggle to use the two interfaces complementarily: CLI-native agents lack visual perception for tasks involving interface state or layout, while GUI-native agents are inefficient for operations better executed through commands.

We introduce CUA-Universe, a scalable environment-to-data pipeline that turns real desktop software into hybrid GUI+CLI environments. App-Forge adapts applications into reproducible VMs and command-line surfaces it discovers, wraps, or generates, scaling to 16 applications across diverse domains; Task-Weave synthesizes diverse hybrid tasks of controllable difficulty from reusable operations over seed files, turning each environment into a continuous task source; and Path-Steer rolls agents out along efficient hybrid paths and harvests verified trajectories for post-training. Training on this data shifts behavior from inefficient GUI interaction and brittle CLI scripting toward effective GUI+CLI orchestration, improving both success and efficiency for our 9B model on CUA-Verse (Score +39.3 pts; -37% steps, -60% tokens), OSWorld (SR +16.8 pts; -57% steps, -44% tokens), and OSWorld-MCP (Score +7.84 pts; -27% steps, -30% tokens). By converting real desktop software into hybrid environments and reusable training data, CUA-Universe provides a scalable path toward more capable and efficient computer-use agents. We will release our code and data.

1 Introduction

Computer-use agents (CUAs) have advanced rapidly, completing a broad range of real desktop and mobile tasks on benchmarks such as OSWorld and AndroidWorld (Xie et al. 2024; Rawles et al. 2025). Yet leading agents still interact predominantly through the graphical user interface (GUI), resulting in trajectories that are often unnecessarily

long (Abhyankar, Qi, and Zhang 2025) and increasingly brittle on extended workflows (Yuan et al. 2026). Real computer use, however, is inherently multi-modal: users rely on the GUI for visually grounded interaction, while using command-line tools, scripts, or APIs for precise and high-throughput operations. Capable CUAs should therefore operate in hybrid GUI+CLI environments, dynamically choosing the interface best suited to each subtask while maintaining a shared application state across modalities (Song et al. 2025; Yang et al. 2025; Jia et al. 2025).

Realizing such hybrid computer-use agents faces two coupled bottlenecks: scalable real-world environments and cross-modality orchestration. On the environment side, GUI-centric environments are costly to build and often require substantial manual engineering, while CLI-centric environments are easier to automate but lack access to visual layout and interface state. Building hybrid environments that support both modalities over the same application state therefore remains expensive and difficult to scale across applications. On the agent side, existing agents are typically optimized for one modality and struggle to use the two interfaces complementarily. CLI-native agents often lack visual perception and therefore resort to brittle scripts for tasks that depend on interface state or visual layout, while GUI-native agents can be inefficient for batch operations that a single command could complete. The deeper challenge is therefore orchestration: deciding when to switch interfaces and carrying task state across them, for example, locating a target through the GUI and then processing it through the CLI.

To address these bottlenecks, we introduce CUA-Universe, a real-software environment framework for synthesizing, evaluating, and training hybrid GUI+CLI computer-use agents. CUA-Universe organizes real software into a scalable environment-to-data pipeline with three components. App-Forge adapts a desktop application into a reproducible VM and exposes it through a command-line surface it discovers, wraps, or generates. Driven by a coding agent rather than per-application manual engineering, it scales CUA-Universe to 16 desktop applications across diverse domains. Task-Weave synthesizes GUI+CLI hybrid tasks of controllable difficulty from applications, tools, and seed states, turning each environment into a continuous source of tasks. Path-Steer guides agents toward efficient hybrid execution paths, using the CLI for batch and

*These authors contributed equally. †Corresponding authors.

Figure

Figure 1: Overview of CUA-Universe. (1) Scale: 16 real desktop applications spanning creative & interactive, office & knowledge, media & playback, and technical & web domains, each exposed through both a GUI and application-specific CLI interfaces. (2) Closed-loop environment-to-data pipeline: App-Forge adapts an application into a reproducible VM and the command-line surface it discovers, wraps, or generates (installer agent → reproducible VM + metadata → tool construction); Task-Weave synthesizes diverse hybrid GUI+CLI tasks at scale over seed files (operation abstraction → task instantiation → agentic refinement); and Path-Steer rolls agents out onto efficient hybrid paths and harvests high-quality, directly reusable trajectories for post-training. (3) Impact: training on this data shifts interaction behavior from inefficient GUI interaction and brittle CLI scripting toward effective GUI+CLI orchestration, producing more capable and efficient agents with consistent improvements across diverse benchmarks, including CUA-Verse (Score +39.3 pts; -37% steps, -60% tokens), OS-World (SR +16.8 pts; -57% steps, -44% tokens), and OSWorld-MCP (Score +7.84 pts; -27% steps, -30% tokens).

precise operations and the GUI for visually grounded ones, and harvests high-quality trajectories for post-training. Together, these components turn real software into scalable sources of hybrid tasks and training data, enabling agents to learn more effective cross-modality orchestration between GUI and CLI.

Our evaluation spans three complementary axes. First, to directly evaluate a model's ability to orchestrate GUI and CLI actions over a shared application state, we construct CUA-Verse, a held-out benchmark of 160 hybrid tasks built on the eight desktop applications introduced by CUA-Universe, with evaluation tasks disjoint from the training data. On CUA-Verse, our model improves success by roughly 3× over its identical base while using 60% fewer tokens, achieving the best open-source result. Second, we test whether this capability transfers beyond our benchmark to OSWorld, where our model gains +16.8 success-rate points over GUI-only execution while using fewer steps and tokens. Finally, on OSWorld-MCP (Jia et al. 2025), our model generalizes to a different tool-invocation interface unseen during training, improving Score by +7.84 points over its base. Together, these results show that CUA-Universe improves not only performance within the environments it constructs, but also hybrid interaction skills that transfer across tasks, benchmarks, and tool interfaces.

We summarize our contributions as follows:

  • A scalable environment-to-data pipeline. CUA-Universe turns real desktop software into hybrid

GUI+CLI agent environments through three components, App-Forge, Task-Weave, and Path-Steer, which cover application adaptation, task synthesis, and trajectory generation. Agent-driven construction allows the framework to scale efficiently to 16 real applications across diverse domains.

  • Scalable hybrid task synthesis and efficient trajectory generation. The framework discovers, wraps, or generates application-specific command-line interfaces, synthesizes GUI+CLI tasks of controllable difficulty from reusable operations and seed states, and steers agents toward efficient hybrid execution paths. This turns each environment into a continuous source of tasks and training trajectories while encouraging more effective cross-modality orchestration.

  • A benchmark for hybrid GUI+CLI orchestration. CUA-Verse provides 160 held-out hybrid tasks across eight desktop applications introduced by CUA-Universe, directly evaluating an agent's ability to coordinate GUI and CLI actions over a shared application state.

  • Strong performance and transfer. Our 9B model trained on CUA-Universe data achieves roughly 3× the success of its base model on CUA-Verse while using 60% fewer tokens. The learned hybrid interaction skills further transfer to OSWorld with a +16.8 point gain over GUI-only execution and generalize to the unseen tool interface of OSWorld-MCP.

References (56)