ProgAgent: Learning Tool Orchestration through Programmatic Training
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Large language models (LLMs) are increasingly expected to orchestrate diverse tools over long-horizon tasks. Existing agents typically use Direct Tool Calling (DTC), where the model invokes tools sequentially, and tool responses accumulate in the model context, which can lead to context rot and orchestration breakdown. In contrast, Programmatic Tool Calling (PTC) invokes tools through executable code and stores intermediate results in runtime variables rather than appending them to the context. Prior work has explored PTC mainly as an inference-time optimization, but its benefits for agentic training remain unclear, and suitable verifiable training tasks are scarce. In this work, we introduce ProgAgent, a full PTC training stack, comprising a pipeline for synthesizing verifiable long-horizon tasks, a lightweight PTC runtime, and a two-stage training recipe. Using only 215 tasks instantiated at four environment scales, ProgAgent yields higher pass rates than the evaluated baselines of comparable size across four benchmarks. On LOCA-bench, ProgAgent-14B achieves a 30.7% pass rate at a 64k-token environment state, where these baselines score zero. Cross-harness experiments show that PTC-trained models outperform DTC-trained models under both evaluation interfaces, suggesting that the benefits of PTC training extend beyond the interface.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 30 of its 45 references that are in the map. First posted on arXiv 10 Oct 2026.
Builds on
30 of 45 references.
Closest ancestors · 4
Same direction, newest first
- 2026The Bitter Lesson of Tool Calling6 Aug
- 2026EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL18 May
- 2026EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesis9 Jan
- 2025TOUCAN: Synthesizing 1.5M Tool-Agentic Data from Real-World MCP Environments1 Oct
Other references · 26
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
- 2025Group Sequence Policy Optimizationcited by 835
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2024SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuningcited by 355
- 2025Recursive Language Modelscited by 104
14 more
- 2025The Tool Decathlon: Benchmarking Language Agents for Diverse, Realistic, and Long-Horizon Task Executioncited by 85
- 2026Agent World Model: Infinity Synthetic Environments for Agentic Reinforcement Learningcited by 66
- 2025Simulating Environments with Reasoning Models for Agent Trainingcited by 57
- 2026Agent-World: Scaling Real-World Environment Synthesis for Evolving General Agent Intelligencecited by 54
- 2025Scaling Agent Learning via Experience Synthesiscited by 44
- 2025Stabilizing Reinforcement Learning with LLMs: Formulation and Practicescited by 41
- 2026ScaleEnv: Scaling Environment Synthesis from Scratch for Generalist Interactive Tool-Use Agent Trainingcited by 32
- 2026Qwen-AgentWorld: Language World Models for General Agentscited by 28
- 2026WebWorld: A Large-Scale World Model for Web Agent Trainingcited by 26
- 2026SWE-World: Building Software Engineering Agents in Docker-Free Environmentscited by 25
- 2026LOCA-bench: Benchmarking Language Agents Under Controllable and Extreme Context Growthcited by 14
- 2026Prime Agent: A Self-Improving RLM Harnesscited by 13
- 2026A Programming Paradigm for Spatiotemporal Composabilitycited by 8
- 2026AgentSkiller: Scaling Generalist Agent Intelligence through Semantically Integrated Cross-Domain Data Synthesiscited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Action-Space Shaping for LLM Agents: Measuring and Mitigating Tool-Schema Bias
- 2026Sutradhara: An Intelligent Orchestrator-Engine Co-design for Tool-based Agentic Inference
- 2026Scaling Agentic Capabilities, Not Context: Efficient Reinforcement Finetuning for Large Toolspaces
- 2026Utility-Guided Agent Orchestration for Efficient LLM Tool Use
- 2025PLAY2PROMPT: Zero-shot Tool Instruction Optimization for LLM Agents via Tool Play
- 2024ToolACE: Winning the Points of LLM Function Calling
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing It
- 2026MAVEN: Improving Generalization in Agentic Tool Calling