mlsanityData to 7 Oct 2026

TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agents

arXiv 2602.07274 ↗First posted 6 Feb 2026cs.AIcited by 24

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

  1. 2025Kimi K2: Open Agentic Intelligence28 Jul
  2. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMs19 Oct
  3. 2023FireAct: Toward Language Agent Fine-tuning9 Oct

Other references · 20

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  7. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  8. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  9. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  10. 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
  11. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
  12. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
8 more
  1. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  2. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
  3. 2024AgentInstruct: Toward Generative Teaching with Agentic Flowscited by 88
  4. 2025Simulating Environments with Reasoning Models for Agent Trainingcited by 52
  5. 2025Scaling Agent Learning via Experience Synthesiscited by 40
  6. 2023Competition-Level Problems are Effective LLM Evaluatorscited by 25
  7. 2025LLMs as Scalable, General-Purpose Simulators For Evolving Digital Agent Trainingcited by 17
  8. 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cyclecited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 24.

24 papers.

Sort:

By area:

  1. 2026Tmax: A simple recipe for terminal agentscited by 24
  2. 2026Qwen-AgentWorld: Language World Models for General Agentscited by 22
  3. 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 13
  4. 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
  5. 2026TerminalWorld: Benchmarking Agents on Real-World Terminal Taskscited by 10
  6. 2026OpenComputer: Verifiable Software Worlds for Computer-Use Agentscited by 9
  7. 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 8
  8. 2026KAT-Coder-V2 Technical Reportcited by 7
  9. 2026LiteCoder-Terminal: Scaling Long-Horizon Terminal Environments for Learning Language Agentscited by 7
  10. 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agentscited by 7
  11. 2026What Makes Interaction Trajectories Effective for Training Terminal Agents?cited by 6
  12. 2026SPADE: Self-Play in Adaptive Synthetic Executable Environmentscited by 6
12 more
  1. 2026SETA: Scaling Environments for Terminal Agentscited by 5
  2. 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 5
  3. 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environmentscited by 3
  4. 2026Envs-FORGE: Frontier-Optimized Reward-Grounded Environment Synthesis for Agent RLcited by 2
  5. 2026Claw-Anything: Benchmarking Always-On Personal Assistants with Broader Access to User's Digital Worldcited by 1
  6. 2026ISE: An Execution-Grounded Recipe for Multi-Turn OS-Agent Trajectoriescited by 1
  7. 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 1
  8. 2026Learning Generalizable Behaviors for Terminal Agentscited by 1
  9. 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Taskscited by 1
  10. 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 0
  11. 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agentscited by 0
  12. 2026Can Terminal Agents Trust Their Own Verification? Diagnosing and Improving Self-Verificationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agents
  2. 2026Trace2Tower: Transition-Aware EigenTrace Induction of Multi-Level Skills for LLM Agents
  3. 2026A Systematic Evaluation of Trajectory Data Curation for LoRA Fine-Tuning of Code Agents
  4. 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environments
  5. 2026DynSTEER: Dynamic Stage-wise Trajectory Evaluation and Execution-time Review for Agents
  6. 2025STeCa: Step-level Trajectory Calibration for LLM Agent Learning
  7. 2026AutoRefine: Compiling Trajectories into Validated Typed Agent Artifacts
  8. 2026From Confident Closing to Silent Failure: Characterizing False Success in LLM Agents