CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agents

Zhanbo Hua, Yifan Yao, Weihao Xie, Yongchi Zhao, Minghao Liu, Ruizhi Qiu, Zhewei Huang, Zun Wang, Yiyan Ji, Yunhai Ye, Letian Zhu, Xinping Lei, Han Li, Zhiyuan Ma, Zili Wang, Zhaoxiang Zhang, Jiaheng LiuarXiv 2026

TL;DR

CLI-Universe is a principled synthesis engine that generates high-fidelity training data for terminal agents by grounding tasks in real-world technical materials and enforcing rigorous, multi-stage executable verification. By prioritizing data quality over raw volume, the authors demonstrate that a 32B parameter model fine-tuned on just 6,000 high-signal trajectories can outperform models ten times its size on complex command-line benchmarks.

What Problem Does This Paper Address?

Large Language Model (LLM) agents are increasingly capable of navigating terminal environments to perform tasks like software debugging, system administration, and security analysis. However, training these agents requires high-quality, executable data—a resource that is currently scarce.

Existing data synthesis methods typically "retrofit" existing artifacts (like GitHub repositories or documentation) into tasks. This often results in "shallow" training data: instructions are ambiguous, execution paths are short, and the tests used to verify success are brittle. Essentially, these pipelines scale the quantity of data sources but fail to scale the quality of the learning signal. The authors argue that this lack of rigorous supervision is the primary bottleneck preventing open-source models from matching the performance of proprietary systems like Claude or GPT-4.

Methods

CLI-Universe shifts from a "retrofitting" approach to an "inside-out" design. The pipeline consists of three main stages:

  1. Task Blueprint Construction: Instead of starting with a random code snippet, the engine seeds tasks using a multi-dimensional taxonomy: Domain (e.g., File Operations), Skill Type (e.g., Algorithmic), Capability (e.g., Error Recovery), and Engineering Pillar (e.g., DevOps). A research agent then performs "deep research" across real-world technical materials (docs, issues, tutorials) to ground these abstract requirements in realistic tools and constraints.
  2. Environment Realization: Validated blueprints are instantiated into Dockerized environments. The system either retrieves real-world assets or synthesizes them from scratch to ensure the environment exactly matches the task's needs, including the injection of controlled faults for debugging scenarios.
  3. Executable Verification: This is the most critical stage for ensuring data quality.
  4. Role-Separated Agents: One agent creates the test suite while another (without seeing the tests) creates the solution.
  5. Hint-Conditional Filtering: The system provides an internal "hint" to the solution agent. If a separate agent can solve the task without the hint, the task is deemed too trivial and is discarded.
  6. Fail-to-Pass Checking: The engine ensures the test suite fails on the initial environment and passes only after the solution trajectory is executed.
Figure 1: Overview of CLI-Universe. Step 1 (Query Construction): A structured taxonomy seeds diverse task candidates; each is grounded through iterative deep research and compiled into a blueprint. Step 2 (Environment Synthesis): Blueprints are realized into Docker containers with materialized assets and verified runtime. Step 3 (Validation & Filtering): A test agent and a solution agent independently verify the task; only instances passing rubric-gated tests and fail-to-pass checks are retained.

This rigorous filtering is highly selective; approximately two-thirds of all candidate tasks are discarded, leaving only the most "high-signal" examples.

Datasets

The authors introduce CLI-Universe-6K, a distilled dataset of 6,000 high-fidelity trajectories generated by their engine.

For evaluation, they use:

  • Terminal-Bench 1.0 & 2.0: The primary benchmarks for terminal-based agentic tasks.
  • BFCL v4 & VitaBench: Out-of-domain benchmarks used to test how well the training generalizes to function calling and multi-turn tool use.

Key Insights and Ideas

  • Data Efficiency is King: The paper demonstrates a massive leap in data efficiency. Models trained on CLI-Universe data match or exceed baselines while using 1–2 orders of magnitude fewer trajectories than previous methods.
  • The "Inside-Out" Advantage: By defining the required skill before finding the data, the engine ensures broad coverage of the capability space rather than just repeating common patterns found in open-source repositories.
  • Verification as a Learning Signal: The authors found that frontier models (like GPT-4o or Claude 3.5) fail most often because they don't properly verify their own work—they make a plausible attempt but stop before confirming the goal is met. CLI-Universe addresses this by training agents on trajectories that include rigorous self-checking.
  • Research-Guided Grounding: Grounding tasks in real-world documentation makes them significantly harder. Tasks refined with evidence required 3.45× more steps to solve and saw a 13.3% drop in pass rate compared to unrefined tasks, indicating they exercise much deeper reasoning.

Key Results

The results highlight the power of high-quality synthetic data:

  • State-of-the-Art for 32B Models: Fine-tuning Qwen3-32B on CLI-Universe-6K achieved 33.4% on Terminal-Bench 2.0.
  • Outperforming Giants: This 32B model outperformed significantly larger models, including Qwen3-Coder-480B (23.9%) and the 1T-parameter Kimi-K2-Instruct (27.8%).
  • Generalization: The model showed consistent gains on out-of-domain benchmarks (+11.3 points on BFCL v4), proving that the skills learned (tool orchestration, state tracking) are broadly applicable.
Figure 2: Each synthesis stage adds a measurable gain, and the resulting dataset trains agents with 10–100× fewer trajectories. (a)–(c) validate the three pipeline stages: evidence refinement raises difficulty (3.45× solver turns, −13.3 pt pass rate); rubric-based blueprint review lifts accept rate to 91%/93% (human/LLM); synthesized tests agree with Terminal-Bench 2 ground truth on 91% of sampled tasks (88% semantic match, Codex / GPT-5.4 judge). (d) The five-stage filter retains 33.6% of candidates end-to-end. (e) Models trained on CLI-Universe data match or exceed TB 2.0 baselines using 1–2 orders of magnitude fewer training trajectories.

Limitations and Future Work

  • Teacher Model Ceiling: The quality of the synthesized data is ultimately capped by the capabilities of the "teacher" model (in this case, Kimi-K2.6) used for research and solution generation.
  • Performance Gap: While CLI-Universe narrows the gap, a significant performance distance remains between 32B open-source models and the strongest proprietary frontier models (e.g., Claude 4.5).
  • Difficult Domains: Certain categories, such as Video Processing and Games, remain highly challenging for the current pipeline, suggesting a need for more specialized environment synthesis in these areas.
  • Future Directions: The authors plan to explore scaling the pipeline to even larger task pools and investigating whether reinforcement learning (RL) can further enhance these agents.

Summary updated

BibTeX
@misc{hua2026cli,
  author = {Zhanbo Hua and Yifan Yao and Weihao Xie and Yongchi Zhao and Minghao Liu and Ruizhi Qiu and Zhewei Huang and Zun Wang and Yiyan Ji and Yunhai Ye and Letian Zhu and Xinping Lei and Han Li and Zhiyuan Ma and Zili Wang and Zhaoxiang Zhang and Jiaheng Liu},
  title = {{CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agents}},
  year = {2026},
  eprint = {2606.22883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.22883},
}
Figure