Generalizable End-to-End Tool-Use RL with Synthetic CodeGym
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Tool-augmented large language models (LLMs), hereafter LLM agents, leverage external tools to solve diverse tasks and interface with the real world. However, current training practices largely rely on supervised fine-tuning (SFT) over static trajectories or reinforcement learning (RL) on narrow tasks, which generalize poorly beyond development settings and lead to brittleness with new tools and unseen workflows. Because code execution reflects many structural patterns of real-world workflows, we use coding problems as a structured substrate to build tool-use agent training environments with diverse task configurations. To this end, we introduce CodeGym, a scalable framework that synthesizes diverse, verifiable, and controllable multi-turn tool-use environments for agent RL, enabling LLM agents to explore and master various workflows actively. CodeGym converts static coding problems into interactive environments by extracting atomic functions or logic into callable tools, yielding verifiable tasks that span various tool-execution workflows. Models of varying sizes and chain-of-thought configurations trained in CodeGym exhibit consistent out-of-distribution generalizability; for example, Qwen2.5-32B-Instruct achieves an absolute accuracy gain of 8.7 points on the OOD benchmark τ-Bench. These results highlight CodeGym as a step toward scalable general-purpose RL environments for training tool-use behaviors that align with real-world agent workflows.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 56 of its 64 references that are in the map. First posted on arXiv 22 Sep 2025.
Builds on
56 of 64 references.
Closest ancestors · 3
Same direction, newest first
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 53
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
38 more
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 769
- 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
- 2022PAL: Program-aided Language Modelscited by 652
- 2023ChemCrow: Augmenting large-language models with chemistry toolscited by 631
- 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 627
- 2024Understanding the planning of LLM agents: A surveycited by 421
- 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMscited by 392
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
- 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 356
- 2018Quantifying Generalization in Reinforcement Learningcited by 352
- 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 327
- 2018TextWorld: A Learning Environment for Text-based Gamescited by 310
- 2025DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environmentscited by 286
- 2018BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learningcited by 244
- 2025WebSailor: Navigating Super-human Reasoning for Web Agentcited by 229
- 2024Tool Learning with Large Language Models: A Surveycited by 223
- 2025ZebraLogic: On the Scaling Limits of LLMs for Logical Reasoningcited by 201
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 200
- 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasetscited by 198
- 2022TALM: Tool Augmented Language Modelscited by 197
- 2019Interactive Fiction Games: A Colossal Adventurecited by 168
- 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
- 2025Skywork Open Reasoner 1 Technical Reportcited by 165
- 2025Seed1.5-Thinking: Advancing Superb Reasoning Models with Reinforcement Learningcited by 161
- 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
- 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 120
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 119
- 2025Agentic Reasoning and Tool Integration for LLMs via Reinforcement Learningcited by 110
- 2025Agentic Reasoning: A Streamlined Framework for Enhancing LLM Reasoning with Agentic Toolscited by 106
- 2024Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Modelscited by 100
- 2025VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Usecited by 96
- 2023T-Eval: Evaluating the Tool Utilization Capability of Large Language Models Step by Stepcited by 93
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 83
- 2024SciAgent: Tool-augmented Language Models for Scientific Reasoningcited by 70
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2025: 5; 2026: 12.
17 papers.
Sort:
By area:
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
- 2025Incentivizing Agentic Reasoning in LLM Judges via Tool-Integrated Reinforcement Learningcited by 17
- 2025Scaling Agentic Reinforcement Learning for Tool-Integrated Reasoning in VLMscited by 17
- 2025AutoForge: Automated Environment Synthesis for Agentic Reinforcement Learningcited by 17
- 2026GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learningcited by 12
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RLcited by 3
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agentscited by 3
- 2026Teaching Thinking Models to Reason with Tools: A Full-Pipeline Recipe for Tool-Integrated Reasoningcited by 2
- 2026ToolAnchor: Anchoring Counterfactual Context to Boost Agentic Tool-use Capabilitycited by 1
- 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learningcited by 0
- 2026TIER: Trajectory-Invariant Execution Rewards for Multi-Step Tool Compositioncited by 0
5 more
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing Itcited by 0
- 2026Dyad: Extending Large Language Models with Native Typed Decision-Makingcited by 0
- 2026DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agentscited by 0
- 2026AdCoEvo: A Co-Evolving Multi-Agent Advertising Delivery Systemcited by 0
- 2026One Task, Many Interfaces: Simple Cross-Interface Consistency Training Improves LLM Agent Robustnesscited by 0
- 2026One Task, Many Interfaces: Simple Cross-Interface Consistency Training Improves LLM Agent Robustness14 Oct 2026
- 2026AdCoEvo: A Co-Evolving Multi-Agent Advertising Delivery System14 Oct 2026
- 2026DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agents14 Oct 2026
- 2026Dyad: Extending Large Language Models with Native Typed Decision-Making28 Sep 2026
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing It22 Sep 2026
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agents27 Aug 2026
- 2026ToolAnchor: Anchoring Counterfactual Context to Boost Agentic Tool-use Capability14 Jul 2026
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL30 Jun 2026
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026TIER: Trajectory-Invariant Execution Rewards for Multi-Step Tool Composition16 May 2026
- 2026Teaching Thinking Models to Reason with Tools: A Full-Pipeline Recipe for Tool-Integrated Reasoning7 May 2026
- 2026GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learning25 Feb 2026
5 more
- 2025AutoForge: Automated Environment Synthesis for Agentic Reinforcement Learning28 Dec 2025
- 2025Scaling Agentic Reinforcement Learning for Tool-Integrated Reasoning in VLMs24 Nov 2025
- 2025Incentivizing Agentic Reasoning in LLM Judges via Tool-Integrated Reinforcement Learning27 Oct 2025
- 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learning8 Oct 2025
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Management8 Oct 2025
- 2025AutoForge: Automated Environment Synthesis for Agentic Reinforcement Learningcited by 17
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RLcited by 3
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agentscited by 3
- 2026ToolAnchor: Anchoring Counterfactual Context to Boost Agentic Tool-use Capabilitycited by 1
- 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learningcited by 0
- 2026TIER: Trajectory-Invariant Execution Rewards for Multi-Step Tool Compositioncited by 0
- 2026DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agentscited by 0
- 2026One Task, Many Interfaces: Simple Cross-Interface Consistency Training Improves LLM Agent Robustnesscited by 0
- 2026One Task, Many Interfaces: Simple Cross-Interface Consistency Training Improves LLM Agent Robustness14 Oct 2026
- 2026DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agents14 Oct 2026
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agents27 Aug 2026
- 2026ToolAnchor: Anchoring Counterfactual Context to Boost Agentic Tool-use Capability14 Jul 2026
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL30 Jun 2026
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026TIER: Trajectory-Invariant Execution Rewards for Multi-Step Tool Composition16 May 2026
- 2025AutoForge: Automated Environment Synthesis for Agentic Reinforcement Learning28 Dec 2025
- 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learning8 Oct 2025
- 2025Incentivizing Agentic Reasoning in LLM Judges via Tool-Integrated Reinforcement Learningcited by 17
- 2025Scaling Agentic Reinforcement Learning for Tool-Integrated Reasoning in VLMscited by 17
- 2026Teaching Thinking Models to Reason with Tools: A Full-Pipeline Recipe for Tool-Integrated Reasoningcited by 2
- 2026Teaching Thinking Models to Reason with Tools: A Full-Pipeline Recipe for Tool-Integrated Reasoning7 May 2026
- 2025Scaling Agentic Reinforcement Learning for Tool-Integrated Reasoning in VLMs24 Nov 2025
- 2025Incentivizing Agentic Reasoning in LLM Judges via Tool-Integrated Reinforcement Learning27 Oct 2025
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
- 2026GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learningcited by 12
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing Itcited by 0
- 2026Dyad: Extending Large Language Models with Native Typed Decision-Makingcited by 0
- 2026AdCoEvo: A Co-Evolving Multi-Agent Advertising Delivery Systemcited by 0
- 2026AdCoEvo: A Co-Evolving Multi-Agent Advertising Delivery System14 Oct 2026
- 2026Dyad: Extending Large Language Models with Native Typed Decision-Making28 Sep 2026
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing It22 Sep 2026
- 2026GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learning25 Feb 2026
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Management8 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
- 2026SkillGym: Internalizing Human Skills into LLMs for Real-World Problem Solving
- 2025Tool-R1: Sample-Efficient Reinforcement Learning for Agentic Tool Use
- 2024Learning to Use Tools via Cooperative and Interactive Agents
- 2025A Self-Improving Coding Agent
- 2026On Effectiveness and Efficiency of Agentic Tool-calling and RL Training
- 2026Tool-R0: Self-Evolving LLM Agents for Tool-Learning from Zero Data
- 2025SEW: Self-Evolving Agentic Workflows for Automated Code Generation