Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarThe Decoder→ original

Microsoft Wipes AI Agents' Chat History and Gets Up to 66% Better Results on the Same Budget

Microsoft researchers found that autonomous AI agents get stuck in "idea basins": as the chat context grows, they cling ever more stubbornly to one local region of the solution space and cannot get out of it. The Fork-and-Flush method branches the process and erases the conversation history, but keeps the workspace (files, code, artifacts). On the same compute budget, results improved by up to 66%.

AI-processed from The Decoder; edited by Hamidun News
Microsoft Wipes AI Agents' Chat History and Gets Up to 66% Better Results on the Same Budget
Source: The Decoder. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceThe Decoder ↗
Editor-in-Chief
Problema long context narrows the search for solutions.
Fixreset the chat, keep the workspace.
Effectup to +66% on the same compute.

Autonomous AI agents get worse at finding solutions as their own conversation piles up. That is the conclusion of Microsoft researchers, who call the effect "idea basins": local regions of the solution space that an agent with a long context can no longer escape. Their Fork-and-Flush method wipes the chat history but keeps the workspace. On the same compute budget, it delivers results up to 66% better.

How an agent gets stuck in a basin

An agent that works on a task for a long time fills its context, step by step, with hypotheses, failed attempts, and intermediate conclusions. All of this becomes the premise for the next step. The model keeps developing the direction it has already chosen, even when that direction leads to a dead end, and every new turn reinforces the trajectory. The researchers describe this as falling into a local region with no way out under the normal course of work.

A bigger budget does not solve the problem. If an agent keeps circling one idea, extra tokens and steps only deepen the basin. How the compute is spent therefore matters.

Fork-and-Flush: branching and resetting

The method consists of two operations. Fork creates branches of the process, and Flush erases the chat history. The key detail: only the conversation is erased, while the workspace stays untouched. Everything the agent has already built by hand survives: files, code, artifacts. The model gets a clean context and looks at the ready-made working environment without the baggage of its earlier reasoning.

The agent thus returns to the task without accumulated biases, yet loses no tangible progress. That is where the efficiency comes from: there is no need to restart the work from scratch.

Key parameters according to the study:

  • Problem: "idea basins" caused by a growing chat context;
  • What is reset: the agent's conversation history;
  • What is kept: the workspace;
  • Budget: the same amount of compute as in the baseline approach;
  • Result: a gain of up to 66%.

"Up to 66%" means a maximum, not an average. The original publication in The Decoder gives no breakdown by task, model, or benchmark, so it is too early to judge the typical gain. You need to read the Microsoft paper itself.

What to try in your own agents

The idea applies well beyond a research lab, especially in coding, where agents work for hours. If the results hold up in practice, several steps follow from them.

First: store state in the workspace, not in the dialogue. Everything important (code, notes, test results) should live in files and the repository, where it can be read back after a context reset.

Second: do not stretch a single session indefinitely. If an agent makes no progress for a long time, it is cheaper to clear the context and give it a fresh look at the project's current state than to keep pouring tokens into the same dialogue.

Third: run several branches with a clean context instead of one long one. The compute budget stays the same, but you get more attempts at finding a different "basin."

The method challenges the common assumption that accumulated context always helps. For agentic systems, it is apparently better to treat context as a resource with diminishing returns, one to be managed as deliberately as tokens and run time.

Story

Key Questions Answered

How an agent gets stuck in a basin?

An agent that works on a task for a long time fills its context, step by step, with hypotheses, failed attempts, and intermediate conclusions. All of this becomes the premise for the next step. The model keeps developing the direction it has already chosen, even when that direction leads to a dead end, and every new turn reinforces the trajectory. The researchers describe this as falling into a local region with no way out under the normal course of work. A bigger budget does not solve the problem.

What are the key details on Fork-and-Flush: branching and resetting?

The method consists of two operations. Fork creates branches of the process, and Flush erases the chat history. The key detail: only the conversation is erased, while the workspace stays untouched. Everything the agent has already built by hand survives: files, code, artifacts. The model gets a clean context and looks at the ready-made working environment without the baggage of its earlier reasoning. The agent thus returns to the task without accumulated biases, yet loses no tangible progress.

What to try in your own agents?

The idea applies well beyond a research lab, especially in coding, where agents work for hours. If the results hold up in practice, several steps follow from them. First: store state in the workspace, not in the dialogue. Everything important (code, notes, test results) should live in files and the repository, where it can be read back after a context reset. Second: do not stretch a single session indefinitely.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Microsoft Wipes AI Agents' Chat History and Gets Up to 66% Better Results on the Same Budget https://news.hamidun.com/en/news/13637/microsoft-wipes-ai-agents-chat-history-and-gets-up-to-66-bet

What do you think?
Loading comments…