LegoFlow: Letting Agents Autonomously Run the Full Code Data Construction, Training, and Evaluation Pipeline
Researchers from Huawei, CUHK, and HKUST have jointly released LegoFlow, a framework that packages the entire code data engineering pipeline—repository discovery, task validation, trajectory inference, training, and evaluation—into plugin skills callable by coding agents. The team also released the LegoFlow-SWE dataset, containing 5,000 tasks filtered from 12 million PRs and 2,780 high-quality trajectories; training Qwen3.5-35B-A3B-Base on just 1,000 trajectories achieves 70.2% and 48.8% on SWE-bench Verified and Pro, respectively. The framework also demonstrates recursive self-improvement, boosting the same model from 7.6% to 64.4% on SWE-bench Verified after two iterations.