Hybrid-Gym: Training Coding Agents to Generalize Across Tasks
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
When assessing the quality of coding agents, predominant benchmarks focus on solving single issues on GitHub, such as SWE-Bench. In contrast, in real use, these agents solve more various and complex tasks that involve other skills such as exploring codebases, testing software, and designing architecture. In this paper, we first characterize some transferable skills that are shared across diverse tasks by decomposing trajectories into fine-grained components, and derive a set of principles for designing auxiliary training tasks to teach language models these skills. Guided by these principles, we propose a training environment, Hybrid-Gym, consisting of a set of scalable synthetic tasks, such as function localization and dependency search. Experiments show that agents trained on our synthetic tasks effectively generalize to diverse real-world tasks that are not present in training, improving a base model by 25.4% absolute gain on SWE-Bench Verified, 7.9% on SWT-Bench Verified, and 5.1% on Commit-0 Lite. Hybrid-Gym also complements datasets built for the downstream tasks (e.g., improving SWE-Play by 4.9% on SWT-Bench Verified). Code available at: https://github.com/yiqingxyq/Hybrid-Gym.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 23 of its 31 references that are in the map. First posted on arXiv 18 Feb 2026.
Builds on
23 of 31 references.
Closest ancestors · 7
Same direction, newest first
- 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
- 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvement1 Nov
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
Other references · 16
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 196
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2024Commit0: Library Generation from Scratchcited by 50
- 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 49
4 more
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
- 2025ML-Agent: Reinforcing LLM Agents for Autonomous Machine Learning Engineeringcited by 26
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
- 2025RepoST: Scalable Repository-Level Coding Environment Construction with Sandbox Testingcited by 12
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
- 2026Steer, Don't Solve: Training Small Critic Models for Large Code Agentscited by 3
- 2026Test-Time Learning with an Evolving Librarycited by 2
- 2026Breaking the Solver Bottleneck: Training Task Generators at the Learnable Frontiercited by 1
- 2026SWE-Journey: Towards More Realistic Evaluation of Coding Assistants through Long-Horizon, Multi-Turn Interactioncited by 0
- 2026Which Skill to Distill? SGUID: Selecting a Compact Skill Bank for Model-Skill Co-Evolutioncited by 0
- 2026Which Skill to Distill? SGUID: Selecting a Compact Skill Bank for Model-Skill Co-Evolution8 Oct 2026
- 2026SWE-Journey: Towards More Realistic Evaluation of Coding Assistants through Long-Horizon, Multi-Turn Interaction8 Oct 2026
- 2026Steer, Don't Solve: Training Small Critic Models for Large Code Agents20 Jun 2026
- 2026Breaking the Solver Bottleneck: Training Task Generators at the Learnable Frontier10 Jun 2026
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026Test-Time Learning with an Evolving Library14 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025Training Versatile Coding Agents in Synthetic Environments
- 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesis
- 2026Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills
- 2025Generalizable End-to-End Tool-Use RL with Synthetic CodeGym
- 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
- 2025A Self-Improving Coding Agent
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
- 2025CodeEdu: A Multi-Agent Collaborative Platform for Personalized Coding Education