Why is Harness Engineering the “cybernetics” of the Agent era?

AuthorGeorge Zhang
Published2026/03/18
SourceOverseas Unicorns
Read the original

By George Zhang (maintainer of OpenClaw)

This article is George Zhang’s interpretation of harness engineering; the original was published on his X (https://x.com/odysseus0z)。

In February this year, OpenAI published an articleHarness engineering: leveraging Codex in an agent-first world describing a new way of working: engineers no longer write code directly, but instead design the environment and establish the rules, letting agents complete the coding within it.

The article quickly sparked widespread discussion in the tech world. Some people thought it marked the end of software engineering, while others felt it was just another bit of hype. In fact, the narrative around AI coding has been evolving all along: from the earliest prompt engineering, to context engineering, and now harness engineering, engineers’ focus has gradually shifted from ‘how to talk to the model’ to ‘how to build a system that can keep running continuously.’

But if we zoom out a little further, this evolution is not new at all. From Watt’s centrifugal governor to Kubernetes controllers, engineers’ role has already gone through a similar transformation many times: from manually operating systems to designing mechanisms that let systems run automatically. In 1948, Norbert Wiener named this pattern cybernetics.

So the real question may not be ‘Will AI replace programmers?’ but rather: once the feedback loop can finally close at the level of ‘architectural decisions,’ what do engineers need to do to make this mechanism truly work?

01.

The same pattern, three times

After I finished reading OpenAI’s article about harness engineering, I kept having a feeling I couldn’t quite put into words. Until one moment, it suddenly clicked: I had seen this pattern before — and not just once, but three times.

The first time was in the 1780s. James Watt invented the centrifugal governor. Before that, workers had to stay by the steam engine at all times, constantly adjusting the valve by hand. With the governor, a mechanical device with spinning balls would automatically sense the rotational speed and automatically adjust the valve. The workers did not disappear as a result; their work just changed: from physically turning the valve to designing the governor itself.

A centrifugal governor is a mechanical device that uses centrifugal force to automatically regulate engine speed. In 1788, James Watt improved this device and used it for automatic speed control of steam engines.

The second time was after Kubernetes appeared. When using Kubernetes, you only need to declare the desired state, such as running three replicas, using this image, and allocating these resources. The controller continuously monitors the system’s actual state, and once the actual state diverges from the desired state, the controller automatically steps in to correct it: restarting crashed Pods, adjusting the number of replicas, and rolling back problematic deployments. Engineers’ work changed along with that: from manually restarting services to writing the target spec that the system needs to converge on.

Kubernetes is an open-source container orchestration platform used to automate the deployment, scaling, and management of containerized applications (for example, Docker-based applications). It was originally designed and open-sourced by Google, and is now maintained by the Cloud Native Computing Foundation; it is one of the core components of modern cloud-native infrastructure.

The third time is now. In the article, OpenAI described a group of engineers like this: they no longer write code by hand; instead, they are responsible for designing the runtime environment, building feedback loops, turning architectural constraints into executable rules, and then letting agents do the actual coding. In five months, they generated about one million lines of code, not a single line of which was written by hand. OpenAI calls this way of working “harness engineering.”

Behind every change lies the same pattern. In 1948, Norbert Wiener named this pattern cybernetics. The word comes from the Greek κυβερνήτης, meaning helmsman; the name Kubernetes comes from the same root. The essential meaning is the same: you no longer need to turn the valves yourself; you begin to take the helm.

Norbert Wiener (1894–1964) was an American mathematician, regarded as one of the founders of cybernetics. InCybernetics: Or Control and Communication in the Animal and the Machine, he proposed a theoretical framework for information, control, and feedback.

Every time this pattern appears, the reason is the same: someone has built sensors and actuators powerful enough to close the feedback loop at that level.

02.

Why are codebases the last domain to be conquered?

A codebase does not lack feedback loops; it is just that these loops exist at a lower level.

• Compilers close the loop at the syntactic level;

• test suites close the loop at the behavioral level;

• Linter closes the loop at the code style level.

These mechanisms are indeed cybernetic feedback loops, but they can only handle problems that can be mechanically verified: Can the code compile? Do the tests pass? Does the format comply with the specification?

One level up, there is no automation at all. For example, does this change fit the system’s overall architecture? Is this technical solution the right one? As this abstraction layer keeps growing with the codebase, will it cause problems in the future? These questions have no sensors to perceive them and no actuators to correct them. Only humans can work at this level, and humans are needed at both ends: on one end, to judge quality; on the other, to write the fix.

LLMs change both of those ends at the same time. An LLM can judge code quality and make changes like a human: refactor a module; redesign mismatched interfaces; rewrite an entire test suite around the constraints that truly matter. For the first time, the feedback loop can close at the level of truly critical decisions.

But closing the loop is only a necessary condition, not a sufficient one. Watt’s governor had to be carefully tuned to work properly, Kubernetes controllers need the right spec to align with the desired state, and LLMs working in a codebase require something even harder to provide.

03.

How do you calibrate sensors and actuators?

In fact, getting the basic feedback loop running—letting agents run tests, having CI produce parseable results, and making error messages point to specific fixes—is only the minimum threshold.

Carlini once gave a demo in which he had 16 agents collaborate in parallel to build a C compiler. The prompt he used was extremely simple, but the test infrastructure was very carefully designed. He later said: “I spent most of my effort designing the environment around Claude—namely the tests, the runtime environment, and the feedback mechanisms.”

Nicholas Carlini is an American computer scientist who focuses on research in AI safety and adversarial attacks.

That is to say, the truly difficult problem is how to calibrate this set of sensors and actuators based on your own understanding of your system. Most people get stuck here, then pin the problem on the agent itself: “It keeps doing the wrong thing; it simply doesn’t understand our codebase.” That diagnosis is almost always wrong.

An agent fails not because it lacks ability, but because the knowledge it needs—such as what counts as “good” for your system, which patterns your architecture encourages, and which patterns it deliberately avoids—is all locked in your own head, and you have never written it down. An agent will not learn and evolve on its own. If you do not write down that knowledge, the agent’s hundredth mistake will be exactly the same as its first.

So the real work is to turn your judgment criteria into machine-readable form: write an architecture document that describes the true layering structure and dependency directions; configure a custom linter with built-in repair guidance; and compile a set of golden principles that encode the team’s aesthetics and taste. OpenAI also found this out: they used to spend 20% of their time every Friday cleaning up “AI slop,” and only after they encoded their standards directly into the harness itself did the problem get fundamentally solved.

04.

The only way out

Documentation, automated tests, architectural decisions encoded as rules, and fast feedback loops—these have always been the right engineering practices. For the past thirty years, almost every software engineering book has recommended them. But most people choose to skip them because the cost of skipping arrives slowly and is spread out: code quality declines gradually, onboarding becomes increasingly painful, and technical debt accumulates unnoticed.

Agentic engineering makes that cost extreme.

• If you skip documentation, the agent will ignore all your conventions, and not just on one PR, but on every PR, repeating the same mistakes with machine speed, around the clock, without pause.

• If you skip tests, the feedback loop cannot close at all.

• If you skip architectural constraints, code drift will happen far faster than you can fix it manually.

Code drift refers to the phenomenon in which code in a software project gradually deviates over time from its original design goals or specifications, often showing up as architectural inconsistencies or redundant functionality. This drift increases maintenance costs and reduces code readability and reliability.

• Worse still, if the agent doesn’t know what clean code is, you have no way to use the agent to clean up this mess. In other words, an uncalibrated agent can create problems but cannot solve them.

What needed to be done has never changed. Only the cost of not doing it has become unbearable.

That is precisely why we must pay attention to the verification stage beyond generation. There is a clear asymmetry between generating an answer and verifying an answer, which is the core intuition behind the P vs NP problem: in general, verifying an answer is much easier than generating a correct one. Cobbe and other researchers have already verified this experimentally on LLMs. This asymmetry points to a clear direction: you do not need to write code faster than a machine; you only need to know how to evaluate its output efficiently. In other words, you need to be able to define what is “correct,” identify where the output deviates from the goal, and judge whether the overall direction is right.

The P vs NP problem is an unsolved problem in computer science: for every problem that can be quickly verified (NP problems), can it also be quickly solved (P problems)?

On October 27, 2021, Karl Cobbe and others published Training Verifiers to Solve Math Word Problems on arXiv. The experiments showed that on LLMs, training “verifiers” to judge whether answers are correct is easier than directly training the model to generate correct answers, and the verification method significantly improved the model’s performance on math word problems.

The workers who designed Watt’s governor back then did not later go back to turning the valve. Not because they couldn’t turn it, but because going back to turn the valve had no meaning anymore.