What Is an LLM Harness and Why It Matters More Than the Model

Two teams take the same model and solve the same task. One gets a result a third better, a third cheaper, and more stable. The difference is not in the model — it’s identical. The difference is in the harness: in how the task is broken down, who gets which roles, what goes into the context and what happens with the tools. In developer circles this is called a harness — and in the fall of 2026 it, rather than the choice of model, became the main factor of results in coding.

A Harness Is the “Hitch” Around the Model

The harness is the entire engineering layer between a human and the language model: the interface (a terminal or desktop agent), the tool set (working with files, the browser, the repository), execution rules (roles, subagents, skills), memory and context. The model is the engine; the harness is the chassis, the gearbox and the dashboard. The same engine rides differently in different chassis.

Practical examples of harnesses: Codex from OpenAI, Claude Code and Cowork from Anthropic, Zcode from Z.ai, OpenCode, Oh My Pi, OpenClaw — each has its own role architecture and its own way of managing the context. A comparison on concrete scenarios is in the article on choosing a harness between Codex, Claude Code, Zcode and OMP.

The Evidence: the Harness Moves the Numbers Without Changing the Model

Recent measurements show the scale of the effect:

  • Batch tool calls instead of one by one. The new “Code Mode” approach changes the paradigm: the model doesn’t poke tools one at a time, it writes code that calls the needed functions itself, and only the result comes back into the context. The authors’ measurements: half the input tokens, and the cost of a task at about 71% of the regular mode — a saving of almost a third.
  • Collapsing the tool catalog. Cloudflare was the first to replace 2,600 separate MCP tools with two universal ones — search and execution. The tool descriptions shrank from 1.1 million tokens to a thousand. The trick was adopted by Codex, OpenCode and other platforms.
  • Roles instead of one “superagent.” Practitioners set up roles in the harness: a cheap model plans, the flagship solves the hard stuff, a specialist handles the markup, another one watches quality. With this organization the probability of error drops toward zero — more expensive in tokens, cheaper in rework.

The common denominator: the limitations we are used to blaming on “model stupidity” more often turn out to be limitations of the harness. The model doesn’t “see” your project not because it’s dumb, but because the harness didn’t give it the needed context or flooded it with garbage from thousands of tool descriptions.

What a Working Harness Consists Of

  1. Roles and subagents. The main “manager” agent hands out tasks to subagents and checks the result. In terminal harnesses this is literal: an agent with the “planner” role gets one model and an instruction, the “designer” agent gets another model with the rule “nothing but markup,” and an external observer on a cheap model reviews the result.
  2. Skills. Recurring processes are written up as instruction files that the model follows literally. The structure is elementary — a folder with a skill file:
.claude/skills/deploy/
└─ SKILL.md   (what to do, the order, what's off-limits)

Skills work more reliably than rules in a general memory file: practice shows the model follows a skill “unquestioningly,” while long rules in AGENTS.md get forgotten over time.

  1. Model routing. Through a proxy or an aggregator: routine goes to cheap and free models, hard stuff goes to the flagship. A typical setup is a self-hosted proxy on a VPS with priorities in the config:
model_list:
  - model_name: worker
    litellm_params:
      model: openai/glm-4.7-flash
      api_base: https://api.z.ai/api/paas/v4
  - model_name: boss
    litellm_params:
      model: anthropic/claude-opus

router_settings:
  fallbacks: [{"worker": ["boss"]}]

With this scheme, changing a harness comes down to changing the base URL — the roles and fallbacks stay.

  1. Memory and context. Files of the project’s standing knowledge, session and cache discipline — covered in detail in the article on agent memory in practice.
  2. Guarantees instead of requests. Hooks that physically block dangerous actions instead of hoping an instruction will be obeyed. An example of an interceptor that forbids deleting anything outside the project:
{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Bash",
      "hooks": [{
        "type": "command",
        "command": "python check_cmd.py"
      }]
    }]
  }
}

The script receives the agent’s command as input and returns a denial if it’s destructive. An instruction in memory is a request; a hook is a lock.

Signs of a Bad Harness

Diagnosing “is the model dumb or is the harness choking it” by six symptoms:

  • The agent regularly “forgets” the project’s rules — the rules sit in a general memory file instead of skills; move anything repeatable into skills.
  • Every task starts with a “retelling” of the project — there’s no rules file, or it’s overloaded and never read to the end.
  • The session bloats and gets more expensive through the day — the prompt cache is breaking: too many subagents and jumps between tasks.
  • The model “doesn’t see” the tools or gets tangled in them — the tool catalog is bloated; collapse it to the “search + execution” scheme or split it by roles.
  • Dangerous commands go through without asking — there are no hooks; instructions don’t protect, only interceptors do.
  • The same work costs a colleague twice as much — there’s no routing: routine is being run on the flagship instead of a cheap model.

Every symptom is fixed with an hour of configuration — and none of them requires changing the model. That is the practical meaning of the “the harness matters more” thesis.

A Mini Workshop: Assemble the Frame in an Hour

A minimal working harness frame for a new project looks like this. Step one — a project rules file with the goal, the stack and the prohibitions (five short paragraphs, not five pages). Step two — one skill for the most frequent recurring process. Step three — a hook on the most expensive action. Step four — routing: a cheap model for routine, the flagship for hard stuff (the pairing is described in the article on the free pipeline of limits). An hour of this setup pays off on every subsequent session.

What This Means for Choosing a Model

The conclusion is uncomfortable but useful: if the results don’t satisfy you, fix the harness first and only then change the model. Switching harnesses yields tens of percent in savings and quality gains for free; switching models costs money and often has no effect if the harness stays bad. And if you’re starting from zero and want to understand what vibe coders are actually paying for and where the money is in it, start with the breakdown of the real economics of vibe coding — it explains best of all why professionals invest precisely in the engineering harness.

The harness is the place where “neural network magic” turns into engineering: a rules file, a skill, a hook, a proxy config — four artifacts that change the outcome more than a model swap does. The approaches are current as of fall 2026: agent architectures are now changing faster than the models — keep an eye on them.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: