mlsanityData to 14 Oct 2026

Learning Generalizable Behaviors for Terminal Agents

arXiv 2608.22631 ↗First posted 23 Aug 2026cs.LGcited by 2

On the map: LLM agents and tool use → Reinforcement learning for LLM agents

Abstract (arXiv)

Terminal agents are a compelling application of large language models (LLMs), with the potential to integrate deeply into users' daily workflows. Reinforcement learning (RL) is a key technique for improving their capabilities, making scalable training environments a central challenge. Since public real-user interaction data are scarce, synthetic environments provide a practical alternative, but often suffer from domain gaps and limited fidelity, leading to poor generalization. Existing work mainly scales the quantity and diversity of synthetic environments, while reward-signal quality and the mechanisms governing generalization remain under-explored. We study how RL improves terminal agents and propose the Agentic Compositional Generalization hypothesis: rather than teaching new domain-specific skills from scratch, RL primarily shapes high-level decision-making behaviors that compose and route low-level skills acquired during pre-training and supervised fine-tuning (SFT). This account is consistent with our empirical results and suggests that verifier quality, which determines which behaviors are reinforced, is more important than simply increasing environment quantity or diversity. Motivated by this insight, we propose River, a simple training recipe that improves reward quality by filtering low-quality environments and augmenting outcome rewards with process-level behavior regularization. Using this recipe, our RL-trained agent achieves the best performance among evaluated open-source RL-trained 8B models across four terminal-agent benchmarks. River also generalizes across model families, scales, agent harnesses, and RL objectives. Using fewer than 30% of the TMax training environments, River improves RL gains by 106% and 30% on average for models ranging from 2B to 27B on Terminal-Bench-Lite and Terminal-Bench-v2.1, respectively.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 58 of its 79 references that are in the map. First posted on arXiv 23 Aug 2026.

Builds on

58 of 79 references.

Closest ancestors · 4

Same direction, newest first

  1. 2026OpenClaw-RL: Train Any Agent Simply by Talking10 Mar
  2. 2026Pushing Forward Pareto Frontiers of Proactive Agents with Behavioral Agentic Optimization11 Feb
  3. 2025Let It Flow: Agentic Crafting on Rock and Roll, Building the ROME Model within an Open Agentic Learning Ecosystem31 Dec
  4. 2025Demystifying Reinforcement Learning in Agentic Reasoning13 Oct

Other references · 54

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  5. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  6. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  7. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  8. 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
  9. 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
  10. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
  11. 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRscited by 377
  12. 2025Demystifying Long Chain-of-Thought Reasoning in LLMscited by 326
38 more
  1. 2025OpenThoughts: Data Recipes for Reasoning Modelscited by 304
  2. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
  3. 2025Spurious Rewards: Rethinking Training Signals in RLVRcited by 209
  4. 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasetscited by 198
  5. 2026Qwen3.5-Omni Technical Reportcited by 174
  6. 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
  7. 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 142
  8. 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 108
  9. 2024Self-Improvement in Language Models: The Sharpening Mechanismcited by 104
  10. 2024Learning Dynamics of LLM Finetuningcited by 95
  11. 2025Agent Learning via Early Experiencecited by 85
  12. 2025TOUCAN: Synthesizing 1.5M Tool-Agentic Data from Real-World MCP Environmentscited by 69
  13. 2026Endless Terminals: Scaling RL Environments for Terminal Agentscited by 54
  14. 2025Scaling Agent Learning via Experience Synthesiscited by 44
  15. 2026On Data Engineering for Scaling LLM Terminal Capabilitiescited by 43
  16. 2025From f(x) and g(x) to f(g(x)): LLMs Learn New Skills in RL by Composing Old Onescited by 42
  17. 2026Rethinking the Trust Region in LLM Reinforcement Learningcited by 37
  18. 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environmentscited by 33
  19. 2026Tmax: A simple recipe for terminal agentscited by 33
  20. 2025The Coverage Principle: How Pre-Training Enables Post-Trainingcited by 30
  21. 2026TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agentscited by 29
  22. 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 23
  23. 2026CLI-Gym: Scalable CLI Task Generation via Agentic Environment Inversioncited by 23
  24. 2026Toward Scalable Terminal Task Synthesis via Skill Graphscited by 22
  25. 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 20
  26. 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 19
  27. 2026SWE-Together: Evaluating Coding Agents in Interactive User Sessionscited by 18
  28. 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineeringcited by 17
  29. 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineeringcited by 16
  30. 2026GUI-Libra: Training Native GUI Agents to Reason and Act with Action-aware Supervision and Partially Verifiable RLcited by 16
  31. 2026Terminal Wrench: A Dataset of 331 Reward-Hackable Environments and 3,632 Exploit Trajectoriescited by 15
  32. 2026Synthetic Sandbox for Training Machine Learning Engineering Agentscited by 11
  33. 2026OpenThoughts-Agent: Data Recipes for Agentic Modelscited by 11
  34. 2026TerminalWorld: Benchmarking Agents on Real-World Terminal Taskscited by 10
  35. 2025Behavior Injection: Preparing Language Models for Reinforcement Learningcited by 8
  36. 2025Webscale-RL: Automated Data Pipeline for Scaling RL Data to Pretraining Levelscited by 8
  37. 2026NexForge: Scaling Agent Capabilities through Requirement-Driven Task Synthesis for LLMscited by 7
  38. 2026EvolveCoder: Evolving Test Cases via Adversarial Verification for Code Reinforcement Learningcited by 5

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Paying Less Generalization Tax: A Cross-Domain Generalization Study of RL Training for LLM Agents
  2. 2026Can RL Improve Generalization of LLM Agents? An Empirical Study
  3. 2026Why Does Reinforcement Learning Generalize? A Feature-Level Mechanistic Study of Post-Training in Large Language Models
  4. 2026Demonstrating Generalization Failures via Mixtures of Conditional Policies
  5. 2024A Survey On Enhancing Reinforcement Learning in Complex Environments: Insights from Human and LLM Feedback
  6. 2025Good Actions Succeed, Bad Actions Generalize: A Case Study on Why RL Generalizes Better
  7. 2025LLM-Driven Policy Diffusion: Enhancing Generalization in Offline Reinforcement Learning
  8. 2025Ground-Compose-Reinforce: Grounding Language in Agentic Behaviours using Limited Data