Skip to content
AIgentrica
All lessons

Lesson 11 of 11

Model, harness and method

What an agent harness is, which of its parts your client already gives you, and what a method layer such as AIgentrica adds on top.

4 min read

In short

An agent is a model plus a harness: the software around the model that runs its loop, gives it tools and decides what it may do. In Claude Code the harness is Claude Code itself. AIgentrica is not a harness: it is a layer of method and governance on top of one, with roles, an order, a plan and your confirmations.

The idea

A language model on its own only answers. To act, something has to run a loop around it: the model reasons, asks for an action, the software runs it, the model reads the result and decides the next step, until the task is done. Databricks calls this software the harness and describes it as the layer that connects the model to tools, memory, execution environments and guardrails (What is an AI Agent Harness?, Databricks, read on 2 December 2026). The short formula is «agent = model + harness».

The article lists the parts a harness is made of. Grouped in eight blocks:

  • System prompt: the standing instructions the model reads at the start.
  • Tools: what the model can call, from reading a file to running a command.
  • Sandbox: a closed place where commands run without touching the rest of the computer.
  • Code mode: the model writes a short program that calls the tools, instead of one call at a time.
  • Durable storage: files and history that survive the session.
  • Context management: what enters the context window and what gets summarised.
  • Memory: facts the agent keeps from one session to the next.
  • Observability: logs, traces and counters to see what happened and what it cost.

Guardrails run through all of them: which actions need a human yes, which are forbidden.

Two things follow. First, the same model behaves very differently in two harnesses: a good harness gives it the right tools and stops it before a risky action. Second, a rule written in a prompt is weaker than a rule enforced by the harness. «Ask before pushing» in a prompt depends on the model remembering it; a permission rule in the harness asks anyway.

In AIgentrica

AIgentrica sits on top of the harness, not in its place. The loop, the tools, the sandbox, the permissions and the context compaction belong to the client; the AIgentrica MCP server calls no models. What it adds is method: which role works on a task, in what order, with which plan and which checks.

Here is how the eight blocks are shared:

  • System prompt: the client; AIgentrica adds the role files and the common rules, loaded on request.
  • Tools: the client; AIgentrica adds a few MCP tools, such as agent, check and report.
  • Sandbox: the client; AIgentrica adds nothing.
  • Code mode: deferred since phase F45, until the number of tools makes it worth it.
  • Durable storage: your project, with plan/, audit/ and git, written by the agents and confirmed by you.
  • Context management: the client compacts; AIgentrica keeps the agents' text short and loads one agent at a time.
  • Memory: the plan and git play this part; a separate shared memory is suspended.
  • Observability: the local panel, with the agents loaded, their reports and the token use.

The guardrails are where a method layer can do more than text. Since phase F69 the init command writes Claude Code permissions.ask rules for pushes, merges, releases and deploys into .claude/settings.json: Claude Code asks for your yes before running them, whatever the model remembers. The code is in init.ts. In the same phase the check tool learned to report a phase marked completed without checks, that is without a command between backticks and its outcome: a deterministic check of what the agent claims, in check.ts. Neither replaces your judgement; both make it harder to skip.

Try it

Open .claude/settings.json in a project of yours (or create it) and add a rule that makes Claude Code ask before a push:

{
  "permissions": {
    "ask": ["Bash(git push:*)"]
  }
}

Then ask your assistant to push a branch and watch the harness stop it for your confirmation. Notice the difference from a sentence in the prompt: this time the model cannot forget. If you want these rules written for you, together with roles and a plan, install AIgentrica.

Terms

Links to files go to AIgentrica's code on GitHub, at version 1.9.0, the one this site uses.