# Shivam Garg on "Fork-and-Flush: Escaping Idea Basins in Autoresearch Agents"

> A co-author, quoting the last author's post, picks out what he finds surprising: runs of the same agent stay in the same idea basin even though their history is periodically replaced by a summary. He then restates fork-and-flush in three sentences.

- Author: Shivam Garg ([@ShivamGarg91462](https://x.com/ShivamGarg91462))
- Posted: 2026-10-12, 1 posts
- Original: https://x.com/ShivamGarg91462/status/2109687711850246158
- About: [Fork-and-Flush: Escaping Idea Basins in Autoresearch Agents](https://introspection.infinite.fun/papers/cai2026-fork-and-flush.md)

The post text below is quoted verbatim. Figure descriptions are written by this wiki.

## 1/1

> Independent runs of the same autoresearch agent often plateau at very different scores, and giving them much more compute doesn’t close the gaps.
>
> What I find kind of surprising is that this happens despite context compaction. I would have expected periodically replacing the full history with a summary to weaken the pull of earlier ideas and encourage broader exploration. But the agents still tend to stay in the same "idea basin."
>
> A very simple intervention, fork-and-flush, helps significantly. Every so often, fork the agent into a few copies, each keeping the workspace but starting with a fresh chat context. Let them run for a bit, then continue from the best one.

Quoting Dimitris Papailiopoulos (@DimitrisPapail), 2026-10-12, https://x.com/DimitrisPapail/status/2109661202733212136:

> Fork-and-Flush: help your agents escape Idea Basins!!
>
> I love thinking of AutoResearch as Idea Descent: a metric of interest goes down, as a function of ideas/experiments, where the agents get pulled towards one idea or another. But we've seen very often an agent develop this weird tunnel vision, and honing in just one type of "idea", kinda like GD stuck in a local minimum.
>
> We studied this and seems we can fix it with Fork-and-Flush, a super simple and kinda cute idea. Every so often, fork the agent into T copies in the same workspace but empty the context, let them run for a bit, and continue from the best one.
>
> If you like the GD analogy, it's basically basin hopping https://en.wikipedia.org/wiki/Basin-hopping.
>
> BTW we found a silly way of also plotting "idea basins": an LLM rewrites every experiment as a spec and answers a few thousand binary queries "is Experiment A closer to B or to C?". Then we embed this NXN matrix into 2D and indeed see in many cases that each run saturates into a small region and keeps polishing it.
>
> We call these idea basins!
>
> At equal compute Fork and Flush beats single runs and best-of-N on 12/13 long-horizon tasks (some 4+ days), and in my own research projects it's been working really well!
>
> BTW we only use it at test time, but it could also be part of training or RL.
>
> Led by @jackcai1206  @christos_ziakas  during Jack's internships with us, along with @vkontonis @ShivamGarg91462 @Tea_Pearce Sid Sen and Akshay Krishnamurthy.

[Post 1 on X](https://x.com/ShivamGarg91462/status/2109687711850246158)

---

Source: https://introspection.infinite.fun/threads/shivamgarg91462-fork-and-flush · Part of the [LLM Introspection Wiki](https://introspection.infinite.fun/index.md) · Index for agents: [llms.txt](https://introspection.infinite.fun/llms.txt)
