When training AI agents to perform multi-step tasks like coding or tool use, standard reinforcement learning often fails if the agent never tries the correct action, it cannot learn from rewards it never earns. This is especially problematic for specific behaviors like using a rare tool format, which the agent might never attempt.
The authors propose adding per-turn textual feedback, short hints generated by a judge model, directly into the agent's context only after a failed action. The agent then minimizes a loss that pulls its next action toward what it would have done had it seen the hint, while still receiving a standard reward for success.
This approach improved the target behaviors in a software-engineering agent without harming its primary coding performance. By limiting feedback to failed turns, the method avoided common training instabilities like collapsing diversity or shortening reasoning, making the overall learning more stable and effective.
