Dimitris Papailiopoulos on X: "ECHO: Terminal Agents Learn World Models for Free" / Twitter
To view keyboard shortcuts, press question mark View keyboard shortcuts Home Notifications Chat Bookmarks Articles Profile More Tweet Tim Kostolansky @thkostolansky Tweet See new posts Conversation Dimitris Papailiopoulos @DimitrisPapail ECHO: Terminal Agents Learn World Models for Free 45 179 844 399K Co-written with @VaishShrivas We taught CLI agents to predict terminal responses during RL, alongside the usual GRPO loss on actions. The change is tiny: same rollout and forward pass, but stop masking out terminal-output tokens. The effect is huge: all evals improve, and the resulting models measurably learn how the terminal behaves. CLI agents can learn a terminal model for free — and use it to act better! This is ECHO: a hybrid objective that trains on both sides of the interaction: what the agent writes, and what the terminal writes back. Check out the full paper, and code on top of SkyRL. GIF If you’re too busy to read this whole post, here’s what we found: Standard agent RL throws
Co-written with @VaishShrivas We taught CLI agents to predict terminal responses during RL, alongside the usual GRPO loss on actions. The change is tiny: same rollout and forward pass, but stop masking out terminal-output tokens. The effect is huge: all evals improve, and the resulting models measurably learn how the terminal behaves. CLI agents can learn a terminal model for free — and use it to act better! This is ECHO: a hybrid objective that trains on both sides of the interaction: what the agent writes, and what the terminal writes back. Check out the full paper, and code on top of…
saved by
related reading
- Why GRPO is Important and How it Worksghost.oxen.ai
- Machine Studying | Jacob Xiaochen Lijacobxli.com
- On-Policy Distillation - Thinking Machines Labthinkingmachines.ai
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- True Agents Model the Worldprimeintellect.ai
- State of RL for reasoning LLMs | A. Weersaweers.de
- GRPO++: Tricks for Making RL Actually Workcameronrwolfe.substack.com
- [2507.19457] GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningarxiv.org
- How DeepMind's Generally Capable Agents Were Trained — LessWronglesswrong.com
- What I learned this week - Can distillation be stopped, Mythos and the cybersecurity equilibrium, Pipeline RLdwarkesh.com
- Interactive Visualization of RL Algorithms for LLM Trainingzcy233035.github.io
- The State of Reinforcement Learning for LLM Reasoningmagazine.sebastianraschka.com