Demystifying the Autoresearch Harness: How Context and Skills Shape Self-Evolving Agents

Kelvin Kiu-Wai Tam, Newt Hue-Nam K. Nguyen, Tianshi Zheng, Yunxiang Mo, Weihan Li, Zhongwei Xie, Chiu Yeung Tang, Jui-Yu Ho, Yangqiu Song, Ginny Y. Wong, Simon SeearXiv 2026

It’s late, your coffee is cold, and you’re probably wondering if an AI could just do this research for you. The good news? Researchers are working on exactly that. The bad news? Building an AI that can autonomously run, fail, and refine experiments over hundreds of iterations is surprisingly hard—not because the models are "dumb," but because they have terrible memories.

In their paper, Demystifying the Autoresearch Harness, Tam et al. take a scalpel to the "harness"—the software infrastructure that manages an agent's memory—to find out what actually makes a self-evolving AI tick.

TL;DR

The secret to a great AI researcher isn't just a bigger brain (model); it’s a better filing system. By systematically testing how agents store past attempts and "lessons learned," the authors found that keeping expandable digests of every past attempt ("folding") and aggressively deleting unused skills is the winning formula, leading to their state-of-the-art agent, MLEvolver.

What Problem Does This Paper Address?

We are entering the era of "AI for AI" (AI4AI). We want agents that can hop onto Kaggle, write CUDA kernels, or optimize neural networks entirely on their own. These are "long-horizon" tasks: the agent might try 100 different approaches to solve one problem.

The bottleneck is the context window. As the agent works, its history grows until it overflows. If the agent simply forgets the first 50 attempts (recency truncation), it might repeat old mistakes. If it tries to summarize everything into a single paragraph, it loses the technical nuances that led to a breakthrough. Similarly, if it saves every "pro-tip" it discovers, it eventually drowns in a "skill library" so bloated that it can't find the useful advice anymore.

The authors wanted to know: what is the optimal way to manage this experimental history and skill set?

Methods

The researchers built a unified framework to test five specific memory mechanisms against a simple "forget the oldest stuff" baseline. They looked at two dimensions:

  1. Context Management (The History):
    • Compaction: Summarizing old attempts into a single, rolling "state of the union" block.
  2. Folding: Condensing each attempt into a one-line digest. The agent can "unfold" and read the full details of a specific past attempt only when it thinks it's relevant.
  3. Skill Management (The Lessons):
    • Merging: Combining semantically similar lessons to reduce redundancy.
  4. Promotion: Turning frequently successful lessons into "standing rules" that are always in the prompt.
  5. Deletion: The "Marie Kondo" approach—if a skill hasn't been picked in the last five tries, delete it.
The Autoresearch Loop and the various memory configurations tested.

Datasets

The agents were tested on two grueling benchmarks:

  • MLE-Bench: A collection of Kaggle machine learning competitions. Success is measured by "Gold Normalized Score" (GNS)—how close the agent got to a gold medal.
  • KernelBench: A task where agents must write high-performance CUDA kernels. Success is measured by speedup over standard PyTorch implementations.

They tested these across three different model backbones: gpt-oss-120b, gpt-6-luna, and gpt-6-sol.

Key Insights and Ideas

  • Folding > Compaction: This was a major "aha" moment. Summarizing the past (Compaction) actually hurt performance in some cases because it destroyed the "addressability" of individual experiments. Folding allows the agent to maintain a bird's-eye view of all 100 attempts while still being able to dive deep into the code of attempt #12 if needed.
  • The Skill Bloat Paradox: You’d think more knowledge is better, but an unmanaged skill library actually degrades performance. Interestingly, Deletion—simply throwing away unused skills—performed better than sophisticated merging or promotion. It keeps the "search space" for lessons clean and high-signal.
  • Offense vs. Defense: The researchers categorized skills as "offensive" (trying new optimizations) or "defensive" (avoiding crashes/errors). They found that open-weight models like gpt-oss are much more "offensive" and aggressive, while proprietary models like gpt-6 are more "defensive" and conservative in their self-improvement.

Key Results

By combining the two best mechanisms—Context Folding and Skill Deletion—the authors created MLEvolver.

MLEvolver's performance compared to existing SOTA agents AIDE and OpenEvolve.

As shown in the results, MLEvolver significantly outperformed existing state-of-the-art agents like AIDE and OpenEvolve:

  • MLE-Bench Lite: Achieved a 72.7% medal rate, a relative gain of 23% over AIDE.
  • KernelBench: Reached a 94% fast₁ score (meaning it beat the reference implementation on 47 out of 50 problems).
  • Efficiency: It achieved these results under the same inference budget as its competitors, proving that how you use the context window is just as important as how many tokens you have.
Detailed breakdown of performance gains across different models and benchmarks.

Limitations and Future Work

While MLEvolver is a leap forward, the authors note a few boundaries:

  • Linearity: The study focused on a single, sequential refinement loop. It didn't explore parallel "tree searches" where an agent tries five different ideas at once.
  • Task Isolation: Each task started with a fresh skill library. The researchers haven't yet tackled "cross-task" learning, where an agent takes a lesson learned in a vision competition and applies it to a tabular data competition.
  • Tool Use: The study didn't evaluate interactive coding agents (like those that use a terminal in real-time), which might require even more complex memory "harnesses."

In short: if you want an AI to do your job, don't just give it a bigger brain—give it a better trash can and a very organized filing cabinet.

Summary updated

Abstract

Autoresearch agents, which autonomously design, run, and refine experiments, are accelerating scientific progress, particularly in AI research. However, existing agents rely on harnesses that combine multiple mechanisms, making it difficult to determine how individual components contribute to performance. We systematically study harness design for long-horizon, self-evolving autoresearch agents along two dimensions: context management, which determines what an agent retains from its past attempts, and skill management, which governs how it stores and reuses lessons from those attempts. Across MLE-Bench and KernelBench with gpt-oss-120b, gpt-6-luna, and gpt-6-sol, we isolate the effects of individual harness design choices by evaluating each against a recency-truncation baseline within a shared agent framework. For context management, we find that preserving individually accessible records of past attempts is more effective than maintaining a rolling summary, with context folding performing best across all six settings and improving upon the baseline by up to 19.2%. For skill management, selectively discarding persistently unused lessons is more effective on average than consolidating them or promoting them to standing rules. Building on these findings, we combine context folding and skill deletion in MLEvolver, which achieves a 72.7% medal rate on MLE-Bench Lite and a 94% $\mathrm{fast}_1$ score on KernelBench Level 3, substantially outperforming AIDE and OpenEvolve under the same inference budget. Overall, our study distills design principles for preserving experimental history and curating reusable lessons in autoresearch harnesses, paving the way for agents that turn accumulated experience into sustained progress.
BibTeX
@misc{tam2026demystifying,
  author = {Kelvin Kiu-Wai Tam and Newt Hue-Nam K. Nguyen and Tianshi Zheng and Yunxiang Mo and Weihan Li and Zhongwei Xie and Chiu Yeung Tang and Jui-Yu Ho and Yangqiu Song and Ginny Y. Wong and Simon See},
  title = {{Demystifying the Autoresearch Harness: How Context and Skills Shape Self-Evolving Agents}},
  year = {2026},
  eprint = {2611.28244},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28244},
}
Figure