Stop Building Agents. Start Building Harnesses
From the publisher’s feed, collected in the ZeroLabs newsroom.
The model is the easy part. The thing wrapped around it decides whether your agent survives contact with production.There’s a line making the rounds in AI engineering circles this year: 2025 was the year of agents. 2026 is the year of agent harnesses.It sounds like another hype cycle renaming itself. It isn’t. It’s the industry admitting, slightly embarrassed, what everyone who shipped an agent to production already knew: the model was never the hard part.What is a harness, actually?Strip an “AI agent” down to its parts and you find a language model — a function that takes text and returns text — surrounded by an enormous amount of machinery that is not the model:The control loop. Who decides the agent thinks again, acts again, or stops? What’s the iteration ceiling? What happens at it?Context assembly. Of everything the agent could know, what actually goes into this call’s window — and in what order, trimmed by what rule?The tool surface. What can the agent do, what are the input schemas, what happens when a tool throws, and which tool calls are too dangerous to execute without a gate?Memory. What survives between turns? Between sessions? Where does it live and who can read it?Quality gates. What checks an output before a user sees it or a side effect lands?The meter. Who’s counting tokens, dollars, and iterations — and what stops a run that’s spiraling?That machinery has a name now: the harness. A recent survey of agent harnesses defines it as the layer that turns a model that predicts tokens into a system that reliably executes tasks across time, tools, and sessions. Firecrawl’s explainer calls it the infrastructure that makes agents actually work.I’d put it more bluntly: the model is an engine on a stand. The harness is the rest of the car. Nobody commutes on an engine stand.The evidence: harness beats horsepowerHere’s the empirical pattern that made “harness” the word of 2026.Several engineering teams reported through 2025 that improving the harness around the same model outperformed switching to a more capable model. Same brain, better exoskeleton, better results. If you’ve watched two teams use the same coding assistant — one with ruthless context discipline and tight feedback loops, one pasting whole repos into chat — you’ve seen this in miniature.Meanwhile, the failure statistics keep pointing at the same culprit. One 2026 estimate puts the share of AI agent projects that never reach production at roughly 88% — and the dominant reason cited isn’t model quality. It’s that the harness was too fragile: no cost ceiling, no trace of what happened on the bad run, no way to test whether Tuesday’s prompt change broke Monday’s behavior, a tool layer that fell over the first time an API returned a 500.We spent three years making the brains spectacular and treating the nervous system as an afterthought. The production gap is the harness gap.Why demos lieA demo agent and a production agent can share 100% of their prompt and 0% of their engineering.The demo needs the happy path to work once, on stage, with the author driving. The production agent needs the unhappy paths to work ten thousand times, unattended:The LLM provider has an outage at 2 a.m. — does the run fail over or fail silently?A tool call mutates real data, then the loop retries it — was that retry idempotent, or did you just charge the customer twice?A user pastes something adversarial — does the agent’s tool surface treat it as instructions?The run that usually costs $0.40 hits a pathological loop — does it stop at your budget, or at your credit card limit?Legal asks what the agent did on March 3rd — can you answer in minutes, from traces, or in weeks, from vibes?None of these are model questions. All of them are harness questions. And every one of them is invisible in a demo — which is precisely why teams keep discovering them after launch.Harness engineering, distilledAcross the teams that do get agents into production, the same principles keep showing up. Consider this the short course:1. Be deterministic everywhere you can afford to be. The model is the one gloriously non-deterministic component. Don’t add more. Config, routing, budgets, retries, and tool dispatch should be boring, typed, and testable without an API key.2. Budget the loop, not just the bill. Token costs, dollar costs, and iteration counts are harness inputs, not monthly surprises. A run that exceeds its budget should fail before the spend, not get noticed after.3. Instrument first, apologize never. Every model call, tool call, and retrieval should carry a run ID and land in a trace. When (not if) an agent does something strange, the question “what exactly happened?” should be a query, not an archaeology project.4. Make evaluation a gate, not a vibe. “The new prompt feels better” is not an engineering claim. A golden set plus deterministic graders plus a pass/fail threshold in CI is. Prompt changes and model upgrades should regress loudly, in a pull request, before users find out.5. Treat the tool surface as a security boundary. Tools are where text becomes action. Validate inputs against schemas, gate the dangerous ones, and make side-effecting calls idempotent — because the loop will retry.6. Design for the worst run, not the average one. The average run is fine in every framework ever written. Production is decided by the 99.9th-percentile run: the outage, the injection, the infinite loop, the malformed tool output.If you internalize one thing: harness engineering is just infrastructure engineering wearing a new jacket. The discipline that gave us load balancers, circuit breakers, and observability stacks is the same discipline agents need. We don’t have to invent it. We have to apply it.The catch: nobody wants to build this six timesHere’s the uncomfortable economics. A real harness — budgets, traces, failover, gated tools, eval gates, durable memory — is weeks of plumbing per project. It’s undifferentiated: your harness and my harness should be nearly identical, because neither of us is competing on “has a cost ceiling.” And it’s exactly the kind of code that rots, because it only gets exercised when something goes wrong.That’s the textbook profile of something that should be a framework.Where AgentForge fitsThis is the problem I built AgentForge around — an open-source (Apache-2.0) Python framework with one design thesis: the harness should behave like infrastructure, because that’s what it is.Concretely, three things follow from that thesis:Version-locked contracts. ~30 abstract base classes in a small agentforge-core define the entire agent surface — model, tools, memory, strategy, guardrails, evaluators, observability. Breaking any of them is a major version bump, recorded in an architecture decision record. You can build on the harness the way you build on a database driver: it won't shape-shift under you between minor releases.Every backend is a package you swap by config. LLM provider, memory store, reranker, guardrail vendor, observability stack — each ships as its own PyPI distribution, selected by one line of YAML. Your agent code never names a vendor. Anthropic → Bedrock → a local Ollama model is a config edit, and every backend must pass the same conformance test suite, so “swappable” is enforced, not aspirational.The harness disciplines above are configured, not coded. Budget ceilings that reject over-budget runs before the spend. Run-id propagation through OpenTelemetry on every model, tool, and retrieval call. Cross-provider failover chains. Input/output/tool-call guardrail pipelines (including PII redaction inside the framework, not in app code). Idempotency keys for side-effecting tools. Golden-set evaluators that turn “did this change regress?” into a CI gate. All of it behind those locked contracts.There’s one more piece, because it’s 2026 and half of us build with an AI assistant: every scaffolded project ships framework-aware instructions for Claude Code, Cursor, Copilot, Aider, Codex, and Windsurf, plus step-by-step runbooks — so the AI helping you build stays inside the harness’s idioms instead of improvising around them.pip install "agentforge-py[anthropic]"agentforge new my-agent --template minimalcd my-agent && agentforge run "Hi"It’s v0.2.x, solo-maintained, and engineered like it means it (mypy --strict, ≥90% test coverage, a conformance harness every backend must pass). If the argument of this article resonates — that the harness is the product — I'd genuinely value your skepticism, issues, and contributions: github.com/Scaffoldic/agentforge-py.The models will keep getting better without your help. The harness is the part that’s yours to build — or to stop rebuilding.Stop Building Agents. Start Building Harnesses was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.