arXiv:2609.05576cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.05576

EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent

Yirong Zeng, Shen You, Jinhang Feng, Yufei Liu, Xiao Ding, Yutai Hou, Hao Cong, Yuxian Wang, Wu Ning, Wang Xu, Bibo Cai

Abstract

The paradigm of LLMs has rapidly shifted from passive language interfaces to autonomous Claw-like agents that execute long-horizon tasks across stateful workspaces. While Agentic Reinforcement Learning (Agentic RL) provides a promising path to optimize these agents, its scaling is heavily bottlenecked by the severe scarcity of interactive training environments. Existing synthetic environments are strictly limited to tool-calling endpoints, rendering them insufficient for accommodating the end-to-end real-world demands of claw-like agents. To bridge this gap, we introduce EnvCraft, an automated framework for synthesizing executable environments and scalable training data. Specifically, EnvCraft employs an environment synthesis engine to build sandbox-isolated workspaces, alongside a topology-aware data generation engine to produce coherent task trajectories. Overall, we synthesize 139 interactive environments comprising approximately 20K complex tasks for Agentic RL training. Experiments on Qwen3/3.5 models (8B–32B) show that our method yields gains of up to +11.9% on Claw-style benchmarks and +8.0% on general tool-use benchmarks, with concurrent reductions in inference token cost. The results confirm that synthesized executable environments provide robust and generalizable learning signals for training.

Code — https://github.com/zeng-yirong/EnvCraft

Datasets — https://huggingface.co/EnvCraft

1 Introduction

AI agents have evolved from passive conversational interfaces into autonomous actors operating in real-world systems. A notable embodiment of this evolution is the class of claw-like agents, designed for efficient execution within system-level harnesses. These harnesses, such as OpenClaw (OpenClaw Contributors 2026), NanoClaw (QwibitAI 2026), and Hermes-Agent (Nous Research 2026), function as persistent digital assistants that manage long-horizon tasks across operating systems, file systems, databases, and terminal shells. Unlike traditional conversational bots, claw-like agents possess active execution capabilities that directly mutate the environment, producing real-world consequences. Recent works explore Agentic RL, which enables agents to

Figure

Figure 1: An illustration of the agent interaction loop in RL. Environment fundamentally comprises environment documentation, explicit state definitions, and a suite of tool interfaces.

iteratively refine their policies, recover from execution errors, and generalize to unseen scenarios.

Agentic RL frameworks inherently rely on the interaction among users, agents, and environments, as shown in Figure 1. The environment is an executable sandbox that supports tool execution, state maintenance, and result feedback, while an executable environment is foundational to this paradigm, scaling end-to-end Agentic RL training critically requires environments to be low-latency, high-fidelity, and cost-effective. Currently, environments meeting these rigorous criteria remain scarce, limited primarily to narrow domains such as code interpreters (Feng et al. 2025) and local-retrieval tools (Jin et al. 2025). This scarcity becomes particularly acute for Claw-like agents, which demand stateful workspaces and long-horizon task loops, requirements that far exceed the complexity of tool-use endpoints. Consequently, the lack of scalable, interactive, and executable envi-

*Corresponding author: xding@ir.hit.edu.cn ronments stands as the key bottleneck for advancing Agentic RL at the system level.

To address this bottleneck, recent studies have explored two main paradigms for generalist environment construction: simulated environments, which leverage LLMs to mock tool responses (Chen et al. 2025b; Li et al. 2025b, 2026b) but suffer from hallucination and high costs; and synthetic environments, which auto-generate executable code sandboxes for better scalability (Song et al. 2026; Xu et al. 2026). However, contemporary synthetic methods are strictly limited to application-level, generalist tool-use agents by focusing on isolated, tool-use endpoints. They fail to support system-level Claw-like agents, which inherently demand cross-environment execution, stateful workspaces, and asynchronous task loops. To bridge this critical gap, we present EnvCraft, an automated executable environment synthesis framework tailored specifically for Claw-like agent training while also supporting general-purpose tool-use agents. Table 1 summarizes the comparison results.

Specifically, EnvCraft operates through two complementary engines: environment synthesis and data generation. For environment synthesis, we curate 41 general tool-use and 42 Claw-specific scenarios, which LLMs expand into detailed environment specifications and tool interface definitions. Guided by nine interaction archetypes that prescribe control-flow and state-management patterns, the synthesizer generates fully executable, sandbox-isolated environments. For data generation, we introduce a topology-aware sampling strategy to produce high-quality RL tasks comprising user intents, initial states, and verifiers. We first build intra- and cross-environment tool dependencies as a bi-level directed graph, from which weighted random walks yield semantically coherent and logically valid tool chains. Conditioned on these chains, LLMs reverse-engineer multi-turn user intents that expose information incrementally, while simultaneously generating deterministic verification scripts that check post-execution workspace states to supply reward signals. Using EnvCraft, we synthesized 139 interactive environments and 19,777 tasks spanning both Claw-specific and general tool-use task.

Extensive experiments on Qwen3-8/32B and Qwen3.5-9B backbones validate EnvCraft's effectiveness via direct RL. On Claw-style benchmarks, Claw-specific training yields gains of up to +11.9 points on PinchBench and +11.4 on Claw-Eval, while simultaneously reducing per-task token cost by up to 35%, indicating more efficient reasoning paths. Critically, these performance gains transfer robustly to disjoint general-purpose tool-use benchmarks (BFCL-v3, τ2\tau^2-bench), confirming that the learned policies generalize beyond the training distribution rather than merely overfitting to synthesized environments.