TL;DR
Training AI agents to use a computer terminal is notoriously hard because every command changes the system's state, and there's no natural "answer key" like GitHub pull requests. SETA solves this by introducing a two-stage factory that turns messy online Q&A posts, notebooks, and command datasets into over 4,500 executable, verifiable terminal environments—and then adaptively evolves their difficulty to match what the AI actually needs to learn. Training an 8B model with reinforcement learning (RL) on this dataset triples its performance on Terminal-Bench 2.0 and even transfers to general coding benchmarks.
What Problem Does This Paper Address?
Large language models (LLMs) are increasingly acting as agents that use tools. While software engineering agents have thrived thanks to repositories like GitHub—where pull requests and issues provide natural, unit-test-verified training signals—terminal agents operate in a much wilder, stateful world. A single bash command can silently alter hidden system states, and tasks span everything from system administration to machine learning.
Scaling RL for terminal agents faces two major bottlenecks:
- No natural grounding: You have to simultaneously synthesize coherent task instructions, an executable environment (like a Docker container), and reliable verification tests.
- Skewed difficulty: Existing synthetic datasets don't adapt to the model being trained. If a task is way too easy or impossibly hard, RL algorithms like GRPO get zero learning signal because there's no variance in the rewards.
Methods
The authors introduce SETA, a framework built around two consecutive pipelines that share a unified verification system:
- SETA-Synth (From the Wild to Docker): This pipeline converts human-validated sources—Stack Overflow, Unix & Linux StackExchange, Kaggle Notebooks, and NL2Bash—into standardized RL environments. An Idea Agent uses source-specific adapters to draft a task specification, which a Datapoint Agent turns into a Dockerfile, instructions, a reference solution, and unit tests. Every environment must pass a no-op test (doing nothing fails) and an oracle test (the reference solution passes). Crucially, if 100% of agent rollouts fail on a task, a Trajectory Judge Agent audits the logs to separate genuinely hard tasks from broken ones with unstated assumptions.
- SETA-Evol (Adaptive Difficulty): Instead of uniformly making tasks harder, SETA-Evol looks at how the current model performs and picks one of three mutations: Difficulty Increase (for easy tasks), Context Shift (swapping tools/domains while keeping difficulty steady for medium tasks), or Difficulty Decrease (simplifying impossibly hard tasks). This keeps tasks in the "productive RL training zone."
- RL Training: The models are trained using GRPO with dynamic sampling (filtering out tasks with uniform rewards) and a partial-progress reward—giving credit for the fraction of unit tests passed, plus a 0.2 bonus for passing all of them.
Datasets
The authors release SETA-Env, the largest open-source verifiable terminal RL dataset to date, containing 4,567 environments (3,255 synthesized + 1,312 evolved) across 14 categories, led by system administration (35.8%), machine learning (12.2%), and data processing (10.5%).
For evaluation, they test on Terminal-Bench 1.0 and 2.0, as well as three adjacent coding benchmarks to check generalization: CRUST-Bench (C-to-Rust translation), CompileBench (iterative compilation/repair), and QuixBugs (program repair).
Key Insights and Ideas
- Standard checks miss silent flaws: Even if a task passes no-op and oracle tests, the agent that wrote the test and solution might share hidden, unstated assumptions. Post-rollout trajectory judging caught 94 such design flaws (~2% of audited tasks).
- Partial credit unlocks RL: Switching from binary pass/fail rewards to partial-progress rewards increased the share of tasks with meaningful reward variation from 49% to 86%.
- Grounded reasoning beats raw token count: In a case study on
nginx-request-logging, a base "thinking" model produced 11× more tokens than a non-thinking base model yet scored the exact same (1/8 tests). The SETA-trained RL model solved 8/8 tests by adapting to concrete execution errors—like missingsudoor the absence ofsystemdinside Docker.
Key Results
- Qwen3-8B on Terminal-Bench 2.0: Mean pass@1 jumped from 3.1% to 10.7% (with a best run of 12%). On Terminal-Bench 1.0, pass@1 rose from 7.8% to 17.8%.
- Cross-backbone transfer (DeepSeek-V4-Flash): Under the CAMEL harness on Terminal-Bench 2.0, pass@1 improved from 40% to 43% and pass@5 from 54% to 58%. Under the Terminus-2 harness, pass@1 jumped from 23% to 41%.
- Generalization to coding tasks (Qwen3-8B, pass@4): Performance surged on CompileBench (6.7% → 40%), QuixBugs (7.5% → 15.0%), and CRUST-Bench (15% → 24%), even surpassing the larger Qwen3-30B-A3B base model on CompileBench and QuixBugs.
Limitations and Future Work
The authors note that their validation covers two model families on selected training subsets, and differences in training budgets limit strict causal claims about dataset scaling. Additionally, the individual contributions of SETA-Synth vs. SETA-Evol and partial-progress rewards were not isolated in controlled ablations. Finally, human audits still uncovered occasional residual verifier or oracle failures, underscoring the need for ongoing quality control as future work expands to broader models and non-terminal interfaces.
Summary updated