Dev.to AI ๐Ÿค– Ai ๐Ÿ‘ 0 ๐Ÿ“– 2 min read

AI agents in production: the model does not make them reliable, the harness does

For the past few days, one term keeps coming up among AI engineers: harness engineering. An agent's harness is everything around the model: the execution loop, the tools it gets, how its context is managed, and the guard

For the past few days, one term keeps coming up among AI engineers: harness engineering. An agent's harness is everything around the model: the execution loop, the tools it gets, how its context is managed, and the guardrails. Anthropic describes it as the software scaffolding that turns a model's raw intelligence into a working agent.

This is not academic. Figures published by the model vendors themselves show that, with the same model, the harness changes the outcome. On BrowseComp, a web research benchmark, letting the model filter its own tool outputs raised accuracy from 45.3% to 61.6% (Anthropic, Agent harness design). On an internal research eval, a lead agent coordinating subagents outperformed a single agent running the strongest model by 90.2% (Anthropic, multi-agent research system).

Good news for teams shipping agents: reliability is built, not bought with the latest model.

What production confirms

I help large companies put AI agents into production, mostly on Microsoft Copilot Studio and Azure AI Foundry, with 200+ agents running today. The incidents I see rarely come from the model. They come from the harness:

  • Poorly described tools. An agent picks tools from their descriptions. A vague description, and it calls the wrong connector or passes the wrong parameters.
  • Overflowing context. Returning whole tool responses, often hundreds of useless lines, degrades quality and blows up costs.
  • No verification. An agent grading its own work tends to rate it highly (Anthropic, harness design for long-running apps). You need an independent check: a second agent, tests, a business rule.
  • Fragile plumbing. An ignored proxy variable, an OAuth consent lost on the way, a misapplied filter: silent bugs in agent frameworks that I found and fixed in open source. They never show in a demo, only in production.

Four rules for an enterprise harness

  1. Few tools, well described. Each tool has a precise description and a clear scope. Load tools on demand rather than all upfront.
  2. Answer only on evidence. Over a document corpus, the agent answers when a passage supports it and abstains otherwise. An abstention beats a hallucination in front of a customer.
  3. Separate doing and checking. The agent that produces is not the one that validates. Broad tasks are split between a coordinator and subagents.
  4. Test the harness like software. Reference question sets, measurements before and after every change, logged tool calls.

A skills issue, not just a tech one

A harness has to be designed, tested and maintained: that is team work and it takes skills. Companies that succeed with agents won't be the ones with the best model, but the ones that build a solid harness around it.

Zakaria Khchiche, freelance Tech Lead Data & AI in Paris, 200+ AI agents in production, open source contributor (Mistral AI). French version: zakariakhchiche.github.io ยท LinkedIn

Want your team to build agents like these? I run a hands-on Copilot Studio training (in French, with Spar-x, Qualiopi-certified, eligible for OPCO funding in France): https://zakariakhchiche.github.io/formation-copilot-studio/ and a free AI Act article 4 kit: https://zakariakhchiche.github.io/kit-ai-act/

๐Ÿ“ฐ Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.