Manuscript Offprint

arXiv:2610.22507

RealCLI: Toward a Unified Evaluation of Human-Agent Collaboration for CLI Agents

Yunqi Liu, Peiyu Wang, Bingli Wang, Leo Luo, Xuanwu Song, Xudong Ma, Hongxin Li, Yaxin Du, Weicheng Gu, Fanglin Xu, Yi Xing, XiangLong Liu, Jujie He, Zhange Zhang, Huatong Song, Zhaoyi Li, Deyang Kong, Chuan Hao, Peihao Wu, Mingjie Tang, Ran Tao, Jian Yang, Wayne Xin Zhao, Bryan Dai

Yunqi Liu 3∗^{3*} Peiyu Wang 3∗^{3*} Bingli Wang 3∗^{3*} Leo Luo 3∗^{3*} Xuanwu Song 3∗^{3*} Xudong Ma 3^{3} Hongxin Li 3^{3} Yaxin Du 3^{3} Weicheng Gu 3^{3} Fanglin Xu 3^{3} Yi Xing 3^{3} XiangLong Liu 1^{1} Jujie He 3^{3} Zhange Zhang 3^{3} Huatong Song 3^{3} Zhaoyi Li 3^{3} Deyang Kong 3^{3} Chuan Hao 3^{3} Peihao Wu 3^{3} Mingjie Tang 3^{3} Ran Tao 3^{3} Jian Yang 1†^{1\dagger} Wayne Xin Zhao 2^{2} Bryan Dai 3^{3}

1^{1}Beihang University

2^{2}Renmin University

3^{3}IQuest Research

GitHub

Hugging Face

ABSTRACT

Command-line interface (CLI) agents increasingly execute longer-horizon tasks, yet existing benchmarks either assume that user instructions remain fixed throughout execution or evaluate task outcomes without capturing runtime collaboration quality. In this paper, we present REALCLI, a paired benchmark that unifies the evaluation of task execution and human-agent collaboration quality on realistic CLI tasks. To comprehensively measure collaboration, REALCLI builds a five-dimensional framework, operationalized into 22 sub-dimensions and 51 interaction scenario templates. REALCLI provides two modes for paired comparison: REALCLI-EXEC supplies complete specifications upfront, whereas REALCLI-COLLAB introduces a scripted user that delivers progressive information, corrections, constraint revisions, and authorization decisions. Evaluations reveal profound capability gaps in frontier agents: the best configuration attains an average score of only 49.2%, and when evaluated by the joint collaboration score ( JcollabJ_{collab}), the peak performance reaches merely 37.6%. These results show that task effectiveness diverges sharply from collaboration quality, with models consistently struggling in steerability, trust calibration, and safety boundary management. REALCLI provides a rigorous, reproducible foundation for measuring and advancing collaborative CLI agents.

1 INTRODUCTION

Advances in the programming capabilities of large language models are turning coding agents from tools that offer local suggestions into actors that can directly manipulate computing environments. Through command-line interfaces, agents can work with code, programs, and system resources to complete complex software engineering, operations, and data processing workflows (Yang et al., 2024; Wang et al., 2025). Representative benchmarks such as SWE-bench and Terminal-Bench extend evaluation from repository-level issue resolution to broader command-line tasks (Jimenez et al., 2023; Merrill et al., 2026). Despite varied tasks, these benchmarks follow similar evaluation protocols in which agents receive relatively complete and fixed specifications, execute autonomously without user intervention, and are evaluated by the final code or environment state (Bin et al., 2026). Recent work further extends this paradigm to cross-file development and building complete projects from scratch, requiring agents to tackle more complex tasks independently over longer horizons with less user involvement (Dong et al., 2026; Deng et al., 2025; Huang et al., 2026; Feng et al., 2026).

However, long-horizon autonomous task execution does not eliminate the need for user involvement but makes sustained coordination increasingly important (Feng et al., 2026; Wu et al., 2026). First, user goals in practice rarely begin with complete specifications that remain fixed (Vijayvargiya et al., 2025). As execution proceeds, users may add information, revise constraints, and decide whether to authorize high-impact actions (Raghavendra et al., 2026; Ji et al., 2026). Second, existing benchmarks focus primarily on task completion and offer limited evaluation of the execution process.

∗^{*} Equal contribution.

†^{\dagger} Corresponding author.

Figure

Figure 1: A COLLAB episode in REALCLI. Top: a user script releases the specification in slices and schedules probes. Middle: the agent guards a planted secret but drops a required feature on an unverified claim. Bottom: the verifier scores task outcome; checklists score collaboration.

They rarely assess whether users understand and intervene in execution, whether agents verify state and recover from failures, or whether agents accurately disclose risks and preserve safety boundaries (Bin et al., 2026). Although prior work incorporates user interaction into task execution (Feng et al., 2026; Raghavendra et al., 2026; Wu et al., 2026), it typically treats interaction as part of task completion rather than a separate evaluation target, or focuses on specific collaborative behaviors such as instruction following. Existing research still lacks a unified CLI evaluation framework that covers both task effectiveness and multi-dimensional collaboration quality, capable of systematically answering the following two questions under identical tasks and execution environments:

RQ1. With user participation, what task outcomes and collaboration quality do frontier CLI agents achieve, and how are the two related?

RQ2. On the same CLI tasks, how do task outcomes, behavioral patterns, and failure modes differ between autonomous execution and human–agent collaboration?

To investigate the above questions, we first construct a five-dimensional collaboration framework, avoiding reducing collaboration to dialogue turns or subjective impressions. The dimensions are grounded in human-computer interaction (HCI) theory (Amershi et al., 2019; Shneiderman, 2020). Specifically, Understandability concerns whether agents make plans, states, and outcomes visible to users; Steerability concerns whether users can intervene and redirect execution; Observation and Recovery examines whether agents verify feedback and recover from failures; Trust Calibration concerns whether agents faithfully communicate their capability boundaries and potential risks; and Safety and Risk Awareness examines whether agents preserve user control before destructive, sensitive, or unauthorized operations. To ground these dimensions in real-world CLI usage, we analyze recurring collaboration needs and failure patterns in anonymized interaction logs, distilling 22 sub-dimensions that are operationalized through 51 interaction scenario templates and six trajectory-level checks. Each scenario specifies the behavior to be evaluated and the evidence required, making collaboration quality observable and auditable.

We further introduce REALCLI, a paired benchmark that evaluates both task execution and collaboration quality on realistic CLI tasks. REALCLI contains 101 tasks spanning 10 CLI categories and 52 subdomains, from local operations to complex workflows coordinating multiple constraints and deliverables. Each task has two modes sharing the task goal, environment, and verifier: REALCLI-EXEC gives the complete specification upfront, while REALCLI-COLLAB introduces a scripted user during execution. In REALCLI-COLLAB, information slices release the specification progressively, and interaction probes trigger clarification, correction, constraint-revision, and authorization.

Table 1: Comparison of REALCLI with representative CLI-agent benchmarks across environment-level verification, runtime user participation, paired evaluation, and five collaboration dimensions. Marks reflect each benchmark's stated evaluation scope. Ver.: environment-level verification. User: runtime user participation. Pair: paired evaluation of autonomous and user-interactive modes on matched task instances. Und: understandability. Ste: steerability. Obs: observation and recovery. Tru: trust calibration. Saf: safety boundary management. Legend: √ explicitly evaluated, (√) partially or secondarily evaluated, and ✗ not evaluated.

BenchmarkVer.UserPairUndSteObsTruSaf
SWE-bench (Jimenez et al., 2023)✓✕✕✕✕✕✕✕
Ambig-SWE (Vijayvargiya et al., 2025)✓✓✓✕✓✕✕✕
Terminal-Bench (Merrill et al., 2026)✓✕✕✕✕(✓)(✓)✕
LongCLI-Bench (Feng et al., 2026)✓(✓)(✓)✕(✓)(✓)✕✕
Dialogue SWE-Bench (King & Flanigan, 2026)✓✓✕(✓)✓✕✕✕
SWE-Together (Wu et al., 2026)✓✓✕✕(✓)✕✕✕
SWE-INTERACT (Raghavendra et al., 2026)✓✓✓✕✓✕✕✕
UnderSpecBench (Ji et al., 2026)✓✕✕✕(✓)✕✕✓
DeepSWE (Huang et al., 2026)✓✕✕✕✕(✓)✕✕
Long-Horizon-Terminal-Bench (Li et al., 2026)✓✕✕✕✕(✓)(✓)✕
ICAE-Bench (Peng et al., 2026)✓✓(✓)✕✓✕✕✕
SWE-Touch (Tan et al., 2026)✓✓✓✕(✓)✓✕✕
REALCLI (ours)✓✓✓✓✓✓✓✓

scenarios according to execution states. Both modes judge task outcomes from terminal environment states; REALCLI-COLLAB additionally scores five-dimensional collaboration behaviors from interaction traces and environment evidence. This pairing enables direct comparison between autonomous and collaborative execution, revealing not only how user participation changes task outcomes, but also when task effectiveness and collaboration quality align or diverge.

We systematically evaluate 33 configurations composed of 11 frontier models and three mainstream agent harnesses. Our main findings are as follows. First, REALCLI poses a substantial challenge to frontier agents. The best configuration attains an average score of only 52.7%52.7\%, and task effectiveness diverges sharply from collaboration quality, as high task scores do not imply high collaboration quality. Second, user interaction is not a reliable gain. Overall pass rates remain essentially unchanged, benefits vary by task type and model, and the additional execution effort does not consistently convert into task progress. Third, collaboration ability is consistently imbalanced across the five dimensions. Agents perform relatively well on understandability and on observation and recovery, but remain weak on steerability, trust calibration, and safety and risk awareness, and models with identical task success rates can exhibit sharply different collaboration profiles. These results suggest that the next advance of CLI agents depends not only on stronger autonomous execution but also on understandable, steerable, and trustworthy collaboration. Looking ahead, REALCLI provides a reproducible foundation for measuring and improving this capability.

References (23)