Model Harness Architectures: A Primer
What exactly IS a harness?
It's impossible to have a conversation about AI without at least one mention of "harness" (cue drinking game) but as is the case with many technical concepts that break containment, harness is far from a standardized object. This is made all the more confusing as the leading AI labs persistently propose that the "model is eating the harness" while they continue to expand the size and functionality of the harness used by their models.
I'm doing a lot of work around models and harnesses (of course) and find the combination of definitional imprecision and doublespeak to be both exhausting and deleterious, so let me make clear from the outset how I define "harness" before we expand beyond semantics into actual construction:
- By harness, I mean the part that runs one model use, one run at a time, exactly as it is configured.
- By platform, I mean everything around the harness that lasts beyond a single run: it supplies the harness, keeps the record, and holds it to account.
Together they represent everything that lets a given model use do its job, shaped by how it has to behave inside a specific product. What follows is the whole map of our "model harness platform", as we've built it - the design principles and the base view of the platform architecture.
Design Principles
It's important to keep in mind that my pursuit of this project was driven not by a fundamental flaw I see in harness design from other providers but by a need to understand both what a harness is and should be. That is, I was thinking about how to get better returns from the MANY model use instances already strewn across Kensho, OKGC, Amplify, and the other products I'm developing, how I might get into a more consistent development cadence for them and cut down on the rising tide of duplicative work, but also to have greater confidence that the design we implement is at least closer to optimal. And thus there were two primary principles I followed when designing the v1 platform you see broken apart below:
- A harness must support every implementation of a model in a product, regardless of its complexity.
- A harness must be structured for discoverability and evolvability.
Let's quickly dive into each.
Design Principle 1: A harness must support ALL model uses
It's a bit of a weird time in which we find ourselves, when intelligence itself can be called whenever and wherever we want. This means that our previously deterministic software systems that had to consider, identify, and hardcode even the most obscure edge cases can now inject intelligence - to build flexibility directly into our systems. Yes, this makes our software more stochastic, but in doing so can also make it far more flexible and natural.
My point here is that using models is not only about agents but about any of the ways that we can use "intelligence on tap" to improve our software systems. And thus our harness must support all of said use cases:
Design Principle 2: A harness must be evolvable
It will come as no surprise given my research focuses, but harnesses are clearly products meant to be both discovered and evolved. This touches on the underlying data structures but also the methods employed by the platform to actually "find and evolve optimal" for each and every model use instance for which we're designing.
To give a sense of scale: just choosing the model means picking from the 651 available to us today, and each call can then be tuned with up to 26 settings - 17 at the model itself (temperature, how much it reasons, and so on) and 9 at the router that decides which provider serves it. Most models support around 10 of these, and most of those are continuous rather than on or off. Add prompts, skills, tools and memory on top, and the space of possible configurations for even a single model use is far too big to tune by hand. So the platform has to search it:
A Harness System Composed of Four Parts
We design for the full range of model uses and for evolvability, fine. But what does a harness actually look like? How is it composed? Any comprehensive harness system, not just ours, is composed of four primary subsystems:
The Harness
The harness itself is responsible for handling the use of a model for one run at a time, exactly as it is configured. It builds each request, calls the model, runs the tools it is allowed, checks the answers and records what happened. Anything that keeps, supplies, judges or changes that configuration belongs to the platform (next). Its parts fall into three groups:
- The model itself, including model selection, how we call it, how we configure it, etc.
- What the model receives, including skills, prompts, etc.
- How we manage each turn, which is effectively deciding exactly what the model receives since there is no persistence for a model in conversation.
The Platform
The harness itself is quite thin. What we interact with every day in Claude Code, Codex, and the like is not this narrow slice but its interaction with a broader platform that surrounds and supports the harness beyond a single run, effectively through two primary pathways:
- The platform supplies the harness with all of the historicals, best practices, databases, libraries - really anything it needs that exists outside of the given run.
- The platform holds the harness to account by recording literally everything and actively monitoring to evaluate both performance and safety.
Service and Libraries
The harness and the platform describe what runs and what surrounds it. The service is how a product actually gets to use them, in one of two forms:
- A hosted service: one program that runs the harness for any product that calls it. A product asks it to run one of its model uses and the service streams the reply back; when the run needs the product's own operation or a person's answer, the service calls the product back. The product keeps its own data, runs and records in its own database.
- Libraries: the harness itself in the language a product is written in - TypeScript, Python, Rust, whatever we need to support - so a product can run a model use inside its own program, with nothing hosted in between.
Both read the same declarations, so a model use behaves the same whichever form it runs in.
Harness Construction System
Everything above is declared: the harness runs what it is given, and the platform keeps it, ships it and holds it to account. Construction is where model uses are designed, developed, optimized and evolved. I would argue that this is actually THE key vector in harness systems, yet the least discussed and the least impressive overall today.
This is the base map of the platform as it stands, not a finished design. Construction is where I think the most interesting open problems in harness design sit, and it's where I'll pick up in a future post: how we search the space of configurations for each model use, and how we decide which one is best for a given need.