# CodeMidas：用源码本身扩展智能体编程 RL 环境

- 来源：HuggingFace Daily Papers（社区热门论文）
- 发布时间：2026-09-18 08:00
- AIHOT 分数：46
- AIHOT 链接：https://aihot.news/items/cmuao7inc0qj9ro5tgli3qb86
- 原文链接：https://arxiv.org/abs/2609.22068

## AI 摘要

CodeMidas 是一个以源码为唯一任务输入的智能体流水线，把现有代码库中已实现的功能转化为可执行的 RL 环境，共产出 3,185 个开源代码库、23 种编程语言、15 个技术领域的 5,545 个训练任务。

## 正文

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.
