CMU paper: a 4B model rewrites an agent's harness and beats the 35B model it learned from

irinarish · x · 2026-10-14

CMU researchers trained a small 4B model to rewrite an AI agent's harness — the program around the model covering how it gets called, which tools run, and where information flows — and it beat the 35B model it learned from. The 4B model reads a report from the last run, proposes harness edits, and keeps the best-scoring one; the task model itself never changes.

Key findings:

The thread also outlines a reproducible loop: put your harness in one file (prompts, steps, tool calls), split tests into learn/score/final sets, run on the learn set, save a failure report, and ask a model to propose edits. The linked article details six decisions for designing an agent harness you can leave alone.

Original post →

More from coding & agent

coding & agent channel →