Evaluating LLM-Based 0-to-1 Software Generation in End-to-End CLI Tool Scenarios

Ruida Hu, Xinchen Wang, Chao Peng, Cuiyun Gao, David LoarXiv 2026

TL;DR

This paper introduces CLI-Tool-Bench, a new structure-agnostic benchmark designed to evaluate how well LLM agents can generate complete Command-Line Interface (CLI) tools from scratch (0-to-1 generation). By evaluating agents in empty workspaces using black-box differential testing, the authors find that even top-tier models max out at a 43.8% success rate, revealing that autonomous repository-level software creation remains a major challenge.

What Problem Does This Paper Address?

We are rapidly entering the era of "Vibe Coding"—or intent-driven software development—where developers provide high-level natural language requirements, and autonomous LLM agents are expected to build complete, runnable software repositories from scratch.

However, evaluating these agents accurately has proven difficult. Existing benchmarks suffer from two core limitations:

  1. Reliance on predefined repository structures: They often provide agents with pre-built file skeletons and directory scaffolds, reducing a complex architectural task to mere "code-filling."
  2. Rigid white-box unit testing: They test internal implementation details (like specific function signatures), which penalizes creative or alternative structurally valid solutions.

From a user's perspective, a utility like a CLI tool is a black box; what matters is whether it correctly parses arguments, produces the right terminal outputs, and handles system-level side effects (like modifying files). This paper addresses the lack of realistic, end-to-end, black-box evaluation for ground-up software generation.

Methods

The authors built an automated pipeline called CLI-Tool-Bench consisting of three core modules:

Fig. 1: Overview of the CLI-Tool-Bench framework.
  1. Repository Curation: Filtering real-world GitHub repositories to find functional, standalone CLI tools.
  2. Schema-Guided Task Synthesis: An LLM parses the documentation (README and --help outputs) of an oracle repository to extract a hierarchical command schema. It then uses LLM-directed fuzzing to generate 50 diverse test cases (both positive and negative inputs) per command pattern, validating them directly against the human-written oracle.
  3. Black-Box Differential Evaluation: The agent is given an empty workspace and a prompt containing the sanitized documentation and one successful execution example. The generated tool is executed inside isolated Docker sandboxes. The evaluation engine monitors a strict progressive 3-step check:
  4. Execution Reliability ($M_{code}$): Does the tool complete successfully without crashing?
  5. Side-Effect Consistency ($M_{diff}$): Does it make the exact same file system modifications as the oracle?
  6. Behavioral Equivalence ($M_{out}$): Does the standard output match? This is evaluated via Exact Match (EM), Fuzzy Match (FM), and Semantic Match (SM) using an LLM judge to avoid penalizing minor stylistic differences.

Datasets

The paper introduces CLI-Tool-Bench, which comprises 94 high-quality, real-world repositories curated from GitHub. The dataset spans:

  • Three programming languages: Python (34), JavaScript (15), and Go (45).
  • Three difficulty levels: Easy ($\le$1500 LOC), Medium (1500–4000 LOC), and Hard ($\ge$4000 LOC).
  • Nine application domains: Including Web Development, Testing, Machine Learning, and System Tools.

Key Insights and Ideas

  • The "Specification Dividend" (U-Shaped Complexity Curve): Intuitively, agent performance should drop as a project gets larger. Instead, the authors observed a U-shaped curve. Performance drops from Easy to Medium tasks because agents struggle with multi-file architectural planning. However, performance rebounds for Hard tasks. Why? Massive repositories tend to have exceptionally rich, comprehensive documentation, providing highly unambiguous specifications that help the LLM accurately reconstruct the required command schemas.
  • Agent Monolithic Preference: While human developers naturally modularize code into distinct components, LLMs show a overwhelming preference for monolithic designs (tightly clustering around 1–3 files). This is likely a practical adaptation by the agents to minimize cross-file dependency errors (e.g., ImportError) and keep the entire system state within the model's context window.
  • The "Thrashing" Phenomenon: Higher token consumption does not correlate with better performance. Some models get trapped in infinite, unproductive debugging loops—generating verbose, unhelpful commands without making actual progress. Conversely, efficient models like GPT-5.4 achieve highly competitive results with minimal tokens and interaction steps.

Key Results

The authors evaluated 7 state-of-the-art LLMs across two agent frameworks (OpenHands and Mini-SWE-Agent).

Fig. 2: Performance comparison of seven models across three programming languages. The radar charts illustrate the varying capabilities of each model, with the radial axes representing Semantic Match (SM) scores.
  • Top Performers: Kimi-k2.5 emerged as the frontrunner, achieving the highest average Semantic Match (SM) score of 43.78%, followed by MiniMax-M2.5 (34.59%).
  • The Compiled Language Bottleneck: Models performed significantly worse on Golang compared to Python and JavaScript. Golang's strict type matching and rigid compilation constraints proved to be a severe bottleneck for autonomous generation.
  • Framework Impact: Streamlined, bash-centric frameworks (Mini-SWE-Agent) consistently outperformed more complex frameworks (OpenHands). Minimalist interfaces prevent the agent's context window from being overwhelmed by verbose environmental feedback (like multi-page HTML from browser tools).

Limitations and Future Work

  • Dataset Scale: The benchmark is limited to 94 tasks, a deliberate trade-off made to ensure rigorous manual inspection and high-quality task specifications.
  • Single-Trajectory Evaluation: The current setup evaluates agents in a zero-external-feedback environment where they must deliver the final repository in a single run. Future iterations aim to explore feedback-driven generation paradigms (e.g., feeding test error logs back to the agent).
  • Domain Scope: The benchmark currently focuses exclusively on CLI tools. The authors plan to extend this structure-agnostic, black-box differential testing methodology to web services, API backends, and GUI applications.

Summary updated

BibTeX
@misc{hu2026evaluating,
  author = {Ruida Hu and Xinchen Wang and Chao Peng and Cuiyun Gao and David Lo},
  title = {{Evaluating LLM-Based 0-to-1 Software Generation in End-to-End CLI Tool Scenarios}},
  year = {2026},
  eprint = {2604.06742},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.06742},
}
Figure