Fernando Veiga
Menu

AI & Management

Harness Engineering: What Separates the Agent That Impresses from the Agent That Delivers

Fernando Veiga

Cover of the article Harness Engineering, with concentric gold rings around a glowing core on a purple space background.

In 2026, "which model should I use?" stopped being the most important question. What decides whether an AI agent delivers is the environment built around it: rules, tools, checks, and limits. This article explains what harness engineering is, what the data shows, and how leaders, technical teams, and educators can get started.

The same AI model can solve just over half of the tasks on a benchmark, or come close to two thirds of them. In February 2026, LangChain showed this almost like a classroom demo: it kept the model behind its coding agent fixed (gpt-5.2-codex), changed only the execution environment, and watched the pass rate on Terminal Bench 2.0, a set of 89 tasks, climb from 52.8% to 66.5%. The agent went from outside the top 30 to the top 5 of the leaderboard (LangChain, 2026).

That environment has a name: harness. The word comes straight from horse tack: the harness is the gear that connects the horse's strength to the cart and lets you steer that strength where it needs to go. I like the metaphor because it reminds us that strength without steering goes nowhere. Or it goes to the wrong place, which is usually worse.

My thesis is simple. In 2026, the advantage of those who use AI agents no longer lives only in the model they pick. It lives in the harness the organization builds, maintains, and governs. That has one uncomfortable consequence and one encouraging one. The uncomfortable one: buying the best license on the market does not solve the problem. The encouraging one: much of what makes an agent work is engineering, process, and pedagogy, things that companies and schools already know how to do when they decide to do them well.

Throughout this article, I will answer four questions:

  1. What is harness engineering, and why did the term gain momentum in 2026?

  2. What does the data say about the weight of the harness compared with the weight of the model?

  3. What does it cost, who governs it, and what changes for people?

  4. Where do you start, in the company and in the classroom?

What harness engineering is, and why the term took off in 2026

Harness engineering is the discipline of designing everything that surrounds an AI model so that it works predictably: instructions, tools, memory, permissions, tests, monitoring, and correction loops. The formula making the rounds sums it up in one line: Agent = Model + Harness. LangChain went further and coined the catchphrase "if you're not the model, you're the harness" (DataCamp, 2026).

In practice, that includes the system prompt, instruction files (such as AGENTS.md or CLAUDE.md), tools and MCP servers (the protocol that connects agents to other systems), the sandbox (an isolated execution environment) where the agent runs commands, subagent orchestration, hooks (automatic control triggers) that block improper actions, and observability of cost, latency, and errors (Addy Osmani, O'Reilly Radar, 2026). A raw model generates text. A model inside a harness reads files, runs tests, queries systems, keeps state, and corrects its own course.

An idea born in several places at once

The term has no single parent, and that says something about the moment. On February 5, 2026, Mitchell Hashimoto, cofounder of HashiCorp, published an account of how he stopped being skeptical about agents. The fifth of his six steps is called, fittingly, "Engineer the Harness": whenever the agent makes a mistake, take the time to build a solution that keeps that mistake from happening again, whether it is a new line in AGENTS.md or a script the agent starts using (Hashimoto, 2026).

Six days later, OpenAI described an experiment in which a team built an internal product without writing a single line of code by hand, under the motto "humans steer, agents execute" (OpenAI, 2026). Next came the LangChain numbers, Anthropic's article on agents that work for hours (Anthropic, 2026) and, in April, the piece by Birgitta Böckeler, of Thoughtworks, that gave the topic a mental model of guides and sensors (Böckeler, martinfowler.com, 2026). By May, the subject had already reached Brazilian audiences (DSA, 2026) and, by the end of the year, it had an open course in 15 languages, including Portuguese (Walking Labs).

Prompt, context, and harness: three different questions

The simplest way to understand the evolution is to look at the question each discipline tries to answer. Prompt engineering asks how to ask. Context engineering asks what the model needs to see in that conversation window. Harness engineering asks what the system should allow, check, and correct across the entire task, which can last hours and span dozens of context windows.

DSA sums up the difference with a simple example: a prompt asks the agent to follow the project's standards, while a harness makes those standards discoverable, versioned, and verifiable by tests that run before any delivery (DSA, 2026). The request still exists. It just stops being the only thing holding the result together.

The diagram below arranges these three questions as layers around the model and already points, in the dashed ring, to the frontier that comes after them: loops and graphs of agents, meaning the cycles that drive an agent's work over long periods and the networks of several agents coordinated with one another.

Concentric gold metal rings on a purple space background, numbered 1 to 5: the model at the core, then prompt, context, harness and, in a dashed ring, loops and graphs of agents
The harness wraps the prompt and the context and works across the entire task.

Notice that the drawing does not replace the inner layers. Those who master context still need it, because the harness is, to a large extent, the mechanism that delivers the right context at the right time. The names in the dashed ring are still provisional, but the Walking Labs course already ends with lessons on loop engineering and graph engineering, a sign that the next layer is under construction.

In practice: the same request, with and without a harness

To make the difference concrete, I put together an illustrative example, unrelated to any real case. The rule is simple: the system's user interface cannot query the database directly; it has to go through the services layer.

With a prompt only, the rule lives in the request and depends on the agent's attention in that conversation:

"Follow the project's standards and don't access the database directly from the interface."

With a harness, the same rule becomes a guide and a sensor. The guide is an excerpt from AGENTS.md, stored in the repository:

## Architecture
- Layers: interface -> services -> repository. Never skip layers.
- Details and examples: docs/architecture.md

## Before you say you're done
- Run `make check`. Only declare the task done if everything passes.

The sensor is an architecture test that runs on its own with every change and talks back to the agent when the rule is broken:

FAILED: architecture_test/layers
interface/orders.py accesses repository/orders.py directly.
Rule: the interface may only call the services layer.
How to fix: move the query to services/orders.py and call
the service from the interface. Example in docs/architecture.md

Prompt only

With a harness

Where the rule lives

In the request, which the agent may forget

In the repository, under version control

Who checks

A person, if they remember to look

A test that runs on every change

When the agent gets it wrong

The error reaches human review

The agent gets the fix instructions and tries again

Look at the last two lines of the test output: they were written for the agent to read, with the path to the fix. This is the kind of detail that turns a request into a system.

Harness, framework, and runtime

For readers with a technical background, one distinction is worth making. A framework is the box of parts for building an agent; a runtime is the layer that guarantees durable execution, retries, and persistence; a harness is the layer that arrives with decisions already made about tools, planning, file access, and context management. Harrison Chase's analogy, cited by DataCamp, helps: Node.js would be the runtime, Express the framework, and Next.js the harness (DataCamp, 2026). Claude Code, Codex, Cursor, and Deep Agents are examples of ready-made harnesses.

A warning for anyone researching the topic: Harness is also the name of an American software delivery platform company that publishes reports on agents and shows up in searches. In this article, harness always means the discipline, and the company appears only as the source of one of the studies cited.

What the data says

The 2026 data points in the same direction: the harness moves results as much as the model does, agent adoption is growing faster than controls and, in Brazil, governance maturity is still low. I grouped the findings into six blocks and left samples and method details in the note on the data at the end of the article.

1. Same model, different results

In LangChain's case, there were four changes: a mandatory self-verification step before closing the task, a map of the project's folders handed to the agent right at the start, a detector that raises an alert when the agent edits the same file too many times, and a reasoning budget for each phase. One detail runs against common sense: keeping the model reasoning at maximum the whole time barely improved anything, because tasks ran out of time. The gain came from concentrating reasoning on planning and verification (LangChain, 2026).

Academia reached a similar conclusion. Researchers from Stanford, MIT, and KRAFTON built a system that searches on its own for the best harness for a model and took second place on TerminalBench-2 among agents using that same model. The paper cites a study that found up to a sixfold difference in performance just by changing the harness around a fixed model (Lee et al., Meta-Harness, 2026).

2. What happens at scale

OpenAI's experiment is the most cited case of the year. In five months, a team that grew from three to seven engineers reached about 1 million lines of code without writing any of them by hand, and estimates it took a tenth of the time the traditional approach would have required (OpenAI, 2026).

The caveat comes from the authors themselves: the start was slow because the environment was poorly specified, and the result depends on heavy investment in tooling. Before automating the cleanup, the team spent its Fridays fixing what it called "AI slop," the sloppy code that agents copied and multiplied.

3. Adoption grows, quality stalls

In LangChain's survey of practitioners, 57% already have agents in production, and quality shows up as the main barrier. The most revealing mismatch lies elsewhere: 89% monitor their agents, but only 52% run offline evaluations, the quality tests before going live (LangChain, State of Agent Engineering). Seeing what happened is not the same as knowing whether it was right.

On the user side, the annual Stack Overflow survey, released in October 2026, shows that 48% of developers only trust AI output when they can easily verify the result, and that about 7% would trust it for high-stakes decisions (via The Register, 2026). Verifiability, which is exactly what a harness delivers, has become a condition for trust.

4. The gap between confidence and control

The most uncomfortable data point of the year comes from a survey conducted for the company Harness among professionals at large companies. While 74% are confident their tests would catch a serious failure, only 19% have a gate that automatically blocks a bad release. While 76% believe they could shut down a rogue agent in under 15 minutes, only 33% have an immediate kill switch. And while 77% say they know all of their agents, only 44% use an active tool to discover them (Harness, State of Agent DLC 2026).

Dumbbell chart with three pairs of percentages at large companies: testing, 74% confidence versus 19% with an automated gate; shutdown, 76% versus 33% with an immediate kill switch; inventory, 77% versus 44% with an active discovery tool
At large companies, confidence in agents runs well ahead of the controls that would back it up.

The chart shows the gap, but the number that worries me most is another one: 74% say they have full visibility into spending per agent and, even so, 60% went over budget in the previous quarter. Confidence without instruments is usually just optimism. One caveat about the source: the study comes from a company that sells precisely these controls, which does not invalidate the numbers but calls for a critical reading.

5. What about Brazil?

In Brazil, AI adoption has accelerated, but the foundation for reliable agents is still under construction. According to IBGE, Brazil's national statistics institute, the share of medium and large industrial companies using AI jumped from 16.9% in 2022 to 41.9% in 2024 (IBGE, PINTEC Semestral, 2025).

When the focus is agents, the numbers shrink. According to a study released by AWS in September 2026, only 6% of Brazilian companies have implemented agentic AI (via Convergência Digital, 2026). And in the Raio X da IA no Brasil (AI X-Ray of Brazil) survey of CIOs, only 11% of companies meet the governance criterion (via Teletime, 2026).

There is one positive note: in Deloitte's global study, Brazilian leaders report mature agent governance more often than the global average, 27% versus 21% (Deloitte, State of AI in the Enterprise 2026). These studies have different audiences, so I do not compare them with one another.

6. The counterpoint

Not everything points toward ever-larger harnesses. A study that dissected the code of eleven coding harnesses showed that mini-SWE-agent, at about 100 lines, reports results in the same range as systems a thousand times larger. What separates the big ones from the small ones is not completing the task, but safety, failure recovery, cost control, and extensibility (Barbaste et al., 2026).

Another counterpoint: part of the harness ages fast. Anthropic removed entire steps from its design when Opus 4.6 became able to sustain long tasks on its own, and Osmani notes that "context anxiety," the habit of wrapping up work early as the window fills, practically disappeared from one model to the next (Anthropic, 2026; Osmani, 2026).

And perceived productivity is misleading. In METR's 2025 controlled study, experienced developers took 19% longer with AI while believing they were faster. In February 2026, METR itself acknowledged that the study design no longer measured reliably, in part because many developers refused to work without AI to form the control group (METR, 2026). Finally, Gartner projected in 2025 that over 40% of agentic AI projects will be canceled by the end of 2027, due to escalating costs, unclear business value, or inadequate risk controls (Gartner, 2025). Two of those three reasons are exactly what a good harness tackles.

How a harness works from the inside

Every harness combines two forces: guides, which steer the agent before it acts, and sensors, which observe the result afterward and make correction possible. This is the most useful synthesis I have found, and it comes from Birgitta Böckeler (martinfowler.com, 2026). Guides alone produce rules nobody checks. Sensors alone produce an agent that repeats the same mistakes, because it never got the right direction to begin with.

Böckeler crosses this idea with a second dimension. Computational controls are deterministic, cheap, and fast: tests, linters (automated code-style checkers), type checkers, architecture tests. Inferential controls use another AI model to judge: AI code review, an "LLM as judge," an evaluator agent. They are slower, more expensive, and less predictable, but they catch what a test cannot see, such as a solution that is technically correct and conceptually wrong.

Two-by-two matrix of realistic photos: a golden ruler and template as the computational guide, an instruction notebook as the inferential guide, a dial indicator as the computational sensor, and a magnifying glass over the notebook as the inferential sensor
The four types of control in a harness, following Böckeler's model of guides and sensors.

The matrix helps reveal imbalances. A common risk is to pour all the effort into the quadrant of written instructions and leave the computational sensors quadrant empty. The result is a well-directed agent that nobody checks in a cheap, repeatable way. One practical detail from Böckeler is pure gold: sensors work best when the error message is written for the agent to read, with instructions on how to fix the problem.

The ratchet effect

The mindset that defines the discipline is the ratchet: every real failure becomes a permanent rule, whether a line in the instruction file, a hook, or a check. Osmani adds two conditions. Every rule should be traceable to a concrete past failure, and it should only be removed when a more capable model makes it unnecessary (O'Reilly Radar, 2026). Hashimoto says that every line in his project's instruction file was born from some agent misbehavior (Hashimoto, 2026).

Anyone who works in quality will recognize the pattern: it is the continuous improvement cycle applied to a colleague who has no memory of their own. That is why Böckeler concludes that the harness is an ongoing engineering practice that is never finished.

The seven subsystems

A study that analyzed the code of eleven coding harnesses, including Claude Code, Codex CLI, Gemini CLI, OpenHands, and Aider, found seven recurring subsystems (Barbaste et al., 2026). I turned each one into a question that a manager, even one without a technical background, can ask the team.

Subsystem

What it does

Question for the team

Agent loop

Alternates reasoning and action and decides when to stop

Who confirms the task is really finished?

Model integration

Builds the prompt, talks to providers, and routes tasks

Can we switch models without rewriting everything?

Tools and actions

Defines what the agent can do in the world

Which actions does it take without asking for permission?

Memory and context

Rations the context window and keeps knowledge across sessions

Where does what it learned in the last session live?

Safety and permissions

Decides what runs, what needs approval, and what is forbidden

What happens if it tries to delete data?

Orchestration

Creates and coordinates subagents

Who coordinates when there are several agents?

Extensibility

Settings, hooks, skills, plugins, and MCP

Who keeps these rules up to date?

The same study shows that standards are converging: skills (reusable instruction packages) in the SKILL.md format appear in 9 of the 11 systems, and the MCP protocol in 8 of 11. For those making investment decisions, that lowers the risk of betting on a format that disappears in six months.

What those who have done it at scale learned

Five lessons recur in the accounts from OpenAI, Anthropic, and LangChain.

  1. What is not in the repository does not exist for the agent. Knowledge stored in chat threads, scattered documents, or people's heads is invisible. OpenAI tried a giant instruction file and it failed: it took up context, went stale, and could not be verified. The solution was an AGENTS.md of about 100 lines working as a table of contents, pointing to a documentation folder checked by linters (OpenAI, 2026). HumanLayer keeps its own under 60 lines (Osmani, 2026).

  2. Rigid architecture comes first. OpenAI fixed layers with a dependency direction validated by structural tests. The boundaries are rigid; within them, the agent has freedom.

  3. Whoever builds should not grade their own work. Anthropic observed that agents praise their own work even when it is mediocre, and that tuning a separate, skeptical evaluator is much easier than making the generator self-critical (Anthropic, 2026). At LangChain, the most common failure was the agent rereading its own code, deciding it looked fine, and stopping.

  4. Cleanup has to be automatic. Agents copy the patterns they find, including the bad ones. OpenAI replaced its cleanup Fridays with mechanical "golden principles" and background agents that open small fixes, most of them reviewable in under a minute.

  5. A recurring failure is a missing capability. When the agent gets it wrong again, the useful question is which tool, rule, or piece of information is missing from the environment. Repeating the request with more emphasis rarely works.

What about beyond code?

Almost all public evidence comes from coding agents, because that is where the harness is visible and where benchmarks, standardized performance tests, exist to measure it. But the logic holds for a customer service agent, an HR agent, or a finance back-office agent, cases that SoftDesign lists among the corporate uses of the discipline (SoftDesign, 2026). Guides become policies, knowledge bases, and examples; sensors become policy checks, quality sampling, and an evaluator; permissions define what the agent resolves on its own and what it escalates to a person.

An illustrative microcase, put together by me only to show the mapping, helps make this visible. Imagine an agent that triages debt renegotiation requests at a bank:

  • Task: the agent reads the customer's request, looks up the contract, and proposes renegotiation terms.

  • Guide: the current credit policy, the allowed discount ranges, and examples of proposals already approved, handed to the agent before it acts.

  • Sensor: an automated check compares the proposal with the policy limits, and a separate evaluator agent checks whether the reply to the customer is clear and complete.

  • Blocking gate: no proposal outside the policy or above the agent's approval limit goes out without an analyst's sign-off; the system simply will not let it be sent.

I will venture a reading of my own, as someone who has spent his life designing training programs: a good harness looks a lot like good instructional design. It has a clear objective (the specification), support materials (the context), an assessment rubric (the evaluator's criteria), formative feedback (the sensors), and a course review after every cohort (the ratchet). The difference is that the learner, here, forgets everything at the end of each session.

Four lenses on the same topic

Harness engineering looks different depending on who is looking, and each seat at the table asks a different question. The lenses below are my own analytical synthesis, built from the sources in this article and from my experience as a solutions architect and professor. They are not interviews.

Lens 1: CTO or engineering leader

For those accountable for engineering, the harness is an architecture decision. Böckeler uses the term "harnessability" for how readily a system lets itself be steered by agents: strongly typed languages enable type sensors, modules with clear boundaries enable architecture rules, and mature frameworks reduce what the agent has to decide. The thankless side is legacy code, because the harness is most needed precisely where it is hardest to build (Böckeler, 2026).

There is also the bottleneck that moves. DORA's 2026 report on the return on AI in software development describes a J-curve: productivity dips before it rises, partly because of what it calls the "verification tax," the extra effort to confirm that generated code is reliable, secure, and consistent with the architecture (via Kodus, 2026). Generating faster only pays off if review keeps pace. The question for this seat: are our code and our processes legible to an agent?

Lens 2: Head of AI

For those in charge of AI strategy, choosing the harness has become a decision separate from choosing the model, and the two are more tightly coupled than they seem (DataCamp, 2026). Models are trained with certain harnesses in the loop and end up adapting to them, so changing the harness can cause regressions, and switching models may require rewriting part of the logic (Osmani, 2026).

Anthropic's principle strikes me as the most important one for this seat: every component of the harness encodes an assumption about what the model cannot do on its own, and those assumptions need to be retested with every new model (Anthropic, 2026). Add to that the gap between the 89% who monitor and the 52% who evaluate, and the agenda is set. The question for this seat: which rules in our harness exist because of a limitation of a model we no longer even use?

Lens 3: security, risk, and governance

For those accountable for risk, autonomy turns a text error into an action error. The best-known case happened in July 2025, during a public 12-day experiment on the Replit platform. With a code freeze in effect and an explicit instruction not to change anything without permission, the agent ran destructive commands on the production database, deleted records for 1,206 executives and more than 1,196 companies, and then falsely claimed there was no way to restore the data. Replit responded by announcing automatic separation between development and production databases and a planning-only mode (AI Agent Incident Register, 2026).

The lesson is pure harness: the freeze lived in the prompt when it should have lived in the execution layer. In December 2025, OWASP published its first list of ten risks specific to agentic applications, with items such as goal hijacking, identity and privilege abuse, memory poisoning, and rogue agents, and it recommends least privilege, a distinct identity for each agent, and a tested kill switch (via Cycode, 2026). Remember that only 33% of the large companies in the Harness survey have that switch. The question for this seat: if the agent makes the wrong call right now, what actually stops it, beyond the wording of the instruction?

Lens 4: people and learning

For those who look after people and training, the harness changes how work is designed. At OpenAI, the discipline shifted from writing code to designing tools, abstractions, and feedback loops, and human attention became the scarce resource (OpenAI, 2026). Human review moves without disappearing: it leaves the end of the process, where it was putting out fires, and goes to the beginning, into intent and planning (DSA, 2026).

There is a warning every people leader should read. Hashimoto himself, a convert and an enthusiast, says he worries about skill formation among junior developers without solid fundamentals, and recommends keeping part of the work manual so as not to lose competencies (Hashimoto, 2026). Add the gap METR found between perceived and measured productivity, and the message is clear: feeling more productive is not proof that you are learning, or that you are delivering more. The question for this seat: are we training people to write code, or to design the environments in which agents write good code?

The three objections that land on the decision-maker's desk

When the topic leaves the technical team and reaches the boardroom, three objections come up: cost, governance, and the impact on people. All three are legitimate, and none of them is solved with enthusiasm.

"Isn't this a big tech thing?"

A harness has a cost, and the public numbers show it bluntly. In Anthropic's test with a retro game maker, the agent working alone ran for 20 minutes and cost $9; with the full harness, it took 6 hours and $200, more than 20 times as much. The difference is that only the harnessed version delivered the core feature working. With a newer model and a simplified harness, a music production app came out in 3 hours and 50 minutes for $124.70 (Anthropic, 2026). At LangChain, more reasoning ended up consuming more than twice the tokens and time (LangChain, 2026).

The other side of the ledger is that building a harness can be cheap. mini-SWE-agent is about 100 lines long, a good AGENTS.md fits in fewer than 60, and ready-made tools such as Claude Code, Codex, and Deep Agents already bring most of the structure; the company configures instead of building from scratch. The most sensible recommendation I found comes from DSA: start with a frequent, well-bounded workflow, such as bug fixing or test generation, and turn every recurring failure into a rule, a test, or a tool (DSA, 2026).

My read for the typical mid-sized Brazilian company: the most expensive harness is usually the one that was never built, because the bill arrives later as rework, incidents, and lost trust. And the right metric is rarely cost per token. It is cost per completed and verified task, and only 6% of the companies surveyed in the Raio X da IA currently have mature practices for assessing cost and return (Teletime, 2026).

"Who answers for it when the agent gets it wrong?"

Accountability remains human, and the harness is what makes that accountability workable. Böckeler points out that professionals carry an implicit harness, made of absorbed conventions, a sense of responsibility, and alignment with the organization, and that none of this fully transfers to written rules (Böckeler, 2026). The goal is to direct human judgment to where it matters most.

In practice, agent governance means turning policy into mechanism: least privilege, separate environments, mandatory approval for destructive operations, auditable logs, and a tested kill switch. It includes treating a prompt change with the same rigor as a code change, something only 42% of large companies do (Harness, 2026). SoftDesign argues that governance is what makes it possible to move fast responsibly, and the incident data backs that up (SoftDesign, 2026).

"What about the people?"

This is the objection that most deserves care, because the human cost does not show up in the budget. People who used to spend the day creating now review, specify, and decide, and reviewing agent output all day wears you out in a different way. DORA calls this burden the verification tax; OpenAI realized that human attention became the bottleneck; and almost 1 in 2 developers only trusts AI when they can easily check the result.

There is also the anxiety of those just starting out, who look at an experiment with 1 million lines and no hand-written code and wonder where they fit in. I do not have a definitive answer to that. What the accounts suggest is that a good harness relieves people when it hands repetitive checks, such as tests, linters, and policy checks, to the machine, and saves human attention for judgment. A poorly designed harness does the opposite: it just adds more things for someone to review.

Practical guide: where to start

The best starting point is small: one workflow, one short instruction file, one sensor that runs on its own, and the habit of turning every mistake into a rule. Here is what each audience can do right away.

For leaders and executives

  1. Change the question. Before "which model?", ask "which task, with which verifiable definition of done?".

  2. Choose the pilot wisely. A frequent, well-bounded, reversible workflow teaches more than a flashy, risky use case.

  3. Require three controls before granting access to real systems: least privilege, an environment separate from production, and a tested kill switch.

  4. Change the metric. Track cost per completed and verified task and incidents per change, in addition to volume delivered.

  5. Budget for maintenance. The harness ages with every new model and needs an owner, time, and periodic review.

For technical teams

  1. Write a short AGENTS.md, under 100 lines, that works as a table of contents and points to the versioned documentation in the repository.

  2. Start a failure log. Every recurring error becomes a line, a test, a hook, or a script, with its origin noted so you know when the rule can go.

  3. Start with the cheap sensors: tests, linters, and architecture tests, with error messages written so the agent understands how to fix the problem.

  4. Create a closing check. Before declaring the task done, the agent checks the result against the specification.

  5. Separate who generates from who evaluates, even if the evaluator is another agent with explicit criteria and a tool to test things as a user would.

  6. Use traces to improve the harness, not just to debug incidents. Traces are the step-by-step record of each run, and reading those records is how LangChain reached its gains.

  7. With every model change, take things apart methodically. Remove components one at a time and see which ones still hold up the result, as Anthropic did.

For educators and training coordinators

  1. Teach specification and verification as core competencies: writing definitions of done, designing rubrics for evaluators, and reading an agent's execution trace.

  2. Ask for the harness along with the deliverable. In hands-on projects, students hand in the result, the instruction file, and a log of what they did when the agent got it wrong.

  3. Assess the process, not just the product. The decision a student makes when the agent fails says more about their competence than the final result.

  4. Make use of open materials. The Walking Labs course has 14 lessons and is offered in 15 languages, and Shaw Talebi's video organizes the topic into three levers (context, tools, and automations) plus evaluations (YouTube, 2026).

For learners and early-career professionals

  1. Fundamentals still matter. You cannot build a sensor for something you do not understand.

  2. Learn to write tests and specifications. They are the two tools of any harness.

  3. Build a harness for a personal project, with an AGENTS.md and a failure log. It becomes portfolio material and shows how you think.

  4. Do part of the work without AI, on purpose, as Hashimoto suggests, to keep building the skills you will need to judge what the agent delivers.

Conclusion: the harness matters as much as the horse

The harness has become the part of the agent that the organization controls, and that is why the advantage lies there. Let me return to the four questions from the beginning.

What is harness engineering, and why did the term gain momentum in 2026? It is the discipline of designing the environment that steers the model: instructions, tools, memory, permissions, sensors, and correction loops. It got its name in February 2026, almost simultaneously in several places, because agents started working for hours on real systems, and errors stopped being bad answers and became bad actions.

What does the data say? That the same model can go from 52.8% to 66.5% by changing only the harness; that adoption is moving faster than controls, with 74% of large companies confident in their tests and 19% with an actual automated block; and that, in Brazil, AI governance is still the exception at most of the companies surveyed. The counterpoint counts too: a small harness can work, and part of any harness ages as the model improves.

What does it cost, who governs it, and what changes for people? It costs money, sometimes a lot per run, but not having one usually costs more in rework and incidents. Governance needs to move from written policy to mechanism. And people change roles, from authors to designers and reviewers, with real risks of fatigue and skill loss if nobody looks after that.

Where do you start? With a small workflow, a short AGENTS.md, cheap sensors, a ratchet that turns errors into rules, and training that teaches people to specify and to verify.

My own reading, not a forecast from the sources: harness engineering is likely to follow a path similar to DevOps, which began as a differentiator for a few teams, became a best practice, and then a market standard. SoftDesign is betting on the same trajectory. Osmani goes further and suggests that harnesses may evolve from static configuration into something closer to a compiler, assembled to order for each task.

I am left with a question I still cannot answer. If every component of the harness encodes a limitation of the model, and models improve every few months, how much of what we teach today will become dead code a year from now? My bet is that the tools change and the reasoning stays: specify clearly, verify methodically, and learn from every mistake. It is a bet, and I would like to hear from those who think differently.

References

Research, studies, and primary documents

Articles, news coverage, and supporting materials

A note on the data

  • Cutoff date: sources consulted through November 16, 2026.

  • Domain scope: almost all the quantitative evidence comes from coding agents and controlled benchmarks, such as Terminal Bench 2.0 and SWE-bench Verified. Extending it to customer service, HR, or back-office agents is the author's reading.

  • Commercial interest: LangChain, OpenAI, Anthropic, Harness, SoftDesign, DataCamp, and DSA sell products, services, or courses related to the topic. The numbers from these sources are self-reported and generally come from a single experiment, with no reported variance.

  • Causality: none of the studies cited shows that adopting harness engineering, by itself, causes productivity gains in any organization. The cases show association in specific contexts.

  • Secondary sources: the Stack Overflow Developer Survey 2026 was consulted via The Register; the AWS study, via Convergência Digital; the Raio X da IA no Brasil, via Teletime; the DORA 2026 report, via Kodus; and the OWASP list, via Cycode.

  • Different bases: the Brazilian studies cover distinct populations (industrial companies with 100 or more employees at IBGE, companies in general at AWS, large companies at Deloitte, and CIOs in the Raio X) and should not be compared directly. The difficulties cited by IBGE refer to advanced digital technologies in general, not only to AI.

  • Projections: the Gartner estimate is a projection made in June 2025, not an observed figure.

  • Translations: quotations from Portuguese-language sources were translated by the author; short expressions from English-language sources appear in their original wording or in a close paraphrase.

Samples and method details

  • LangChain, Terminal Bench 2.0: 89 tasks and the same model (gpt-5.2-codex) in every run. With maximum reasoning the whole time, the agent scored 53.9%, versus 66.5% for the final combination. The authors acknowledge it is one benchmark, one model, and no reported variance (LangChain, 2026).

  • Meta-Harness: 76.4% on TerminalBench-2 with Claude Opus 4.6 (Lee et al., 2026).

  • OpenAI: about 1,500 pull requests (code change requests) merged, averaging 3.5 per engineer per day; before automation, manual cleanup took 20% of the week (OpenAI, 2026).

  • LangChain, State of Agent Engineering: 1,340 respondents, from November 18 to December 2, 2025. Agents in production at 67% of companies with more than 10,000 employees and at 50% of those with fewer than 100; quality is the main barrier for 32% (LangChain).

  • Stack Overflow Developer Survey 2026: 30,903 responses from 169 countries; 66% use coding assistants or agents and 26% use automated agentic workflows (via The Register, 2026).

  • Harness and Sapio Research: 700 professionals at companies with more than 1,000 employees in the United States, the United Kingdom, France, Germany, and India, in July 2026; 58% reported more incidents per 100 changes since adopting agents (Harness, 2026).

  • IBGE, PINTEC Semestral: industrial companies with 100 or more employees. Among the difficulties in adopting advanced digital technologies in general, 78.6% cited cost and 54.2% a lack of qualified staff (IBGE, 2025).

  • Study released by AWS: the news report does not give the sample; 48% cite a shortage of digital and AI skills as a barrier, and about a third feel confident measuring return on investment (Convergência Digital, 2026).

  • Raio X da IA no Brasil: 150 CIOs from 14 states; 6% meet the cost and return criterion, 5% the platform criterion, and 45% none of the seven criteria (Teletime, 2026).

  • Deloitte, State of AI in the Enterprise 2026: 3,235 leaders in 24 countries, 115 of them in Brazil, between August and September 2025; 95% of Brazilian leaders plan to adopt agentic AI within two years (Deloitte).

  • METR: the 2025 result has a confidence interval of 2% to 39% (METR, 2026).

  • Barbaste et al.: the results for mini-SWE-agent and the other systems are self-reported and use different models (arXiv, 2026).

Leia também