AI Aulis

AI NEWS IN ENGLISH · 16 October 2026

The most important AI news every morning. AI writes and checks the stories against the original sources – check important facts in the sources.

← Issue 16 October 2026Paper

Building a coding agent harness: the best of 19 models passed 53 per cent of tests

AI-generated contentWritten by AI

arXiv · Source published: 14 October 2026 at 18:24 (UTC+03:00)

In the Doc2Harness preprint, 19 language models each built a harness for a coding agent from a development document. The best model, GPT-6 Astra, passed 53.05 per cent of 328 tests, and the weakest passed 27.44 per cent.

Researchers from the Institute of Computing Technology at the Chinese Academy of Sciences and three Chinese universities measured how well language models can build an agent harness for a coding agent. An agent harness is the program that passes messages to the model, runs the tools the model asks for, and manages permissions and session state. OpenAI's GPT-6 Astra performed best: its harnesses passed an average of 53.05 per cent of 328 tests. Harnesses built by the weakest model, Tencent's Hy3, passed 27.44 per cent. The Doc2Harness benchmark is a preprint published on arXiv and has not been peer reviewed.

In the build phase, the model under test works inside OpenCode, an open-source coding agent. The researchers did not use Claude Code or Codex CLI, because tools made by the model developers themselves could give the Claude and GPT model families an advantage. The model receives a development document that brings together the functions described in the user documentation of 12 agent tools, with contradictions removed. It also receives a skeleton of about 70 lines that contains only the interfaces. The model has two hours and can submit its work no more than three times. Each model built three harnesses.

In the evaluation phase, the finished harness runs in a separate container for each test. Instead of a real language model, a mock model drives the harness and replies according to a pre-written script. This stops the instability of a real model from affecting the result. The tests check the requests sent to the model, the files left on disk, the exit code and the output. The benchmark therefore assesses whether the harness works as the document specifies. It does not measure how the agent handles real tasks.

A test can pass even if the feature it targets never ran. For example, a requirement that the contents of a file outside the workspace must not reach the model is also met when the read tool does not work at all. To catch such empty passes, the researchers added positive controls to the tests, which confirm, for example, that a permitted file is read. If a control fails, the test counts as failed.

Model Pass rate (%) Lines of code Modules
GPT-6 Astra 53.05 7,964 12.3
Opus 5 46.65 13,845 33.3
Qwen3.8 Max 45.83 16,681 40.0
GPT-5.6-sol 43.80 2,745 14.7
Grok 4.7 43.50 5,625 13.3
GLM 5.3 42.07 8,186 21.3
Kimi K3 38.31 5,967 23.7
Opus 4.8 38.01 5,881 30.3
GPT-5.5 34.65 1,271 2.7
DeepSeek V4 Pro 31.91 4,169 13.0
Hy3 27.44 2,690 13.7

Source: Doc2Harness preprint. The table shows 11 of the 19 models. Figures are averages across the three harnesses each model built, and the pass rate is calculated from 328 tests.

The table shows that GPT-6 Astra took first place with less than half as much code as Qwen3.8 Max. The standard deviation between build runs ranged from 0.14 to 3.29 percentage points, depending on the model. According to the researchers, each harness was built only once, and the model received no feedback from the tests along the way. The submission step checked only the format of the harness, so the researchers say the score of a model that submitted early is a lower bound. In addition, some tests are derived from the same original test, so a single fault can bring down several tests. No harness passed 56 of the tests, so those tests do not distinguish between models.

Of the top two, Anthropic's Opus 5 did better in ordinary situations (80.68 per cent, against 72.46 for GPT-6 Astra), while GPT-6 Astra did better in edge cases (48.97 per cent, against 37.02 for Opus 5). A model's ranking shifted by as many as 16 places depending on the test category. Grok 4.7, for example, ranked first in file operations but eleventh in session state management. Even so, results across categories correlated positively. According to the researchers, this suggests that the differences between models come mainly from a single general ability.

The researchers also analysed the source code of 57 harnesses. After controlling for lines of code, the partial correlation between the number of modules (Python files) and the pass rate was −0.423. The researchers interpret this to mean that errors build up depending on how functionality that affects many parts of the code is split across modules. The measured result is a statistical association; no experiment tested whether it is causal.

What this is based on

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

    Ge, Yuyao, Liu, Shenghua, Gao, Peizhong, Ge, Chendi, Liu, Chenxu, Wang, Yiwei, Mei, Lingrui, Bi, Baolong, Yao, Jiayu, Guo, Jiafeng, Cheng, Xueqi · Publisher: arxiv.org · published 14 October 2026 at 18:24 (UTC+03:00) · Paper version published: 14 October 2026 at 18:24 (UTC+03:00) · retrieved 16 October 2026 at 05:54 (UTC+03:00) · discovery channel: web

Report an error in this story