TL;DR
SETA introduces a scalable framework to synthesize and evolve verifiable terminal environments for reinforcement learning (RL) agent training. By converting real-world Q&A and code platforms into over 4,500 interactive tasks, SETA-Env enables state-of-the-art terminal agent performance and cross-task generalization at the 8B model scale.
What Problem Does This Paper Address?
Large Language Models (LLMs) are rapidly transitioning into interactive agents capable of executing tasks across web, GUI, and terminal interfaces. Among these, the terminal command line stands out as a powerful, general-purpose text interface covering everything from system administration to data science.
However, training terminal agents is exceptionally difficult. Unlike coding environments that rely on static repository edits and clear pull requests, terminal environments are stateful—every command alters hidden system states. Scaling training data requires diverse instructions, fully executable sandboxed environments, and reliable verification logic, all of which are scarce in natural datasets. Existing synthetic datasets often lack realistic grounding or adaptive difficulty control.
Methods
The authors propose SETA, a framework featuring two consecutive pipelines sharing a unified verification mechanism:
- SETA-Synth: Converts human-validated online sources (Stack Overflow, Ask Ubuntu, Kaggle, NL2Bash) into standardized RL environments. An Idea Agent drafts a task specification, which a Datapoint Agent instantiates into a sandboxed Docker environment with unit tests. It enforces a "no-op" check (tests fail before agent action) and an "oracle" check (the ground-truth solution passes). A separate Trajectory Judge Agent filters out hidden design flaws post-rollout.
- SETA-Evol: Calibrates task difficulty to the model's capability frontier. It adaptively applies mutation operators—Difficulty Increase (adding constraints/edge cases), Context Shift (swapping technologies, e.g., Nginx to Apache), or Difficulty Decrease (simplifying tasks)—based on the training model's current pass rate.
For agent training, the authors utilize Group Relative Policy Optimization (GRPO) with a dense partial-progress reward based on the fraction of unit tests passed, plus a completion bonus.
Datasets
- SETA-Env: The primary contribution—the largest open-source verifiable terminal RL dataset to date, containing 4,567 environments (3,255 synthesized and 1,312 evolved) spanning 14 tech-stack categories.
- Evaluation Benchmarks: Evaluated on Terminal-Bench 1.0 & 2.0 (CLI evaluation), and cross-domain code benchmarks: CRUST-Bench (C-to-Rust translation), CompileBench (iterative compilation/repair), and QuixBugs (algorithmic program repair).
Key Insights and Ideas
- The Instruction-Test Gap: Standard verification (no-op + oracle) can fail if the test suite and oracle solution silently share unstated assumptions. SETA's independent Trajectory Judge Agent acts as a fresh auditor to catch these hidden design flaws by analyzing failure traces from independent rollouts.
- Incentivizing Reasoning via RL: Training on SETA-Env fundamentally changes model behavior. Instead of executing commands reactively, RL-trained models learn to output structured reasoning and planning tokens before calling tools, drastically reducing repetitive errors.
- Cross-Capability Transfer: Terminal agent training doesn't just improve bash command usage; it significantly boosts performance on complex software engineering tasks like multi-file code translation and iterative compilation debugging.
Key Results
- Qwen3-8B trained via GRPO on SETA-Env achieved a 12% pass rate on Terminal-Bench 2.0, a 3.3× improvement over the base model and the highest reported result for an 8B-scale RL model, approaching the performance of GPT-OSS-120B.
- DeepSeek-V4-Flash performance improved under the same harness, with pass@1 rising from 40% to 43% and pass@5 increasing from 54% to 58%.
- Generalization: On CompileBench, the SETA-trained 8B model jumped from 6.7% to 40%, outperforming the much larger Qwen3-30B base model.
Limitations and Future Work
- The framework has only been validated on two model families (Qwen and DeepSeek) at relatively small scales and training budgets.
- Environments are strictly text-based terminal interactions; extending this framework to richer settings like graphical user interfaces (GUIs) or multimodal setups remains future work.
- The authors note potential safety risks, as highly capable terminal agents could be misused for unauthorized system exploitation, emphasizing the need for sandboxed training and responsible data curation.
Summary updated