EnvCraft: Synthesizing Executable Environments in Agentic RL for Claw-like Agent
Organizations: Harbin Institute of Technology, SCIR Lab · Huawei Technologies Co., Ltd · Peking University · Tsinghua University
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.
Figures & tables
| Environment | # Envs | # Tasks | Claw Support | Env Domain | Stateful | Reward |
| AutoForge ( Cai et al. 2025 ) | 10 | 1,078 | ✗ | Consumer Web | DB Schema | LLM Judge |
| EnvScaler ( Song et al. 2026 ) | 191 | 9,000 | ✗ | General | Class Attr. | Rule Check |
| ScaleEnv ( Tu et al. 2026 ) | 16 | 2,560 | ✗ | General | DB Schema | Rule Check |
| AWM ( Wang et al. 2026 ) | 1,000 | 10,000 | ✗ | General | DB Schema | Code & LLM |
| EnvFactory ( Xu et al. 2026 ) | 85 | 2,575 | ✗ | General | DB Schema | Code Check |
| EnvCraft (Ours) | 139 | 19,777 | ✓ | General | Workspace | Code Check |
| Env/Data Types | Passed | Raw | Pass Rate |
| Environment | |||
| General Tool Env | 70 | 203 | 34.48% |
| Claw Env | 69 | 121 | 57.02% |
| # Total | 139 | 324 | 42.90% |
| Data Entry | |||
| General Tool Data | 14,215 | 21,975 | 64.69% |
| Model | PinchBench | ClawEval | ||
| Score | Token | Score | Token | |
| Advanced Models | ||||
| Claude Opus 4.6 | 69.90 | 12.30 | 80.60 | 20.40 |
| Kimi-2.5 | 54.60 | 14.00 | 66.60 | 17.80 |
| GPT 5.4 | 75.70 | 11.50 | 78.30 | 15.30 |
| MiniMax-m2.7 | 65.40 | 11.60 | 71.80 | 17.80 |
| Model | BFCL-v3 Multi-Turn | -bench | |||||||
| Base | Miss- Func | Miss- Param | Long- Context | Overall | Retail | Airline | Telecom | Overall | |
| Advanced Models | |||||||||
| Gemini-3-Pro-Pre. | 64.50 | 60.00 | 54.50 | 64.00 | 60.75 | 75.90 | 80.50 | 91.00 | 82.47 |
| Claude Sonnet 4.5 | 69.00 | 65.00 | 52.50 | 59.00 | 61.37 | 72.40 | 72.00 | 84.90 | 76.43 |
| Qwen3-235B | 60.00 | 35.00 | 34.00 | 54.00 | 45.75 | 71.90 | 58.60 | 47.30 | 59.27 |
| Kimi-K2-Instruct | 57.50 | 35.00 | 42.00 | 49.00 | 45.88 | 70.60 | 56.50 | 65.80 | 64.30 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 1 | Messaging & Communication | 5 | APIs for instant messaging, mobile messaging, email, SMS, and other communication services, supporting session management, message sending and receiving, and user-status tracking. |
| 2 | Document & Note Management | 3 | APIs for document-management and personal note-taking systems, supporting document creation and editing, version control, note organization, and information retrieval. |
| 3 | Development Tools | 1 | Jupyter Notebook server APIs supporting the creation, execution, editing, and lifecycle management of computational notebooks. |
| 4 | Scheduling & Reminders | 2 | APIs for scheduling and reminder systems, supporting calendar-event management, timed reminders, recurrence configuration, and notification delivery. |
| 5 | Monitoring & Logging | 3 | APIs for network monitoring, model monitoring, and system-log management, supporting device-status detection, log collection, alerting, and performance-metric tracking. |
| 6 | Server & Application Management | 1 | Node.js application-server management APIs supporting application deployment, start and stop operations, process management, and runtime status monitoring. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 10 | Ground Transport | 2 | Car-rental and ride-hailing platform APIs supporting vehicle leasing, ride requests, driver and vehicle matching, route planning, and fare calculation. |
| 11 | Comprehensive Travel Booking | 1 | Integrated travel-booking APIs combining flight reservations, credit-card management, payment processing, and travel-budget constraints. |
| 12 | Accommodation | 1 | Hotel-booking APIs supporting hotel and room search, availability management, price calculation, booking creation, modification, and cancellation. |
| 13 | Vehicle Management | 3 | APIs for vehicle maintenance, motor-vehicle registration, and vehicle control, covering maintenance scheduling, registration records, and in-vehicle system operations. |
| 14 | Banking & Trading | 3 | APIs for retail banking, stock trading, and quantitative-trading bots, supporting account management, transfers, market-data retrieval, order placement, and automated trading. |
| 15 | Corporate Finance | 1 | Corporate financial-reporting APIs supporting financial-statement generation, multi-source data aggregation, accounting-period management, and compliance reporting. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 18 | Online Shopping & Cart | 2 | APIs for online-shopping and retail platforms, supporting product browsing, cart management, promotional discounts, checkout, and order creation. |
| 19 | Product Catalog Management | 1 | E-commerce product-catalog APIs supporting product-information maintenance, category organization, attribute management, pricing, and inventory display. |
| 20 | Inventory & Order Management | 2 | APIs for inventory and order management, supporting inventory updates, order-status transitions, fulfillment tracking, and stock reconciliation. |
| 21 | Marketing & Reviews | 2 | APIs for product promotion and review systems, supporting campaign configuration, promotional-rule management, user reviews, ratings, and feedback moderation. |
| 22 | Task & Issue Tracking | 3 | APIs for task tracking, to-do management, and software-testing workflows, supporting assignment, prioritization, status transitions, and defect tracking. |
| 23 | Workflow & Job Scheduling | 2 | APIs for workflow-management and job-scheduling systems, supporting process definition, dependency configuration, job execution, retry handling, and status monitoring. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 26 | Social Media | 1 | Social-media publishing APIs supporting post creation, comment interaction, reposting, content retrieval, and follower-relationship management. |
| 27 | HR & Employee Management | 1 | Human-resources information-system APIs supporting employee-profile management, organizational structures, employment records, and payroll information maintenance. |
| 28 | Account & Membership | 2 | APIs for membership management and user registration, supporting account creation, authentication, membership-tier management, and access-control configuration. |
| 29 | Benefits & Wellness | 1 | Fitness-class booking APIs supporting class scheduling, member registration, coach assignment, capacity management, and booking cancellation. |
| 30 | Communication & Services | 2 | APIs for telecommunications and food-delivery services, supporting mobile-plan management, data-usage control, restaurant ordering, and delivery-status tracking. |
| 31 | Search & Information | 1 | Web-search APIs supporting keyword queries, result retrieval, result organization, search-history management, and bookmark collection. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 34 | Academic Administration | 3 | APIs for student-information and university course-selection systems, supporting student-profile management, course registration, enrollment constraints, and grade-record maintenance. |
| 35 | Knowledge Resources | 1 | Library-management APIs supporting catalog search, book borrowing, reservations, renewals, return processing, and overdue-fine calculation. |
| 36 | CRM & Customer Management | 1 | Customer-relationship management APIs supporting customer profiles, sales-opportunity tracking, interaction histories, and communication record maintenance. |
| 37 | Reservation & Booking | 1 | Restaurant-reservation APIs supporting restaurant and table information management, availability queries, booking creation, and dining-schedule modification. |
| 38 | Support Ticketing | 1 | Customer-support ticketing APIs supporting ticket creation, assignment, status updates, priority management, escalation, and service-queue management. |
| 39 | Health Records | 1 | Personal-health-record APIs supporting health-metric recording, vital-sign tracking, historical-data retrieval, and medical-record management. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 1 | Collaborative Office & Email Automation | 3 | Collaborative-office and email-automation environments supporting workflow orchestration for email-content extraction, automated social-media publishing, and event-driven email rules. |
| 2 | E-commerce & Logistics Management | 5 | E-commerce logistics environments supporting shipment tracking, return and exchange processing, inventory reconciliation, multi-stage logistics orchestration, and state-machine-based order management. |
| 3 | Spreadsheet Data Cleaning & Statistical Analysis | 1 | Spreadsheet-analysis environments supporting data cleaning, formula calculation, chart generation, pivot-table construction, and statistical analysis across workspace files. |
| 4 | Email Client Intelligent Management | 1 | Intelligent email-client environments supporting email sending and receiving, message organization, reply suggestion, and automatic extraction of actionable to-do items. |
| 5 | Sensitive Information Encryption & Management | 1 | Secure information-storage environments supporting encrypted password storage, credential retrieval, automatic form filling, and strong password generation. |
| 6 | Cross-Modal Content Transcription & Summarization | 2 | Cross-modal content-processing environments supporting audio- and video-to-text transcription, discussion consolidation, and multi-turn conversational summarization. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 10 | Itinerary Disruption Dynamic Optimization | 4 | Dynamic itinerary-optimization environments supporting delay monitoring, automatic rebooking, linked hotel and airport-transfer adjustments, and traveler notification. |
| 11 | Travel Budget Auto-Accounting & Control | 1 | Automated travel-budget environments supporting expense categorization, budget allocation, threshold alerts, and spending-trend analysis. |
| 12 | Automated Reimbursement Reconciliation | 5 | Automated reimbursement environments supporting receipt recognition, bank-statement matching, expense-report completion, approval processing, and multidimensional reconciliation. |
| 13 | Travel Itinerary Offline Planning | 1 | Offline travel-planning environments supporting destination organization, itinerary construction, local information management, and multi-objective route optimization. |
| 14 | Multi-Dimensional Environmental Adaptive Regulation | 3 | Adaptive environmental-control environments supporting smart-device management, HVAC regulation, air-quality adjustment, and energy-consumption optimization. |
| 15 | Home/Office Security Patrol | 4 | Security-patrol environments supporting intrusion detection, scheduled inspection, alarm triggering, coordinated incident response, and evidence collection. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 19 | Industry Sentiment & Growth Analysis | 1 | Industry-analysis environments supporting competitor monitoring, strategy tracking, market-report generation, growth analysis, and user-feedback aggregation. |
| 20 | System Patch Injection Defense | 1 | System-security environments supporting sensitive-key isolation, prompt-injection detection, suspicious patch inspection, and security-audit alerting. |
| 21 | Identity Forgery & Audit Fraud | 1 | Identity-verification and audit-defense environments supporting auditor-identity validation, anomalous-behavior detection, forgery-risk assessment, and early warning. |
| 22 | Bulk Unauthorized Data Export Interception | 1 | Data-loss-prevention environments supporting sensitive-data identification, export-approval workflows, permission verification, and unauthorized-transfer blocking. |
| 23 | Internal Core Document Leak Interception | 1 | Document-security environments supporting confidentiality classification, outbound-transfer detection, access-policy validation, and real-time leak prevention. |
| 24 | End-to-End Interview Process Hosting | 1 | Recruitment-workflow environments supporting resume screening, interview scheduling, candidate communication, evaluator coordination, and end-to-end status tracking. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 27 | Employee Offboarding Automated Process | 1 | Employee-offboarding environments supporting permission revocation, asset-return confirmation, workspace-data backup, account deactivation, and completion tracking. |
| 28 | Automated Domain Technical Survey | 1 | Automated technical-survey environments supporting paper retrieval, source organization, domain-trend analysis, evidence synthesis, and survey-report generation. |
| 29 | Literature Citation Relationship Archiving | 1 | Literature-management environments supporting citation-graph construction, citation-impact analysis, related-work discovery, and persistent relationship archiving. |
| 30 | Multi-Group Experiment Metrics Auto-Comparison | 1 | Experiment-analysis environments supporting experimental-configuration recording, metric aggregation, group comparison, statistical difference analysis, and result archiving. |
| 31 | Open-Source Reproduction Record Archiving | 1 | Reproduction-management environments supporting procedural record keeping, dependency and environment configuration, result validation, and reproducibility archiving. |
| 32 | Music & Audio Playback | 1 | In-vehicle audio environments supporting music search, playback control, queue manipulation, playlist management, and media-status retrieval. |
| No. | Fine-Grained Scenario | # Envs | Scenario Description |
| 35 | Infrastructure Automated Operations | 1 | Infrastructure-operations environments supporting server-fault detection, diagnostic inspection, automatic recovery, service verification, and operations-record maintenance. |
| 36 | Cloud Resource Cost Auto-Audit | 1 | Cloud-cost auditing environments supporting multi-project cost aggregation, abnormal-spending detection, budget alerts, and cost-optimization recommendations. |
| 37 | Online Fault Root-Cause Postmortem Archiving | 1 | Incident-management environments supporting fault-timeline construction, root-cause analysis, corrective-action tracking, and postmortem knowledge-base archiving. |
| 38 | Brand & Product Research | 1 | Brand- and product-research environments supporting SKU-information retrieval, competitor-feature comparison, evidence aggregation, and market-positioning analysis. |
| 39 | Multimedia Clue Tracking | 1 | Multimedia-investigation environments supporting cross-document clue association, evidence-chain construction, provenance tracking, and information tracing. |
| 40 | Churn Warning & Proactive Retention | 1 | Customer-retention environments supporting churn-risk assessment, retention-strategy generation, customer segmentation, and automated customer communication. |
| # | Constraint | Applicable Components |
| 1 | All public functions return dictionaries and map failures to structured error responses rather than propagating exceptions. | Environment, tools, CLI, storage, evaluator |
| 2 | No mutable module-level global state is permitted; all mutable data must reside in the session or environment state. | All modules |
| 3 | The data/ directory is immutable during rollout and can be read only through the repository layer. | Repository and domain modules |
| 4 | Session updates use an atomic temporary write followed by os.replace . | Storage layer |
| 5 | File locking uses platform-supported locking with a bounded timeout and an agent-safe error response. | Storage layer |
| 6 | Timestamps are computed from base_time and action_index ; wall-clock timestamps are forbidden. | Environment and domain modules |
| Category | Example | Required Behavior |
| Missing binding | Session environment variable is absent | Return an error indicating that the trainer must initialize the rollout. |
| Session not found | The requested session does not exist | Return an agent-safe message stating that the session may have expired or been reset. |
| Lock timeout | Another worker holds the session lock | Request a retry without exposing the lock path. |
| Permission failure | The current account cannot modify an entity | Identify the affected entity and state that write permission is absent. |
| Invalid transition | An entity is already in the requested terminal state | Report the current state and explain why the transition is invalid. |
| Missing field | A required command argument is absent | Name the missing field and describe the corresponding requirement. |
| Hyperparameter | Value |
| Optimization | |
| Optimizer | AdamW |
| Learning rate | |
| Learning-rate scheduler | Constant |
| Warmup ratio | |
| Weight decay | |
| Dimension | Score 3 | Score 2 | Score 1 | Score 0 |
| Task Solvability & Logic | The task is logically valid, non-trivial, and fully solvable under the initial state and environment rules. Completing it requires meaningful interaction, with no state conflicts. | The task is theoretically solvable but is either trivial, requires no meaningful interaction, or contains minor parameter mismatches that a robust agent may bypass. | The task is unsolvable because its requested actions or target state contradict the initial state, environment constants, or transition rules. | The task substantially hallucinates entities, tools, APIs, or states that are absent from the environment. |
| Validation-Protocol Integrity | The validation protocol is executable and completely checks the intended success conditions, without evident false-positive or false-negative paths. | The protocol is executable, but its assertions are incomplete or weak; for example, it verifies that an action occurred without checking the required final state. | The protocol contains syntax or runtime errors, references undefined variables or APIs, or is expected to fail during execution. | The validation protocol is missing or evaluates conditions unrelated to the user task. |
| Data Consistency & Syntactic Cleanliness | Entity names, identifiers, value types, and schemas are fully consistent across the environment state, user task, and validation protocol. | The components are semantically consistent but contain minor type or formatting mismatches that do not fundamentally alter the task objective. | Critical fields are missing, or explicit contradictions exist between the user-facing description and the underlying environment configuration. | The task record contains malformed JSON, severely corrupted text, or otherwise unusable structured data. |
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 585 papers