TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agents
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
Executing complex terminal tasks remains a significant challenge for open-weight LLMs, constrained by two fundamental limitations. First, high-fidelity, executable training environments are scarce: environments synthesized from real-world repositories are not diverse and scalable, while trajectories synthesized by LLMs suffer from hallucinations. Second, standard instruction tuning uses expert trajectories that rarely exhibit simple mistakes common to smaller models. This creates a distributional mismatch, leaving student models ill-equipped to recover from their own runtime failures. To bridge these gaps, we introduce TermiGen, an end-to-end pipeline for synthesizing verifiable environments and resilient expert trajectories. Termi-Gen first generates functionally valid tasks and Docker containers via an iterative multi-agent refinement loop. Subsequently, we employ a Generator-Critic protocol that actively injects errors during trajectory collection, synthesizing data rich in error-correction cycles. Fine-tuned on this TermiGen-generated dataset, our TermiGen-Qwen2.5-Coder-32B achieves a 31.3% pass rate on TerminalBench. This establishes a new open-weights state-of-the-art, outperforming existing baselines and notably surpassing capable proprietary models such as o4-mini. Dataset is avaiable at https://github.com/ucsb-mlsec/terminal-bench-env.
Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 23 of its 34 references that are in the map. First posted on arXiv 6 Feb 2026.
Builds on
23 of 34 references.
Closest ancestors · 3
Same direction, newest first
- 2025Kimi K2: Open Agentic Intelligence28 Jul
- 2023AgentTuning: Enabling Generalized Agent Abilities for LLMs19 Oct
- 2023FireAct: Toward Language Agent Fine-tuning9 Oct
Other references · 20
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
8 more
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
- 2024AgentInstruct: Toward Generative Teaching with Agentic Flowscited by 88
- 2025Simulating Environments with Reasoning Models for Agent Trainingcited by 52
- 2025Scaling Agent Learning via Experience Synthesiscited by 40
- 2023Competition-Level Problems are Effective LLM Evaluatorscited by 25
- 2025LLMs as Scalable, General-Purpose Simulators For Evolving Digital Agent Trainingcited by 17
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cyclecited by 9
Built on by
Citing papers per year: 2026: 24.
24 papers.
Sort:
By area:
- 2026Tmax: A simple recipe for terminal agentscited by 24
- 2026Qwen-AgentWorld: Language World Models for General Agentscited by 22
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 13
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
- 2026TerminalWorld: Benchmarking Agents on Real-World Terminal Taskscited by 10
- 2026OpenComputer: Verifiable Software Worlds for Computer-Use Agentscited by 9
- 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 8
- 2026KAT-Coder-V2 Technical Reportcited by 7
- 2026LiteCoder-Terminal: Scaling Long-Horizon Terminal Environments for Learning Language Agentscited by 7
- 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agentscited by 7
- 2026What Makes Interaction Trajectories Effective for Training Terminal Agents?cited by 6
- 2026SPADE: Self-Play in Adaptive Synthetic Executable Environmentscited by 6
12 more
- 2026SETA: Scaling Environments for Terminal Agentscited by 5
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 5
- 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environmentscited by 3
- 2026Envs-FORGE: Frontier-Optimized Reward-Grounded Environment Synthesis for Agent RLcited by 2
- 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital Worldcited by 1
- 2026ISE: An Execution-Grounded Recipe for Multi-Turn OS-Agent Trajectoriescited by 1
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 1
- 2026Learning Generalizable Behaviors for Terminal Agentscited by 1
- 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Taskscited by 1
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 0
- 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agentscited by 0
- 2026Can Terminal Agents Trust Their Own Verification? Diagnosing and Improving Self-Verificationcited by 0
- 2026Can Terminal Agents Trust Their Own Verification? Diagnosing and Improving Self-Verification30 Sep 2026
- 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agents19 Sep 2026
- 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Tasks10 Sep 2026
- 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environments3 Sep 2026
- 2026Learning Generalizable Behaviors for Terminal Agents23 Aug 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026SPADE: Self-Play in Adaptive Synthetic Executable Environments19 Aug 2026
- 2026Envs-FORGE: Frontier-Optimized Reward-Grounded Environment Synthesis for Agent RL14 Aug 2026
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks6 Aug 2026
- 2026Recursive Synthesis for Long-Horizon Terminal Tasks5 Aug 2026
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Training30 Jul 2026
- 2026SETA: Scaling Environments for Terminal Agents12 Jul 2026
12 more
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories10 Jul 2026
- 2026Qwen-AgentWorld: Language World Models for General Agents23 Jun 2026
- 2026Tmax: A simple recipe for terminal agents22 Jun 2026
- 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agents22 Jun 2026
- 2026ISE: An Execution-Grounded Recipe for Multi-Turn OS-Agent Trajectories9 Jun 2026
- 2026What Makes Interaction Trajectories Effective for Training Terminal Agents?2 Jun 2026
- 2026LiteCoder-Terminal: Scaling Long-Horizon Terminal Environments for Learning Language Agents28 May 2026
- 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital World25 May 2026
- 2026TerminalWorld: Benchmarking Agents on Real-World Terminal Tasks21 May 2026
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skills20 May 2026
- 2026OpenComputer: Verifiable Software Worlds for Computer-Use Agents19 May 2026
- 2026KAT-Coder-V2 Technical Report29 Mar 2026
- 2026Tmax: A simple recipe for terminal agentscited by 24
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 13
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
- 2026OpenComputer: Verifiable Software Worlds for Computer-Use Agentscited by 9
- 2026KAT-Coder-V2 Technical Reportcited by 7
- 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agentscited by 7
- 2026SETA: Scaling Environments for Terminal Agentscited by 5
- 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital Worldcited by 1
- 2026ISE: An Execution-Grounded Recipe for Multi-Turn OS-Agent Trajectoriescited by 1
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 1
- 2026Learning Generalizable Behaviors for Terminal Agentscited by 1
- 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Taskscited by 1
12 most cited of 14 All 14 (JSON)
- 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agents19 Sep 2026
- 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Tasks10 Sep 2026
- 2026Learning Generalizable Behaviors for Terminal Agents23 Aug 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Training30 Jul 2026
- 2026SETA: Scaling Environments for Terminal Agents12 Jul 2026
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories10 Jul 2026
- 2026Tmax: A simple recipe for terminal agents22 Jun 2026
- 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agents22 Jun 2026
- 2026ISE: An Execution-Grounded Recipe for Multi-Turn OS-Agent Trajectories9 Jun 2026
- 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital World25 May 2026
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skills20 May 2026
12 newest of 14 All 14 (JSON)
- 2026Qwen-AgentWorld: Language World Models for General Agentscited by 22
- 2026Qwen-AgentWorld: Language World Models for General Agents23 Jun 2026
- 2026TerminalWorld: Benchmarking Agents on Real-World Terminal Taskscited by 10
- 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 8
- 2026LiteCoder-Terminal: Scaling Long-Horizon Terminal Environments for Learning Language Agentscited by 7
- 2026What Makes Interaction Trajectories Effective for Training Terminal Agents?cited by 6
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 5
- 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environmentscited by 3
- 2026Envs-FORGE: Frontier-Optimized Reward-Grounded Environment Synthesis for Agent RLcited by 2
- 2026Can Terminal Agents Trust Their Own Verification? Diagnosing and Improving Self-Verificationcited by 0
- 2026Can Terminal Agents Trust Their Own Verification? Diagnosing and Improving Self-Verification30 Sep 2026
- 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environments3 Sep 2026
- 2026Envs-FORGE: Frontier-Optimized Reward-Grounded Environment Synthesis for Agent RL14 Aug 2026
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks6 Aug 2026
- 2026Recursive Synthesis for Long-Horizon Terminal Tasks5 Aug 2026
- 2026What Makes Interaction Trajectories Effective for Training Terminal Agents?2 Jun 2026
- 2026LiteCoder-Terminal: Scaling Long-Horizon Terminal Environments for Learning Language Agents28 May 2026
- 2026TerminalWorld: Benchmarking Agents on Real-World Terminal Tasks21 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agents
- 2026Trace2Tower: Transition-Aware EigenTrace Induction of Multi-Level Skills for LLM Agents
- 2026A Systematic Evaluation of Trajectory Data Curation for LoRA Fine-Tuning of Code Agents
- 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environments
- 2026DynSTEER: Dynamic Stage-wise Trajectory Evaluation and Execution-time Review for Agents
- 2025STeCa: Step-level Trajectory Calibration for LLM Agent Learning
- 2026AutoRefine: Compiling Trajectories into Validated Typed Agent Artifacts
- 2026From Confident Closing to Silent Failure: Characterizing False Success in LLM Agents