TerminalWorld: Benchmarking Agents on Real-World Terminal Tasks

Zhaoyang Chu, Jiarui Hu, Xingyu Jiang, Pengyu Zou, Han Li, Chao Peng, Peter O'Hearn, Earl T. Barr, Mark Harman, Federica Sarro, He YearXiv 2026

TL;DR

TerminalWorld introduces an automated data engine that reverse-engineers real-world terminal recordings into high-fidelity evaluation tasks for AI agents. Testing frontier large language models (LLMs) on this benchmark reveals that they struggle with authentic developer workflows (achieving a maximum pass rate of just 62.5%) and frequently fall into an "efficiency paradox" where failed attempts consume disproportionately massive amounts of compute.

What Problem Does This Paper Address?

As LLM-powered agents increasingly automate software engineering tasks, evaluating their ability to navigate the command-line interface (CLI) has become crucial. However, existing benchmarks rely heavily on manual curation by human experts. This approach suffers from two major flaws:

  1. Artificial Difficulty: Human experts tend to design adversarial puzzles that diverge significantly from authentic, everyday developer workflows.
  2. Scalability Bottlenecks: Manual curation is labor-intensive, making it difficult for benchmarks to scale or stay updated as developer tools and practices rapidly evolve.

To bridge this gap, the authors look to the wild: leveraging naturally occurring terminal recordings to build an authentic, scalable, and automatically validated evaluation suite.

Methods

The authors developed TERMINALWORLD, a scalable data engine that automatically transforms raw terminal recordings from the public platform asciinema into executable evaluation tasks through a four-stage pipeline:

  1. Collecting Human Recordings: The engine harvests and filters tens of thousands of raw recordings, stripping out personally identifiable information (PII), malicious commands, and low-quality or purely exploratory sessions.
  2. Synthesizing Terminal Tasks: An LLM distills the developer's core intent into a concise, outcome-oriented natural language instruction (focusing on the final state rather than a step-by-step path) and extracts a clean bash script as the reference solution.
  3. Reproducing Executable Environments: An LLM agent infers system dependencies to generate a Dockerfile. It then uses an execution-feedback loop to iteratively repair runtime errors until the reference solution executes successfully with an exit code of 0.
  4. Generating Test Suites: The agent captures filesystem state deltas (pre- and post-execution) to generate test assertions. Crucially, it runs a trial-based refinement loop (AllPassing, Nop, and Partial trials) to eliminate false positives and false negatives, ensuring the tests are robust and non-trivial.
Figure 1: An overview of the TERMINALWORLD pipeline. Our data engine automates terminal task synthesis through four key stages: (1) Collecting Human Recordings harvests in-the-wild developer operations; (2) Synthesizing Terminal Tasks distills an outcome-oriented task instruction and a clean reference solution; (3) Reproducing Executable Environments creates and refines an isolated Docker container to replay the core workflow; and (4) Generating Test Suites utilizes a trial-based refinement loop to generate and calibrate test suites within the Docker container.

Datasets

The automated engine processed 80,870 raw recordings to yield a full benchmark of 1,530 validated tasks spanning 18 real-world categories and covering 1,280 unique commands.

From this dataset, the authors curated TERMINALWORLD-VERIFIED, a subset of 200 representative tasks that underwent rigorous manual cross-review by the authors to guarantee absolute label correctness and artifact alignment. This subset was used to evaluate eight frontier LLMs and six leading terminal agents, and its composition was compared directly against the expert-curated Terminal-Bench.

Figure 2: Statistical comparison of 1,530 TERMINALWORLD tasks and 241 unique Terminal- Bench tasks. (a) highlights that TERMINALWORLD captures diverse real-world workflows (e.g., container orchestration, CI/CD) severely underrepresented in expert-curated benchmarks. (b) shows a natural spectrum that mirrors everyday terminal usage, from short operations to multi-step workflows. (c) reveals an extensive vocabulary of 1,280 unique commands (91% absent from Terminal-Bench) that can assess an agent’s capability to discover and wield diverse utilities.

Key Insights and Ideas

  • The Efficiency Paradox: In real-world terminal environments, higher resource consumption does not correlate with better outcomes. Failed agent attempts are disproportionately expensive—consuming on average 3.3× more tokens and 1.4× more time than successful ones—because agents get trapped in open-ended exploration loops without reliable stopping criteria.
  • Expert Puzzles != Real World: Performance scores on the expert-curated Terminal-Bench correlate very weakly with TERMINALWORLD-VERIFIED scores (Pearson $r = 0.20$). Models that dominate synthetic puzzles often falter when faced with the messy, tool-diverse realities of actual developer environments.
  • Alternative Paths over Mimicry: Even when successfully solving tasks derived from human recordings, agents rarely mimic human workflows. The median command-set overlap between successful agents and the original human recordings was only 21.4%. Because the benchmark evaluates the final state, agents are free to find alternative, valid command paths (e.g., using tshark and Python instead of ettercap).

Key Results

  • Frontier Models Struggle: Even the most capable model evaluated, Claude Opus 4.7, achieved a pass rate of only 62.5%, failing on more than a third of the real-world tasks. The average pass rate across all tested frontier models was a modest 54.8%.
  • Open-Weight Competitiveness: Open-weight models like Kimi K2.6 (57.5% pass rate) and GLM 5.1 (57.0%) highly contested or outperformed closed-source giants like GPT-5.5 (53.5%) and Gemini 3.1 Pro (55.0%), while offering a 4× to 8× advantage in cost-effectiveness ($/Pass).
  • Framework Limits: Agent frameworks (like mini-SWE-agent or OpenHands) primarily impact cost-effectiveness and exploration friction rather than raising the underlying capability ceiling of the core LLM.

Limitations and Future Work

  • Pure CLI Scope: The benchmark currently excludes Text User Interfaces (TUIs) like vim, nano, or emacs, as well as full graphical user interfaces (GUIs). Expanding to TUI-based interactions is left to future work.
  • Platform Bias: Sourcing data entirely from public asciinema recordings means the dataset inherently reflects workflows that developers choose to share publicly, potentially underrepresenting proprietary enterprise toolchains or highly specific corporate environments.

Summary updated

Abstract

We introduce TerminalWorld, a scalable data engine that automatically reverse-engineers high-fidelity evaluation tasks from "in-the-wild" terminal recordings. Processing 80,870 terminal recordings, the engine yields a full benchmark of 1,530 validated tasks, spanning 18 real-world categories, ranging from short everyday operations to workflows exceeding 50 steps, and covering 1,280 unique commands. From these, we curate a Verified subset of 200 representative, manually reviewed tasks. Comprehensive benchmarking on TerminalWorld-Verified across eight frontier models and six agents reveals that current systems still struggle with authentic terminal workflows, achieving a maximum pass rate of only 62.5%. Moreover, TerminalWorld captures real-world terminal capabilities distinct from existing expert-curated benchmarks (e.g., Terminal-Bench), with only a weak correlation to their scores (Pearson r=0.20). The automated engine makes TerminalWorld authentic and scalable by construction, enabling it to evaluate agents in real-world terminal environments as developer practices evolve. Data and code are available at https://github.com/EuniAI/TerminalWorld.
BibTeX
@misc{chu2026terminalworld,
  author = {Zhaoyang Chu and Jiarui Hu and Xingyu Jiang and Pengyu Zou and Han Li and Chao Peng and Peter O'Hearn and Earl T. Barr and Mark Harman and Federica Sarro and He Ye},
  title = {{TerminalWorld: Benchmarking Agents on Real-World Terminal Tasks}},
  year = {2026},
  eprint = {2605.22535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.22535},
}

Loading related content...

Figure