HybridCUA: Learning to Orchestrate GUI and CLI for Computer-Use Agents
Tongbo Chen, Junbo Niu, Zhengxi Lu, Niu Lian, Fei Tang, Yuchen Yan, Yike Hong, Yong Du and 3 others
Zhejiang University · Peking University · Tsinghua University
Published September 29, 2026 · on the feed September 30, 2026 · ▲ 43 · arXiv 2609.38008
The abstract
Computer use agents (CUAs) have demonstrated strong capabilities in completing digital tasks. However, existing CUAs either rely solely on graphical user interface (GUI) interactions, which are often inefficient and error prone, or augment GUI interactions with application specific APIs or tools, which require substantial engineering effort and are difficult to scale across applications. We argue that the next generation of CUAs should combine GUI interactions with the command line interface (CLI), leveraging the generality of the GUI and the efficiency of shell commands. A critical challenge, however, is that current models do not know when or how to use the CLI during task execution. To address this challenge, we develop a data construction pipeline that produces three types of trajectories: GUI only, CLI only, and interleaved GUI and CLI trajectories. This pipeline results in HybridCUA-8K, containing 5K hybrid trajectories and 3K verified RLVR tasks. Building on these data, we propose a training framework with two stages: supervised fine tuning on the constructed trajectories, followed by reinforcement learning with our CLI aware rewards that encourages agents to use the CLI selectively and reliably. Experiments show that HybridCUA-9B achieves 53.6% accuracy on OSWorld, improving over the base model by 14.8 percentage points, and improves performance on WindowsAgentArena by 4.0 percentage points. These results demonstrate the effectiveness and cross platform generalizability of the hybrid GUI and CLI paradigm for computer use agents.
The Brief
2:48A short podcast summary of the paper. Written and voiced by AI.
Transcript
HybridCUA. Learning to Orchestrate GUI and CLI for Computer-Use Agents. By Tongbo Chen and ten others, from Zhejiang University, Peking University, and one other institution. Published on the twenty-ninth of September. Its code repository is worked out: about two thousand five hundred source files, with a readme and a licence.
Computer-use agents, or CUAs, have shown strong ability at completing digital tasks, and they tend to take one of two routes. Some rely only on the graphical user interface. That is general, but often inefficient and error prone. Others add application-specific APIs or tools on top of the GUI. That can be efficient, but it takes substantial engineering effort for each application and is hard to scale across many of them.
The authors argue for a third route. The next generation of CUAs, they say, should combine the GUI with the command line, taking the generality of one and the efficiency of shell commands from the other. The catch is that current models do not know when to reach for the command line during a task, or how to use it once they do. HybridCUA is an attempt to teach both.
It starts with data. A construction pipeline produces three kinds of trajectory: GUI only, CLI only, and interleaved, where the two alternate within one task. The result is HybridCUA-8K, containing five thousand hybrid trajectories and three thousand verified tasks for reinforcement learning with verifiable rewards. Keeping the single-mode trajectories alongside the interleaved ones means the data covers all three ways of working, so a model can see a task done through the interface alone, through the shell alone, and through a mix of the two. The verified tasks are what the later reinforcement learning stage draws on.
Training then runs in two stages on that data. First, supervised fine-tuning on the constructed trajectories. Second, reinforcement learning with rewards the authors call CLI aware, which encourage the agent to use the command line selectively and reliably. Selectively is the operative word: the aim is not more shell use, but shell use at the points in a task where it belongs.
The trained model, HybridCUA-9B, reaches fifty-three point six percent accuracy on OSWorld. That is fourteen point eight percentage points above the base model it was trained from. On a second platform, WindowsAgentArena, it improves performance by four percentage points. The two results differ in size, but they point the same way, on two different operating environments. The authors read the pair of results as evidence that the hybrid approach is effective, and that it generalises across platforms.
Put plainly, the graphical interface offers reach and the shell offers speed, and the missing skill was knowing when to switch between them. HybridCUA treats that as something to be learned rather than hand-built for each application: shown in trajectories that mix the two, then rewarded in training when the command line is used selectively and reliably. The open question it answers is less whether agents should use a terminal than when.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Clicking works everywhere and fails slowly. A shell is right there. Why doesn't it help?
You build agents that use a computer the way people do, by clicking and typing on the screen. It works almost everywhere, but long click sequences are slow and one mistake cascades.
The road ahead
- 1 · The problem ~6 min Screen-clicking agents work almost anywhere but are slow and fragile, and simply handing them a shell makes them worse, not better.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min HybridCUA teaches an agent when and how to mix screen actions with shell commands, using mixed training data and two shell-aware rewards.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Build three kinds of trajectory, fine-tune the model on them, then refine it with reinforcement learning using shell-aware rewards on verified tasks.
- 6 · The experiment ~6 min You’ll guess: On OSWorld, by how many percentage points did HybridCUA-9B improve over the base model it was trained from?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.