SWE-Gym/SWE-Gym
Code for Paper: Training Software Engineering Agents and Verifiers with SWE-Gym [ICML 2025]
What it solves
SWE-Gym addresses the lack of specialized training environments for software engineering agents. Existing tools often struggle to provide the rigorous verification and real-world repository context needed to train models that can reliably solve complex coding tasks.
How it works
It provides an environment containing 2.4K real-world Python tasks across 11 repositories. It combines repository context, executable environments, and automated test verification to allow developers to train language models as agents. By using these trajectories, users can fine-tune agents, train verifiers for better decision-making, and enable self-improvement through techniques like rejection sampling.
Who it’s for
This project is for researchers and developers building autonomous coding agents who need a standardized, scalable way to train and evaluate their models on real-world software engineering problems.
Highlights
- First environment specifically designed for training software engineering agents and verifiers.
- Includes 2.4K real-world Python tasks with integrated test verification.
- Enables inference-time scaling, allowing models to select the best solutions from multiple attempts.
- Demonstrated state-of-the-art open results on SWE-Bench Verified and Lite benchmarks.
- Supports self-improvement workflows and integration with existing agent scaffolds like OpenHands and MoatlessTools.
Related
- Project
- Project
- Project
- Project