Skip to content

The Harness

A harness is the software that manages context, tools and instructions around a model. Design it so the model is hot-swappable.

Ethan Hunt suspended in a harness at the Langley terminal in Mission: Impossible.
On this page
  1. The model proposes. The harness acts.
  2. Design the harness for any model
  3. Your harness holds your working methods
  4. Four model categories to understand
  5. My setup uses the same five parts

Open a part of the graphic to explore it.

Agent = Model + Harness

The model proposes. The harness acts.

The model receives context and proposes a response or a tool call. The harness assembles the instructions and evidence, checks the relevant permissions, runs the tool and sends its result back to the model. This cycle can repeat several times before you receive an answer.

The model is stateless. Its weights, the parameters learned during training, stay fixed when it answers. My corrections do not change those weights. The harness keeps the working record and sends the relevant history with each request. The model follows earlier turns by re-reading that record.

I put lasting improvements in AGENTS.md, skills, notes and checks so the harness can use them in later sessions. Hooks can run checks at defined points in the workflow.

Design the harness for any model

The model should be hot-swappable. Keep your instructions, skills, context and tool connections independent of a particular model or provider. A common model interface, with adapters where needed, lets the harness work with different models. Choose the model for the task without rebuilding your working method.

Your harness holds your working methods

I think of a configured harness as reusable intellectual property (IP). The software is widely available. The useful difference comes from the instructions, workflows, context, evaluations and permissions you build around your work. For an organisation, that can include its research methods and quality checks.

Four model categories to understand

Choose the category that fits the task. These categories can overlap. A frontier model can also be open-weight.

  • Frontier models offer leading general capabilities for work such as analysis, writing and coding.
  • Open-weight models make their weights available to download and run under their licence. You can run inference on your own hardware or with a host.
  • Small models need less computing power. They can suit narrower tasks and on-device use.
  • System One models specialise in structured decisions, such as a category or score. TypeSafe's System One models are an example.

Persistence belongs with the agent's context and execution. It describes memory or state that continues across sessions and can work with different models.

My setup uses the same five parts

I choose a model category for the work. My harness holds the software, instructions, notes and tools that support it. The graphic follows the same five parts as the explainer above. The model is replaceable.

A product can fill several roles in this map. Cursor provides an interface and harness software. Hermes Agent runs tools, manages memory and supports scheduled work. Telegram can be its interface, with my server as its execution environment. Grok Bot supplies a managed agent with chat or voice and a persistent cloud computer. The underlying model remains a separate choice in the Model box.

Obsidian holds my notes and source material. QMD helps find the relevant passages. pstack, Matt Pocock's skills, Impeccable and my own skills give the agent methods for different tasks.

My X connector is twitterapi.io. Hermes uses it for the scheduled digest, with X MCP through xurl as a fallback. GitHub is available through gh CLI and MCP. These connections supply tools the harness can call.

Tool execution and model inference are separate choices. My tools can run on my Mac while a provider runs the model.

A morning X digest uses all five parts

Here is an illustrative version of my scheduled research workflow. Hermes gathers relevant posts from X, uses a selected model to assess them and saves a digest. The harness supplies the working method.

  1. Interfaces

    I set the brief and review the result through Telegram. The interface gives me a way to direct the work.

  2. Skills and workflows

    A digest skill sets the relevance rules, source checks and output format. These are reusable parts of my research method.

  3. Context managers

    A stored watchlist and previous research notes give the task context. Obsidian holds the material. QMD retrieves passages when the task needs them.

  4. Connectors and tools

    twitterapi.io retrieves the posts. The harness runs that connector and saves the digest with source links. X MCP through xurl is the fallback.

  5. Execution

    Hermes runs the scheduled job on my server. The selected model assesses the supplied material. I review the digest before using it in my work.

The Interfaces and ADEs guide compares chat apps, editors, terminals, agent development environments and voice. It points to external references such as ADE Comparison and ADEMark when you build a shortlist. Choose the controls you need to brief agents, review parallel tasks and accept their work.

Explore building skills and workflows to define the methods those agents follow.

The graphic is adapted from my AI Tools & Skills page. The explanation also draws on Matt Pocock's AI Coding Dictionary, including its entries on harnesses and statelessness.

Draft a message

Describe the work you need to complete.

Sending delivers your message to [email protected]. The sent text stays below so you can keep a copy.