Clearing chat history helps AI agents find better solutions
Microsoft Research found that AI agents can plateau even with more compute. Accumulated chat history limits their ability to explore new solutions, according to the study.

Clearing chat history helps AI agents find better solutions. Microsoft Research discovered that long-running AI research agents often plateau despite additional compute resources. The study highlights that accumulated conversation context can constrain their search, keeping them focused on similar solutions instead of exploring potentially better approaches. This phenomenon occurs because AI systems may become trapped in 'idea basins,' where they repeatedly refine the same solutions without venturing into new territory.
The research team studied 'Autoresearch agents,' AI systems that propose solutions, evaluate them, and refine them based on feedback. In their experiments, eight independent runs of the same agent on the same task plateaued at significantly different performance levels, with final scores ranging from 68.3 to 100.0. This variation suggests that chat history can influence the trajectory of an AI agent's problem-solving process, leading to divergent outcomes even under identical conditions.
The study tested a technique called 'Fork-and-Flush,' which involves periodically clearing chat history to reset the agent's search space. The results showed a 66 percent higher normalized average score on the same compute budget when this approach was used. The researchers tested Fork-and-Flush on 13 long-running tasks, including polyomino packing, demonstrating its effectiveness across a range of complex problems.
The implications of this research extend beyond academic interest. For organizations deploying AI agents, the findings suggest that managing chat history could be a critical factor in achieving optimal performance. If chat history is not periodically cleared, AI systems may become locked into suboptimal solutions, reducing their ability to adapt and innovate. This has important consequences for the cost, governance, and overall effectiveness of AI systems in real-world applications.
The study is still developing, with ongoing research exploring how different strategies for managing chat history affect AI agent performance. While the findings are promising, they also highlight the need for further investigation into the long-term behavior of AI systems. The research team emphasizes that this is an evolving field, and more work is needed to fully understand the trade-offs between maintaining context and enabling exploration in AI agents.