Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents

Yuyao Ge, Shenghua Liu, Peizhong Gao, Chendi Ge, Chenxu Liu, Yiwei Wang, Lingrui Mei, Baolong Bi and 3 others

Institute of Computing Technology, Chinese Academy of Sciences · Tsinghua University · Peking University · Southeast University

Published October 14, 2026 · on the feed October 15, 2026 · ▲ 106 · arXiv 2610.20344

The abstract

Agents driven by large language models are increasingly deployed on long-horizon tasks, where they use tools and modify real workspaces. How well they perform depends as much on the harness around the model as on the model itself. Existing benchmarks measure downstream task success under a fixed harness, leaving harness engineering itself unexplored. We propose Doc2Harness, a two-stage benchmark that evaluates long-horizon harness engineering directly. In Stage 1, a build model operating inside a fixed builder harness receives an interface-only contract skeleton and a development document that consolidates behavior across twelve frontier harnesses, and then constructs a complete candidate harness in an isolated container. In Stage 2, the frozen candidate harness runs in containers separate from the construction environment, one per test case, and is driven end to end by a scripted mock model. We score each test case using four observable channels, namely the requests sent to the model, the files on disk, the process exit code, and the command output; positive controls rule out vacuous passes. Across nineteen frontier models, each evaluated with three independent builds on 328 test cases, GPT-6 Astra achieves the highest pass rate at 53.05%, while the weakest model reaches 27.44%, a gap of roughly twenty-six percentage points. Even the strongest model fails nearly half of the test cases, and failures cluster around how cross-cutting functionality is split across modules. To our knowledge, Doc2Harness provides the first deterministic benchmark for measuring long-horizon harness engineering.

The Brief

2:50

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Doc2Harness. Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents. By Yuyao Ge and ten others, from the Institute of Computing Technology, Chinese Academy of Sciences, Tsinghua University, and two other institutions. Published on the fourteenth of October. Its code repository is worked out: about two hundred source files, with a readme and a licence.

Agents driven by large language models are increasingly deployed on long-horizon tasks, using tools and modifying real workspaces. How well they do depends as much on the harness wrapped around the model as on the model itself. Existing benchmarks, though, measure downstream task success with the harness held fixed. The harness is treated as a given, and the work of engineering one has gone unmeasured. If the harness matters as much as the model, then that is half of the picture left out of evaluation.

Doc2Harness turns that work into the task. It asks whether a model can build a harness, and it evaluates long-horizon harness engineering directly, in two stages. Every test case is scored through four observable channels: the requests sent to the model, the files on disk, the process exit code, and the command output. Positive controls rule out vacuous passes, so a harness cannot score by doing nothing.

In the first stage, a build model works inside a fixed builder harness. It receives two things. One is a contract skeleton that specifies only the interface. The other is a development document consolidating behaviour across twelve frontier harnesses. From these, it constructs a complete candidate harness in an isolated container.

In the second stage, that candidate harness is frozen and run in containers kept separate from the environment it was built in, one container per test case. A scripted mock model drives it end to end. Because the model on the other side is scripted, the harness is what is being tested, and the outcome is deterministic.

Nineteen frontier models were evaluated, each with three independent builds, on three hundred twenty-eight test cases. GPT-6 Astra achieves the highest pass rate, at fifty-three point zero five percent. The weakest model reaches twenty-seven point four four percent, a gap of roughly twenty-six percentage points between the top and the bottom of the field. Even the strongest model fails nearly half of the test cases, and the failures cluster around how functionality that cuts across the whole system is split between modules.

To the authors' knowledge, this is the first deterministic benchmark for long-horizon harness engineering. Its construction separates two things that downstream benchmarks blend together. The model doing the building is evaluated in the first stage, and the thing it built is examined in the second, under a mock model that behaves the same way every time. That separation is what allows a harness to be scored as an artifact in its own right. And the results give the difficulty a location: functionality that cuts across modules, and how it gets divided among them, is where even the strongest builders lose points.

Paper Quest · 7 chapters · about 41 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

The model gets the credit, but the harness does half the work. Who tests the harness builder?

Coding agents depend as much on the software wrapped around the model, the harness, as on the model itself. Benchmarks keep that harness fixed, so none directly measures how well a model can build one.

The road ahead

  1. 1 · The problem ~7 min Coding agents rely on their harness as much as their model, yet no benchmark directly measures whether a model can build that harness itself.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min A model builds a whole harness from a merged specification and an interface-only skeleton; a scripted mock model then drives it, and tests read its observable effects.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Give inputs, build in isolation, freeze the result, drive it with a scripted mock model, then score each test case on four channels.
  6. 6 · The experiment ~6 min You’ll guess: Of nineteen frontier models asked to build a harness, what pass rate did the best one reach on the test cases?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.