Tmax: A simple recipe for terminal agents
The paper introduces Tmax, a simple yet powerful open-source recipe for training terminal agents that leverages a novel data generation taxonomy to create a large-scale dataset, enabling a 9B-parameter model to achieve state-of-the-art performance on Terminal-Bench 2.0 using only outcome-based reinforcement learning.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Picture: Teaching a Robot to Use a Computer
Imagine you have a very smart robot (a Large Language Model) that can write code and answer questions. But right now, it's like a brilliant student who has never been allowed to touch a keyboard or use a computer terminal. It knows about computers, but it doesn't know how to actually use them to get things done.
The TMAX project is a simple, effective "training camp" designed to teach these robots how to use a computer terminal (the black screen where you type commands) to solve complex, real-world problems.
The Problem: The "Gym" Was Too Easy
Before this paper, researchers tried to train these robots using existing datasets. The authors compared these old datasets to a gym with only light dumbbells.
- The Issue: The tasks were too simple (like "list files" or "move a file"). Modern robots could solve them instantly, so they didn't learn anything new.
- The Gap: Real-world tasks are harder. They involve setting up servers, debugging complex code, and running long sequences of commands. Previous training data didn't cover this "heavy lifting."
The Solution: Building a Custom "Obstacle Course" (TMAX-15K)
To fix this, the authors built a massive new dataset called TMAX-15K. Think of this as designing a custom, high-tech obstacle course for the robots.
Instead of writing every single task by hand (which would take forever), they built a recipe generator:
- Mix and Match: They created a system that randomly combines different "ingredients":
- Domain: Is this about security? Data science? File management?
- Persona: Is the robot acting like a hacker, a sysadmin, or a data analyst?
- Difficulty: Is this a 3-step task or a 30-step marathon?
- Tools: Does the robot need to handle audio files, images, or complex code?
- The "Teacher": They used a super-smart AI (Gemini-3-Pro) to generate the actual instructions and the "answer key" for these tasks.
- The Result: They created 14,600 unique tasks. Crucially, they made sure the difficulty was just right—not too easy, not impossible. It's like a video game that scales the difficulty so the player is always challenged but never stuck.
The Training Method: Learning by Doing (Reinforcement Learning)
Once they had the obstacle course, they needed a way to train the robots. They used a method called Reinforcement Learning (RL).
- The Analogy: Imagine a dog learning to fetch. You don't explain the physics of throwing a ball. You just throw the ball, and if the dog brings it back, you give it a treat (a reward). If it fails, no treat.
- The TMAX Recipe:
- The robot tries to solve a task in the terminal.
- If it succeeds, it gets a "reward."
- If it fails, it gets nothing.
- The robot tries again and again, slowly figuring out the best way to type commands to get those rewards.
Key Innovation: The authors found that standard training methods were unstable (the robot would "forget" what it learned or crash). They tweaked the math (using a method called DPPO and keeping calculations precise) to keep the training stable, like adding a shock absorber to a bumpy ride.
The Results: Small Models, Big Wins
The most surprising part of the paper is the size of the robot they trained.
- The Underdog: They trained a model with only 9 billion parameters (which is considered "small" in the AI world).
- The Victory: This small model, named TMAX-9B, beat almost every other "open" (publicly available) model, including some that were 3 to 4 times larger.
- The Comparison: It performed almost as well as the top-tier, secret models used by big tech companies (like Claude Haiku).
Why is this a big deal?
Usually, to get better at a hard task, you need a bigger, more expensive brain. TMAX showed that with the right training data and a good recipe, a smaller, cheaper brain can outperform much larger ones.
Does the Training Stick? (Generalization)
The authors asked: "Did the robot just memorize the answers to our specific test, or did it actually learn a skill?"
- The Test: They put the trained robot in different environments (different "gym setups") and gave it different types of problems (like fixing software bugs or solving math puzzles).
- The Result: The robot got better at everything. It didn't just learn to pass their specific test; it learned how to think and use tools more effectively. It was like teaching a student how to study; once they learned the method, they could pass any exam, not just the one they practiced on.
Summary
The TMAX paper is a "how-to" guide for teaching AI agents to use computers.
- They built a massive, diverse, and difficult dataset (TMAX-15K) using a smart generator.
- They used a stable training method to teach small models how to navigate this dataset.
- The result: A small, open-source model that is now the best of its kind at using computer terminals, proving that better training data matters more than just making the model bigger.
The authors have released all their code, data, and models for free, hoping this becomes the standard "recipe" for future researchers to build even smarter terminal agents.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.