Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Meta-Harness: End-to-End Optimization of Model Harnesses

About

The performance of large language model (LLM) systems depends not only on model weights, but also on their harness: the code that determines what information to store, retrieve, and present to the model. Yet harnesses are still designed largely by hand, and existing text optimizers are poorly matched to this setting because they compress feedback too aggressively. We introduce Meta-Harness, an outer-loop system that searches over harness code for LLM applications. It uses an agentic proposer that accesses the source code, scores, and execution traces of all prior candidates through a filesystem. On online text classification, Meta-Harness improves over a state-of-the-art context management system by 7.7 points while using 4x fewer context tokens. On retrieval-augmented math reasoning, a single discovered harness improves accuracy on 200 IMO-level problems by 4.7 points on average across five held-out models. On agentic coding, discovered harnesses surpass the best hand-engineered baselines on TerminalBench-2. Together, these results show that richer access to prior experience can enable automated harness engineering.

Yoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, Chelsea Finn• 2026

Related benchmarks

TaskDatasetResultRank
Mathematical Problem SolvingMATH (test)--
45
Code GenerationLiveCodeBench (test)
Pass@1 Overall40
42
Math problem solving200 IMO-level math problems IMO-AnswerBench, IMO-ProofBench, ArXivMath (test)
Pass@1 Accuracy50.6
36
Instruction FollowingIFBench (test)
Score52.3
36
Terminal-based agent interactionTerminal-bench 2.0
Success Rate (SR)31.5
32
Agentic CodingTerminalBench 2
Pass Rate76.4
17
Game PlayingBalatro In-distribution seeds
Capped Mean Final Round23
16
Market Trading PredictionPolyBench
Accuracy50.8
14
Software Engineering Task ResolutionSWE-bench Verified
Success Rate (SR)59.2
14
Capture The FlagCTF-Dojo
Pass@141
14
Showing 10 of 31 rows

Other info

Follow for update