AI Research

Small editors learn to rewrite agents at test time

Zhang et al. train a 4B proposer to edit frozen-agent harnesses from execution feedback, beating a 35B teacher on held-out Reasoning Gym families.

StartupHub.ai Staff

By StartupHub.ai Staff, reviewed by Daniel Singer, Editor

2 min read

Small editors learn to rewrite agents at test time
Image credit: StartupHub.ai

Alvin Zhang and colleagues train a small model to rewrite the program around a frozen solver, and harness learning on arxiv.org frames those edits as meta-learning over executable code.

A harness is the glue that decides what the model sees, which tools fire, and how observations loop back. The proposer reads a task description, the current harness and an execution report, then emits a code diff. Training uses reinforcement learning with verifiable rewards, specifically GRPO, where the reward is the mean grader score of the revised harness on a question set. At test time both proposer and solver stay frozen and only the harness changes.

The point is adaptation without a weight update.

On Reasoning Gym the 4B proposer improved revision quality on families excluded from supervised fine-tuning and RL, and in single-step revision it beat the 35B teacher on average. Trained policies kept improving harnesses over multiple rounds of feedback. The same transfer held for retrieval workflows. A proposer trained only on HotpotQA continued to lift performance on unseen MuSiQue and 2WikiMultihopQA, and in QA even a proposer that had only seen seed harnesses during training generalized to revising already-revised harnesses. Outside this paper, public reasoning leaderboards now stress multi-step and long-context checks like MuSR, SimpleQA, LongBench v2 and MRCRv2, which sharpens why harness-level fixes matter for deployed agents.

The timeline matters. The work builds on harness optimization lines from 2023 to 2024, including Shinn et al. on execution-guided reflection and Khattab et al. on DSPy and Yang et al. on SWE-agent, plus the meta-learning formulation of Duan et al. 2016 and Finn et al. 2017 that treats adaptation itself as learnable. Harness-R1, JIT-Agent and TTHE arrived as concurrent harness editors in 2026. What still has to happen is in the paper's limits: dependence on teacher capability for initialization, training the proposer with agentic rollouts rather than static edits, and joint proposer-solver training on longer-horizon tasks.

For startups the implication is narrow and practical. If a workflow can be versioned as code and graded automatically, a small editor can compound gains at test time without redeploying the base model, but only where execution feedback is reliable and cheap to collect.

Sources

TopicsAlvin ZhangHarness LearningReasoning GymHotpotQAMuSiQue2WikiMultihopQAGRPOMeta-learning

StartupHub.ai StaffDaniel SingerWritten by StartupHub.ai Staff, Editorial teamReviewed by Daniel Singer, EditorAbout

StartupHub.ai Staff, Editorial team

The staff writers of StartupHub.ai, ranging from investment analysts to avid AI tool users, early adopters and critical enthusiasts. Backgrounds span engineering, business and the arts. We hold every piece to rigorous standards of research and review.

Daniel Singer, Editor

Daniel Singer is an AI expert who has been writing about, covering and building AI technology since 2018.

More from Daniel Singer

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute.

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.