CodeMidas: Scaling Agentic Coding RL Environments from Code Itself

📅 2026-09-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
为解决编码代理训练任务多样性不足问题,CodeMidas通过将现有代码库功能转化为可执行的RL环境,提供5,545个训练任务,提高编码代理性能。
📝 Abstract
Training capable coding agents via reinforcement learning (RL) requires diverse tasks with reliable verifiers. Open-source codebases offer a rich source of such tasks, while existing methods typically rely on development artifacts such as issues and commits, limiting the range of tasks that can be extracted. To better scale RL environments, we present CodeMidas, an agentic pipeline that turns implemented functionality in existing codebases into executable RL environments using source code as its only task-specific input. CodeMidas allocates agentic compute to every stage of environment construction: agents explore implemented functionality to formulate behavioral specifications, construct tests grounded in execution of the original code, and validate and filter candidate tasks through execution checks and repeated solution rollouts. The resulting dataset has 5,545 training tasks from 3,185 open-source codebases spanning 23 programming languages and 15 technical domains. Training MiMo-V2.5 on these tasks with GRPO improves performance on all five diverse benchmarks, covering issue repair (DeepSWE + 11.7%), whole-program construction (ProgramBench +17%), and terminal work (Terminal-Bench v2.1 +8.5%). Ablations show that increasing the number of high-quality training tasks improves performance. Trajectory analysis shows the RL-trained agent demonstrates better behaviors like increasing codebase exploration and more diverse self-verification. These results establish source code as a scalable foundation for constructing RL environments that improve coding agents across diverse software tasks.
Problem

Research questions and friction points this paper is trying to address.

reinforcement learning
coding agents
task diversity
environment scaling
source code
Innovation

Methods, ideas, or system contributions that make the work stand out.

CodeMidas
agentic pipeline
source code
reinforcement learning environments
coding agents
🔎 Similar Papers
No similar papers found.
B
Bowen Ye
LLM Core, Xiaomi; Peking University
L
Lei Li
LLM Core, Xiaomi; University of Hong Kong
S
Shicheng Li
LLM Core, Xiaomi
Zihao Yue
Zihao Yue
Renmin University of China
Multimodal AILanguage Modeling
L
Linghao Zhang
LLM Core, Xiaomi
H
Hanglong Lv
LLM Core, Xiaomi; Peking University
Yuanxin Liu
Yuanxin Liu
Peking University
Natural Language Processing
W
Wenhan Ma
LLM Core, Xiaomi; Peking University
H
Hao Tian
LLM Core, Xiaomi
R
Rang Li
LLM Core, Xiaomi; Peking University
Jinhao Dong
Jinhao Dong
Peking University
SE Augments AITrustworthy Software DevelopmentPre-trainingCode Generation
Yikai Zhao
Yikai Zhao
Peking University
NetworkingDistributed SystemsAlgorithms
X
Xiangwei Deng
LLM Core, Xiaomi; Peking University
H
Hailin Zhang
LLM Core, Xiaomi
L
Liang Zhao
LLM Core, Xiaomi
Qi Liu
Qi Liu
University of Hong Kong, Reka AI
Natural Language ProcessingMachine LearningArtificial General Intelligence
Lingpeng Kong
Lingpeng Kong
Google DeepMind, The University of Hong Kong
Natural Language ProcessingMachine Learning
Tong Yang
Tong Yang
Peking University, Beijing, China. PKU. 北京大学
SketchNetwork measurementBloom filterIP lookupHash Table
F
Fuli Luo
LLM Core, Xiaomi