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:
- Artificial Difficulty: Human experts tend to design adversarial puzzles that diverge significantly from authentic, everyday developer workflows.
- 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:
- 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.
- 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.
- 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.
- 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.
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.
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
tsharkand Python instead ofettercap).
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, oremacs, 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