@akshay_pachaar: Don't train the model, evolve the harness. I read a brilliant blog post from Hugging Face where they took a frozen open…
Summary
The article discusses a Hugging Face experiment where an automated loop rewrites only the code (harness) around a frozen model, raising its benchmark score from 0% to near Sonnet 4.6 at lower cost, demonstrating that many benchmark failures stem from the harness, not the model itself.
View Cached Full Text
Cached at: 07/03/26, 08:34 AM
Don’t train the model, evolve the harness.
I read a brilliant blog post from Hugging Face where they took a frozen open model scoring 0% on a hard legal agent benchmark, left its weights alone, and let an automated loop rewrite only the code around it.
That code layer is the harness, the runtime wrapper that feeds the model context, runs its tool calls, and decides when a run ends.
By the time the loop finished, the system had essentially matched Sonnet 4.6 on the benchmark’s headline metric, at roughly 7x lower cost per task. Zero weights changed.
The gain existed because of where the model was failing. The judge only grades files saved in the right place under the exact requested filename, and the model kept doing the legal analysis correctly, then saving it under the wrong name, dropping it in a scratch folder, or never writing it at all.
So the 0% was never measuring legal reasoning. It was measuring the harness.
Hand-tuning that layer is slow and model-specific, so they automated it. A Claude proposer adds exactly one mechanism per iteration, and an outer loop keeps it only if it clearly beats the current best, so accepted mechanisms compound.
What the loop discovered says a lot about where agents actually fail.
→ The biggest single gain was file handling, not intelligence. An automatic step that lands the deliverable exactly where the judge expects it beat every prompt change, with zero extra model tokens.
→ Code fixes transferred across models, prompt playbooks did not. The same harness lifted a smaller model from the same family by 14 points, but the tuned prompts hurt a different model family on tasks it could already finish.
→ The harness mattered more than anything else. Same model, same judge, same tasks, and five different harnesses scored anywhere between 3.5% and 80.1%.
The gains do eventually flatten, and the remaining misses look like real capability gaps. At some point the wrapper runs out of tricks and the model has to carry the work.
But the lesson holds. A benchmark score measures the model and its harness together, and until the harness is fixed, it’s impossible to know which one failed.
I highly recommend reading this: https://huggingface.co/spaces/joelniklaus/harness-optimization…
I also wrote a deep dive on agent harness engineering a while back, covering the orchestration loop, tools, memory, context management, and everything that turns a stateless LLM into a capable agent.
The article is quoted below.
Don’t Train the Model, Evolve the Harness - a Hugging Face Space by joelniklaus
Source: https://huggingface.co/spaces/joelniklaus/harness-optimization Fetching metadata from the HF Docker repository...
Similar Articles
@omarsar0: // Adapt the Interface, Not the Model // I am fascinated by the results across my cheap-model-plus-good-harness builds.…
Proposes Life-Harness, a method that improves frozen LLM agents by adapting the runtime interface instead of model weights, achieving an average 88.5% relative improvement across 126 settings and 18 backbones.
@rohit4verse: 2 months ago, I wrote "The Harness Is Everything" 1.3M views. Last week's Life-Harness paper: 116 of 126 model-environm…
The Life-Harness paper shows that patching the evaluation harness alone, without modifying the model, improved performance in 116 of 126 setups, achieving an 88.5% mean lift across 18 backbones.
@AlphaSignalAI: https://x.com/AlphaSignalAI/status/2074130508833845396
Self-improving harnesses enable AI agents to autonomously rewrite their operating rules by analyzing execution traces, leading to a 60% performance boost. Research from Shanghai AI Lab introduces the Self-Harness framework, allowing lightweight models to outperform larger ones without manual engineering.
@akshay_pachaar: The harness is what matters now. The model is just a commodity. A model on its own returns text. Nothing it produces be…
The article argues that the harness (agent framework) is now more critical than the model itself, demonstrating with Cline's tests showing performance differences from reasoning budget adjustments. Cline introduces ClinePass, a subscription offering discounted access to multiple open-weight models within their harness.
We NEED a harness benchmark leaderboard
This article argues for the need of a benchmark leaderboard that compares AI model harnesses (e.g., KimiCode vs OpenCode vs Codex) rather than just models themselves, proposing a repo to test model+harness combinations on cost, runtime, token usage, and score.