LegoEnv: Self-Evolving Agentic Environments via Modular Recombination

Zhuosong Jiang, Chengxu Wu, Junqi Liu, Yujie Yi, Siqin Wang +9 more
11/1/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

LLM agents learn by interacting with environments, yet existing environments are designed for specific tasks and fail to generalize to new ones. Recent methods automate environment construction with LLMs.

Show full abstract

However, they generate each environment from scratch, neither reusing parts shared across environments nor carrying a fix from one environment to the rest. To address this, we propose a new paradigm of evolving environment atoms, which composes environments from reusable atoms (intent, rule, data and server) and evolves the atoms when an environment fails to give reliable feedback (e.g., an application lacks a tool the task requires). To instantiate this paradigm, we introduce LegoEnv, which builds 5,465 verified environments over 223 applications, and one round of evolution raises the share of solvable environments from 71.6% to 88.3%. On AutomationBench, SFT on these environments lifts Qwen3.6-27B from 16.0% to 32.0%, and RL with their verifiers lifts Qwen3.8-27B from 37.6% to 40.3%. Further analyses show steady gains with corpus size, transfer to unseen applications, and failures concentrated in a few shared root causes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jiang2026legoenv,
  title  = {LegoEnv: Self-Evolving Agentic Environments via Modular Recombination},
  author = {Zhuosong Jiang and Chengxu Wu and Junqi Liu and Yujie Yi and Siqin Wang and Zhixuan Huang and Jinqian Jiang and Lijun Xiao and Jianxun Li and Yongyang Pan and Jieran Wang and Shiqi Shen and Fei Liu and Xinyu Lin},
  year   = {2026},
  eprint = {2611.01834},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.01834v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.01834.svg)](https://codeofpaper.com/paper/2611.01834)

Discussion