Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

CodeMidas Turns Raw Source Code Into Scalable RL Training Environments for Coding Agents

AI By Crimson AI Hugging Face Papers 21 September 2026 · 00:00 21 views
Share: X Telegram

A new Hugging Face paper introduces CodeMidas, an agentic pipeline that builds executable reinforcement-learning environments directly from implemented functionality in open-source code, yielding 5,545 tasks across 23 languages and improving MiMo-V2.5 on five benchmarks.

CodeMidas Turns Raw Source Code Into Scalable RL Training Environments for Coding Agents

Key points

Researchers have introduced CodeMidas, an agentic pipeline designed to scale the construction of reinforcement-learning (RL) environments for coding agents by using source code itself as the only task-specific input. The work is published as a paper on Hugging Face.

According to the paper, training capable coding agents with RL demands diverse tasks paired with reliable verifiers. While open-source codebases are a rich source of such tasks, existing approaches typically depend on development artifacts such as issues and commits, which restricts the variety of tasks that can be extracted. CodeMidas instead targets implemented functionality already present in codebases.

The pipeline allocates agentic compute across every stage of environment construction: agents explore implemented functionality to formulate behavioral specifications, build tests grounded in execution of the original code, and validate and filter candidate tasks through execution checks and repeated solution rollouts.

The resulting dataset contains 5,545 training tasks drawn from 3,185 open-source codebases, spanning 23 programming languages and 15 technical domains. Training MiMo-V2.5 on these tasks with GRPO improved performance on all five benchmarks evaluated, including issue repair (DeepSWE +11.7%), whole-program construction (ProgramBench +17%), and terminal work (Terminal-Bench v2.1 +8.5%).

Ablations indicate that increasing the number of high-quality training tasks improves performance, while trajectory analysis shows the RL-trained agent exhibits better behaviors, such as greater codebase exploration and more diverse self-verification. The authors position source code as a scalable foundation for building RL environments that enhance coding agents across varied software tasks.

MetricValue
Training tasks5,545
Open-source codebases3,185
Programming languages23
Technical domains15
DeepSWE (issue repair)+11.7%
ProgramBench (whole-program construction)+17%
Terminal-Bench v2.1 (terminal work)+8.5%
Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 15 Oct 2026

New Survey Maps How Multimodal AI Agents Remember and Evolve

A Hugging Face survey proposes a two-axis framework for multimodal agent memory, separating how information is formed and represen...

6
Research paper
Hugging Face 15 Oct 2026

CriticOPD Fixes On-Policy Distillation by Letting Teachers Critique Student Errors

Hugging Face researchers introduce CriticOPD, a method that restores the teacher's ability to recover from student mistakes during...

7
Research paper
Hugging Face 15 Oct 2026

ActionOPD: Distilling Agent Decisions, Not Tokens

A new Hugging Face paper proposes ActionOPD, an action-level on-policy distillation method that aligns a student agent's decisions...

8