Saved in:
Bibliographic Details
Main Authors: Lee, Yoonho, Nair, Roshen, Zhang, Qizheng, Lee, Kangwook, Khattab, Omar, Finn, Chelsea
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.28052
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915898600718336
author Lee, Yoonho
Nair, Roshen
Zhang, Qizheng
Lee, Kangwook
Khattab, Omar
Finn, Chelsea
author_facet Lee, Yoonho
Nair, Roshen
Zhang, Qizheng
Lee, Kangwook
Khattab, Omar
Finn, Chelsea
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_28052
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Meta-Harness: End-to-End Optimization of Model Harnesses
Lee, Yoonho
Nair, Roshen
Zhang, Qizheng
Lee, Kangwook
Khattab, Omar
Finn, Chelsea
Artificial Intelligence
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.
title Meta-Harness: End-to-End Optimization of Model Harnesses
topic Artificial Intelligence
url https://arxiv.org/abs/2603.28052