NeurIPS 2026QuestionsPapersAreasAboutMarkdown

ECHO: Terminal Agents Learn World Models for Free

Vaishnavi Shrivastava, Ahmed Awadallah, Dimitris Papailiopoulos

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Agents, Evals & Benchmarks › Agentic Reinforcement Learning with World Models · Type: new method · Keywords: CLI agents, reinforcement learning, auxiliary loss, observation prediction, world model, terminal feedback

Areas: AI Agents › Agent Optimization and Evaluation › Agentic Reinforcement Learning; RL for LLMs & Agents › Language Model Agents › World Models for Agents

Summary

ECHO introduces an auxiliary loss that trains the policy to predict observation tokens, turning terminal feedback into a dense supervision signal that improves world model priors.

Explained to a 5-year-old

A computer program can talk to a terminal, which is like a robot that follows commands. When the program sends a command, the terminal runs it and shows the result on the screen. The result includes text, error messages, and file contents. Usually the program only learns if the command succeeded or failed. The new idea uses all that screen text as extra clues to understand what will happen next. This helps the program finish tasks more often without needing extra help.

Explained to a 5-year-old, longer

A computer program can talk to a terminal, which is like a robot that follows commands. When the program sends a command, the terminal runs it and shows the result on the screen. The result includes text, error messages, and file contents. Usually the program only learns if the command succeeded or failed. The new idea uses all that screen text as extra clues to understand what will happen next. This helps the program finish tasks more often without needing extra help. It works by adding a special loss that makes the program predict those screen outputs while it learns which commands to send. This extra loss uses the same computation as the normal learning, so it does not need more data or time. Because the program sees the consequences of its actions, it builds a better mental model of how the terminal works. This better model lets it choose commands that are more likely to succeed. The approach also works when combined with other learning methods, matching the performance of methods that need expert examples. It can even improve itself by exploring new commands and learning from the feedback alone.

For a technical reader

The system adds an auxiliary loss that predicts observation tokens (stdout, errors, file contents) alongside the policy gradient, providing dense supervision from terminal feedback. This loss reuses the existing forward pass, eliminating the need for additional rollouts. The method improves world model priors, leading to higher success rates on CLI tasks. When combined with GRPO, it matches expert fine-tuned performance without requiring expert demonstrations. The approach also enables self-improvement through exploration alone.

Problem

Standard reinforcement learning for CLI agents updates action tokens while ignoring the environment's responses, discarding valuable feedback that could guide the policy. This limits the agent's ability to learn accurate world models of terminal dynamics.

Method

The approach adds an auxiliary loss that predicts observation tokens (stdout, errors, file contents) alongside the policy gradient, reusing the same forward pass to provide dense supervision without extra rollouts.

Results

The approach nearly doubles pass@1 on TerminalBench 2, raising Qwen3-8B from 2.70% to 5.17% and Qwen3-14B from 5.17% to 10.79%; combined with GRPO it matches expert-SFT-then-GRPO on held-out tasks without demonstrations and closes roughly half the gap, and it enables self-improvement without verifier rewards.

Contributions

The paper identifies terminal feedback as a dense supervision signal and proposes an auxiliary loss that leverages observation tokens during training, enabling agents to learn world models without extra rollouts. It also demonstrates substantial performance gains on terminal benchmarks and shows that the approach can self-improve without external verifiers.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction