ClawEnvKit: Automatic Environment Generation for Claw-Like Agents

Xirui Li, Ming Li, Ion Stoica, Cho-Jui Hsieh, Tianyi ZhouarXiv 2026

TL;DR

ClawEnvKit is an automated pipeline that generates diverse, verified training and evaluation environments for LLM agents from simple natural language descriptions. By replacing manual benchmark curation with an LLM-driven parser-generator-validator loop, it matches or exceeds human-curated environment quality at a staggering 13,800× lower cost. This shifts the paradigm from static, leakage-prone benchmarks to live, on-demand evaluation and adaptive training.

What Problem Does This Paper Address?

LLM-driven agents—specifically "claw-like" agents that autonomously execute multi-step tasks via command-line interfaces (CLIs) and APIs—are rapidly advancing. However, evaluating and training them remains bottlenecked by human effort.

Building agent environments requires manually writing task instructions, setting up data fixtures, and coding custom verification logic. This process takes hours per task, resulting in static benchmarks that quickly suffer from data leakage or memorization as models are updated. To scale alongside agent capabilities, researchers need a way to generate diverse, controllable, and verified environments automatically and on demand.

ClawEnvKit at a glance, highlighting its quality, scalability, agility, and broad support for models and harnesses.

Methods

The authors introduce ClawEnvKit, an autonomous multi-agent pipeline that formalizes an environment as a triple: a task specification ($P$), an interaction interface ($M$), and an evaluation functional ($C$).

The generation process is split into three distinct LLM-based modules:

  1. Parser: Converts a user's natural language request into structured "intent units" (specific actions, objects, and constraints the agent must handle).
  2. Generator: Translates these intents into a complete environment, writing the task prompt, defining the tool interfaces, pre-loading data fixtures, and setting up scoring rubrics. It can even dynamically synthesize entirely new mock API services if a requested capability isn't in its library.
  3. Validator: Acts as a quality gate by performing format, coverage, and feasibility checks (e.g., ensuring the task isn't counterfactual or impossible). If any check fails, it provides feedback and retries generation up to three times.

Once validated, the environment is executed within an isolated Docker container with no internet access. To rigorously test agent resilience, ClawEnvKit injects random API errors (like HTTP 429 or 500) into 25% of the tool calls. Finally, a grading engine scores the agent's trajectory using a mix of deterministic audit-log checks and an LLM judge capped at a maximum weight of 55% to maintain evaluation reliability.

Overview of the ClawEnvKit pipeline from natural language input to performance grading.

Datasets

Using ClawEnvKit, the authors constructed Auto-ClawEval, the first large-scale benchmark for claw-like agents. It comprises 1,040 environments spanning 24 semantic categories and 15 mock services (covering areas like finance, operations, and communication).

To validate generation quality against human standards, they also created Auto-ClawEval-Mini, a compact 104-task subset paired one-to-one with the human-curated Claw-Eval benchmark.

Comparison of Auto-ClawEval against existing human-curated agent evaluation environments.

Key Insights and Ideas

  • Harness Engineering is a Major Lever: The way an agent is integrated with its tools (its "harness") drastically alters performance. Structured harnesses outperformed bare ReAct baselines by up to 15.7 percentage points, proving that scaffolding design is just as critical as the underlying model.
  • Benchmarks Are Not Saturated: Across all tested frontier models, safety and robustness scores were consistently high, but task completion rates ranged from just 34% to 76%. This indicates significant headroom for improvement, making Auto-ClawEval an effective benchmark for future models.
  • The "Live Evaluation" Paradigm Shift: Instead of relying on static datasets that risk contamination, ClawEnvKit enables continuous, user-driven evaluation. Users can describe a custom workflow in plain text, and the system interactively generates a verified testbed on the fly.

Key Results

  • Higher Quality, Fraction of the Cost: In direct comparisons, Auto-ClawEval-Mini achieved 100% structural validity and scored higher than human-written environments in both Coherence (0.59 vs. 0.51) and Clarity (3.52 vs. 3.38). It reduced the creation time for 104 tasks from 208 human hours to just 1.8 automated hours.
  • Reliable Scaling: Performance scores on the full Auto-ClawEval benchmark and the compact Mini variant differed by less than 2% across all models and harnesses, confirming that automated generation scales up reliably without degrading evaluation quality.
Task quality and cost comparison between human-written Claw-Eval and auto-generated ClawEnvKit benchmarks.

Limitations and Future Work

While powerful, ClawEnvKit currently relies on mock services rather than live production APIs. While mock services ensure deterministic and safe evaluation, they lack real-world complexities like authentication flows, rate limits, and schema drift.

Additionally, the current task generation is optimized for shorter horizons (under 20 tool-calling rounds). The authors note that expanding the framework to support long-horizon tasks that span hours or days—incorporating human-in-the-loop checkpoints and multi-agent delegation—is a crucial next step for the field.

Summary updated

BibTeX
@misc{li2026clawenvkit,
  author = {Xirui Li and Ming Li and Ion Stoica and Cho-Jui Hsieh and Tianyi Zhou},
  title = {{ClawEnvKit: Automatic Environment Generation for Claw-Like Agents}},
  year = {2026},
  eprint = {2604.18543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.18543},
}
Figure