← In the News

MIT researchers say harness design decides whether agent training generalizes

Language Model Harnesses can be Compositional Generalizers · Alex L. Zhang, Souradip Chakraborty and Omar Khattab, MIT CSAIL · arXiv, November 20, 2026

Machine-readable Download Markdown

The paper contrasts two kinds of harness. In "trajectory-as-a-prompt" designs descended from ReAct, the orchestrating model receives the whole agent history at every step, so it has to cope with an ever-growing prompt. Harnesses that manage context in code, such as the Recursive Language Model (RLM) harness, can split a task so each model call sees an input it can already handle. The authors call this property "locally in-distribution" and state the stakes directly: "unless our systems compose the individual lessons they learn, scaling will have slower returns than it should."

Their results, as reported: an RLM harness trained with reinforcement learning only on short tasks generalized to tasks 2 to 64 times longer, while the base model improved less, and training in one domain transferred to new domains with a similar solution structure. CodeAct and Pi showed similar gains on some programmatic tasks but struggled when a task required dense reasoning across many sub-tasks.

For messier work the authors propose "surrogate harness training." Instead of training on full rollouts of the real task, they build easier synthetic environments, sometimes with fake tool calls and sub-calls, that reproduce what one model call inside the harness would see, and train that call alone. Opus 5.5 running in Claude Code designed the synthetic environments, and the team generated 8,015 synthetic root-level rollouts. The resulting RLM-27B improved on Qwen3.8-27B in the same harness by 26.9% on average across eight hard long-context benchmarks, including CTC-Bench and ExpertLongBench, while using about half the tokens.

These are the authors' figures from a 63-page paper; the full appendix and the released code have not been checked here. Code is at github.com/alexzhang13/harness-cg, and the synthetic training traces are on Hugging Face.

Why it matters: This is a training result, not a tool to install, but its design claim applies to anyone building a harness. In the authors' tests, a harness that hands each model call a bounded, familiar input let gains from short tasks carry over to longer and different ones, and the same model without that structure generalized less. That is a measured case for investing in how the harness splits work and manages context, rather than relying on the model to cope with an ever-longer transcript.