Mindforge is an automated pipeline we built that converts open-source command-line programs into "source-free" training environments: the agent is given only a compiled reference executable and its documentation — never the source code. To succeed, it must work through the entire software-engineering life cycle: infer the specification from observed behavior, design an architecture, implement it, hunt down its own bugs, write tests, and iterate to a passing build.
With this pipeline we:
🔧 Automatically constructed 562 cleanroom environments across 6 compiled languages (Go, Rust, C, C++, and more), with reproducibility and source-leakage checks at every step
🔧 Collected 1,001 whole-life-cycle trajectories from a teacher agent (GLM-5.2) — averaging 181 turns and 177K tokens each, covering spec exploration (99%), design (87%), debugging, testing, and refinement.
🔧 Refined them with infrastructure-noise recovery and surgical reasoning rewrites, so every training example is clean supervision
And the behavior analysis shows it genuinely learned to engineer: it works ~2× longer per task (up to an 830-turn, 209M-token run) while its command failure rate drops, and it nearly doubles the rate at which reasoning and failure recovery turn into actual code edits — closing most of the gap to frontier agents.