OpenThoughts-Agent: Cracking the Data Recipe for Generalist AI Agents

Data Recipes for Agentic Models

Negin Raoof, Richard Zhuang, Marianna Nezhurina, Etash Guha, Atula Tejaswi, Ryan Marten, Charlie Ruan, Tyler Griggs, Alexander Shaw, Hritik Bansal, E Kelly Buchanan, Artem Gazizov, Reinhard Heckel, Chinmay Hegde, Sankalp Jajee, Daanish Khazi, Emmanouil Koukoumidis, Xiangyi Li, Hange Liu, Shlok Natarajan, Nicholas Roberts, Ethan Shen, Nishad Singhi, Michael Siu, Ashima Suvarna, Hanwen Xing, Patrick Yubeaton, Robert Zhang, Leon Chen, Xiaokun Chen, Steven Dillmann, Saadia Gabriel, Xunyi Jiang, Anurag Kashyap, Boxuan Li, Yein Park, Minh Pham, Sujay Sanghavi, Lin Shi, Ke Sun, Yixin Wang, Zhiwei Xu, Erica Zhang, Siyan Zhao, Wanjia Zhao, Jenia Jitsev, Alex Dimakis, Benjamin Feuer, Ludwig Schmidt, - Madison, California, U San, Amazon, Microsoft
Summary
Problem
Method
Results
Takeaways
Abstract

OpenThoughts-Agent introduces a systematic, fully open data curation pipeline for training agentic language models. By fine-tuning Qwen3-32B on a curated 100K SFT dataset, the resulting model (OT-Agent-32B) achieves state-of-the-art performance (44.8% average accuracy) across seven agentic benchmarks, outperforming Nemotron-Terminal-32B by 3.9 percentage points.

TL;DR

The OpenThoughts-Agent (OT-Agent) project provides a long-awaited "cookbook" for training agentic LLMs. By systematically ablating every stage of the data pipeline, the researchers developed OpenThinker-Agent-32B, which now stands as the strongest open-data model in its class, excelling in everything from GitHub issue resolution to complex terminal-based system administration.

The "Secret Sauce" Problem

In the race to build autonomous agents, the industry has become increasingly secretive about training data. While model weights are often shared, the composition of the data remains a black box. The central challenge is generalization: a model trained solely on coding tasks often fails at general terminal use, and vice versa. OT-Agent solves this by treating data curation as a rigorous science rather than an art.

Methodology: The Six-Stage Pipeline

The authors didn't just guess which data worked; they ran over 100 controlled experiments to optimize a six-stage SFT (Supervised Fine-Tuning) pipeline.

1. The Teacher Paradox

One of the most counter-intuitive findings was that the strongest model does not make the best teacher. Despite GPT-5.3-Codex being more capable, GLM-4.7 proved to be a superior teacher for agentic rollouts. This suggests that the "step-by-step" reasoning style of certain models is more effectively distilled into smaller student models than the "leap-to-conclusion" style of frontier models.

2. Architecture of the SFT Pipeline

The pipeline systematically filters tasks and trajectories to ensure the student learns how to "think" through a problem rather than just memorizing a solution.

Model Architecture and Pipeline

3. The Power of "Long-Turn" Filtering

The team found that filtering for trajectories with at least 5 turns significantly boosted performance. Even when controlling for the total number of tokens, these "hard-won" solutions provided much richer supervision for the model's ability to self-correct and persist through errors.

Reinforcement Learning: Exploration vs. Exploitation

The study also explored Reinforcement Learning (RL), specifically focusing on which data sources provide the best "reward signal."

  • Pymethods2test: This competitive programming source emerged as the champion. Because these tasks are difficult but have clear verifiers, they forced the model to explore more aggressively—doubling its internal "thinking tokens" to find correct solutions.
  • Behavioral Shift: Post-RL models didn't just get luckier; they became more "stubborn," using more tool calls and self-correction phrases to navigate complex environments.

Experimental Results: Scaling to SOTA

The results show a clear monotonic improvement as the dataset size increases, especially when using synthetic task augmentation to keep the "task diversity" high.

Performance Scaling Trends

As shown in the table below, OT-Agent-32B sets a new benchmark for open-data models across diverse evaluations:

BenchmarkOT-Agent-32BNemotron-Terminal-32BQwen3-32B (Base)
SWE-Bench Verified54.0%41.9%29.1%
Terminal-Bench 2.026.2%25.1%7.5%
BFCL (Tool Use)85.9%69.1%68.3%

Critical Insight & Future Outlook

OT-Agent proves that the path to better agents isn't just "more data," but "more diverse tasks with complex traces." However, the authors note a limitation: the RL experiments were only conducted at the 8B scale due to compute costs. The next frontier will be determining if these same RL recipes scale linearly to 70B+ models.

By releasing the full pipeline and dataset, the OpenThoughts team has lowered the barrier for the community to build agents that don't just "chat," but actually "do."


Takeaway for Practitioners

If you are building an agent, focus on synthetic instruction rewriting and min-turn filtering. It is better to have 10,000 multi-turn, complex trajectories than 100,000 single-turn "easy" tasks.

Find Similar Papers

Try Our Examples

  • Search for recent papers that investigate why stronger language models (like GPT-4 or Kimi) sometimes perform worse as distillation teachers for agentic tasks compared to mid-tier models.
  • Which studies first introduced the concept of 'execution trace filtering' for agentic SFT, and how has this been optimized for long-horizon software engineering tasks?
  • Identify research exploring the transferability of terminal-use agent training data to robotic process automation (RPA) or GUI-based agentic workflows.
Contents
OpenThoughts-Agent: Cracking the Data Recipe for Generalist AI Agents
1. TL;DR
2. The "Secret Sauce" Problem
3. Methodology: The Six-Stage Pipeline
3.1. 1. The Teacher Paradox
3.2. 2. Architecture of the SFT Pipeline
3.3. 3. The Power of "Long-Turn" Filtering
4. Reinforcement Learning: Exploration vs. Exploitation
5. Experimental Results: Scaling to SOTA
6. Critical Insight & Future Outlook
6.1. Takeaway for Practitioners