AI Harness Engineering: 11 jobs around your coding agent
An arXiv paper argues coding-agent reliability depends on the harness around the model, naming 11 responsibilities and a four-level H0–H3 ladder.
A paper posted to arXiv on May 13, 2026, AI Harness Engineering by Hailin Zhong and Shengxin Zhu, argues that coding agents often fail not only because of the model but because of the runtime around it. That runtime, the harness, controls what the agent sees, how it acts, what feedback it gets and how it proves a change is done. For anyone shipping with agents, it offers a checklist for why a run went wrong. @bibryam flagged it as a "good framework for thinking about harness design."
The authors name eleven responsibilities: task specification, context selection, tool access, project memory, task state, observability, failure attribution, verification, permissions, entropy auditing and intervention recording. They then define a ladder. H0 gives the agent only the task and repo. H1 adds a tool and test-command registry. H2 adds agent-readable architecture, testing and known-failure docs plus a task-state file. H3 adds deterministic checks and a fixed workflow: reproduce, attribute, fix, verify, report.
Two ideas stand out. First, the paper treats each human nudge as a diagnostic signal: telling the agent which file to open points to a missing context manager, and interpreting a test failure for it points to missing failure attribution. Second, "entropy" (stale docs, dependency churn, debug scripts, weakened tests) is treated as part of the job, not cleanup for later.
Keep the limits in view. The authors call it a research program, and they test it on one small Node.js login bug. Per the paper, all four levels produced a working patch; what changed was the evidence. Only H3 produced reproduction logs, failure attributions and a requirement-by-requirement verification report. That shows the evidence varies with the harness, not that richer harnesses raise success rates. It's also unclear whether the harness files or trace schemas are released as usable tooling.
Our read: the cheapest piece to adopt is H3's "attribute before you edit" rule, since it targets the random patching after a failed test that many agent sessions fall into.
Try it: one way to borrow it (our example), add a line like this to your CLAUDE.md or AGENTS.md: "Before fixing a bug, reproduce it and write down observed vs. expected output and your diagnosis. When done, list each requirement with the command that proves it, and note anything you couldn't verify." Then keep a tally of every time you step in, and treat each one as a harness gap to close.