Demystifying the Autoresearch Harness: Context Folding and Skill Pruning Drive Self-Evolving Agent Performance
Summary:Autoresearch agents that design, run and refine their own experiments are becoming a core loop of AI R&D, yet their harnesses usually bundle context management and skill management into one opaque stack. This paper isolates the two axes across MLE-Bench and KernelBench with gpt-oss-120b, gpt-6-luna and gpt-6-sol (six settings), evaluating each mechanism against a recency-truncation baseline inside a shared agent framework. Two findings stand out. First, keeping individually retrievable records
Overview
The paper decomposes the runtime harness of self-evolving research agents into two independently tunable axes: context management, which decides what an agent retains from past attempts, and skill management, which governs how lessons extracted from failures are stored and reused. Evaluating across MLE-Bench and KernelBench with gpt-oss-120b, gpt-6-luna and gpt-6-sol (six settings), the authors isolate the contribution of individual mechanisms instead of treating the harness as one opaque bundle. The resulting system, MLEvolver, is simply the union of the two winning choices: context folding plus skill deletion.
Context management: addressable history beats rolling summaries
Four strategies are compared: a recency-truncation baseline, a rolling summary, retention of individually accessible per-attempt records, and context folding — compacting older attempts into structured entries that remain individually expandable and addressable. Two findings emerge. First, keeping retrievable records of each attempt outperforms maintaining a rolling summary; a summary is a lossy compression that flattens "which experiment, which configuration, why it failed" into an unrecoverable narrative, so the agent tends to re-tread the same ground. Second, context folding wins in all six settings, improving on the truncation baseline by up to 19.2%.
The engineering meaning of folding: only an index plus folded entries live in the resident prompt, while raw records live in external storage and are expanded on demand by attempt ID. That compresses prompt size without surrendering detail — the opposite trade-off from rolling summaries, which buy tokens with irreversibility.
Trade-offs and cost: folding is not free. Per-turn retrieval and expansion add tokens and first-token latency, and the folding layer is itself a form of summarization; if entries are written too coarsely, its advantage decays back toward rolling-summary behaviour. The abstract does not disclose the exact folding implementation, expansion triggers or token overhead, so these must be checked in the full paper.
Skill management: pruning beats consolidation
Three policies are compared: consolidating multiple lessons, promoting lessons into standing rules, and selectively discarding persistently unused lessons. The third wins on average. The mechanism is not mysterious — standing rules occupy context on every turn and, once written, are hard to overturn with later evidence, so they drift into conflict with new observations; consolidation flattens rare edge cases into generic statements; deletion keeps the skill library sparse, improving retrieval precision and preventing the library from bloating the prompt.
The cost concentrates at cold start: deletion depends on usage counters, so a rare but decisive lesson can be evicted early. The paper reports no failure cases for this policy and does not specify the counting window or threshold — exactly the details an implementer needs most.
MLEvolver and measured results
Combining context folding with skill deletion, MLEvolver reaches a 72.7% medal rate on MLE-Bench Lite and a 94% fast_1 score on KernelBench Level 3 (fast_1 meaning the generated kernel is both correct and meets the reference implementation's speed threshold), and substantially outperforms AIDE and OpenEvolve under the same inference budget. That control matters: the gain comes from harness design, not from spending more tokens.
Benchmark objectivity
- The reference point for the 19.2% gain is recency truncation, a relatively weak harness. It should be read as an upper bound relative to that baseline; the absolute margin over AIDE and OpenEvolve is not disclosed in the abstract.
- MLE-Bench Lite is a subset, and medal rates also depend on Kaggle medal thresholds and task mix; with a small sample the variance is large, and no repetitions, seeds or confidence intervals are reported.
- KernelBench's fast_1 is highly sensitive to GPU model, driver, compiler flags and how the reference implementation is timed. Level 3 tasks are hard, making "correct but too slow" samples likely, so correctness and speed must be reported separately.
- Only three models are covered, one of them an open-weight model. Whether frontier proprietary models already internalized similar harness experience during training cannot be ruled out, leaving an uncontrolled prior-contamination factor.
- The abstract discloses no repository, prompt templates, skill storage format or folding rules, so independent reproduction has a high barrier.
Practical guidance for builders
- Decompose the harness. An append-only attempt archive (addressable by attempt ID) and a skill store with reference counters must be separable, or no ablation can be attributed to either.
- Default to folding over summarization. Keep an index plus folded entries resident, expand raw records on demand, and only degrade to a rolling summary when the token budget genuinely demands it — logging the degradation trigger.
- Garbage-collect the skill store. Evict lessons not invoked for N consecutive attempts, and resist promoting them to standing rules early; treat固化 (promotion) as a late-stage privilege.
- Compare at equal inference budget. Record correctness, speed-style metrics such as fast_1, retries per task and token distributions separately, so token-spend differences are not misread as algorithmic gains.
- Build a local KernelBench-style evaluation. Pin GPU, driver and compiler environment; rerun performance metrics on your own hardware.
- Watch token growth. The most direct observable failure signal for long-horizon agents is token growth rather than semantic similarity, so the folding strategy should serve both compression and fidelity.
- Check reproducibility prerequisites first. Folding rules, skill schema, deletion thresholds and prompt templates must be confirmed before integration, since results will likely not transfer across frameworks otherwise.
Bottom line
The next competition in self-evolving agents will not be fought at the weight level but in the harness: turning history into an addressable archive and pruning the skill library to sparsity beats handing the agent more tokens.
— END —Source: Hugging Face Daily Papers (2026-11-20)
Tags: #Self-Evolving Agents #Agent Harness #MLE-Bench #KernelBench #Context Management
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments