Growing Training Grounds from Code Itself: How CodeMidas Turns Implemented Functionality into RL Environments for Coding Agents
CodeMidas presents an agentic pipeline that uses source code as its only task-specific input to turn implemented functionality in open-source codebases into executable, verifiable coding RL environments, yielding 5,545 training tasks from 3,185 codebases across 23 programming languages and 15 technical domains, and training MiMo-V2.5 with GRPO improves all five external benchmarks, including DeepSWE pass rate from 10.0% to 21.7%, ProgramBench Almost Solved from 4.5 to 21.5, and Terminal-Bench v2.1 from 63.7% to 72.2%.