ProductsRabbit HoleCase StudiesProving GroundBuild YoursResearchAbout
The Rabbit Hole · Part V

Harnesses

The model is the brain. The harness is the body, the hands, and the bad habits.

October 2026·Michael Gibbs, Onyx AI Labs·Guide ~40 min · with every panel open ~65 min · 3 demos

Read the prose straight through for the argument. Open “Go deeper” under any section for the boards, diagrams and sources behind it, or switch them all on from the chapter bar.

In this part

Five rabbit holes. Same body, different animals.

Parts I and IV each defined “harness” in passing, with a different roster of products every time, and Part XII will do it again. This chapter settles it. The first section is the definitions: what a harness is (everything that is not the model), its six parts and one loop, and why two harnesses on the same model behave differently. The second section is the plumbing, and it is the long one, because the plumbing is where the money and the risk are: tool calls, MCP, rules files and skills, memory, and permissions, the parts that decide what it can touch.

The third section is the only place where product names are the point: coding harnesses, always-on operators, and the harness hiding inside your SaaS. It has one table, one dated board, and the five-minute walkthrough in section 03, which you can run on your own machine. The fourth is about picking one: a decision flow, the over-harnessed and the under-harnessed, and three stories. The last is for Monday: install one, run it on a throwaway repo, read the trace, write a rules file, plug in one MCP server.

The rule that runs through all of it is a line from Part I that has aged well: the differentiator is not IQ. It is memory, permissions, and whether the thing is still working on Monday. Each section ends with four questions worth sitting with.

01
What a harness is
Everything that is not the model. Six parts, one loop, and why two harnesses on the same model behave differently.
02
The plumbing
Tool calls, MCP, rules files and skills, memory, and permissions. The parts that decide what it can touch.
03
The species
Coding harnesses, always-on operators, and the harness hiding inside your SaaS. One table, one five-minute walkthrough.
04
Picking one
A decision flow, the over-harnessed and under-harnessed, and three stories.
05
Use it Monday
Install one, run it on a throwaway repo, read the trace, write a rules file, plug in one MCP server.
01 / 05

What a harness is

The model predicts text. Everything that turns that into work done is the harness.

The brain and the body

This section gives the canonical definition the series will use from now on, the six-part anatomy, the loop seen from the harness’s side, and a ladder from “chat box” to “operator” so you can place the tools you already use.

01 · What a harness is

A harness is everything that is not the model.

The word “harness” started as engineering slang and is now in vendor documentation, so it is worth a precise definition. A harness is everything in the system that is not the model: the code, configuration and policy that turn a text predictor into something that does work. Addy Osmani’s April 2026 essay puts it as “every piece of code, configuration, and execution logic that isn’t the model itself”, and Microsoft now uses the word for the execution engines inside Copilot Studio.

Six parts cover the complete system: the model, and the five parts of the harness around it. The model predicts tokens and does nothing else. It is the only part that is AI, and it is the part you rent.

Context is whatever is placed in the window on each call: standing instructions, the rules file for this project, the files it has read, the conversation, the results of tools. The loop is decide, act, observe, check, run again until done or stopped. The harness runs that loop. The model only fills in the deciding step.

Tools are code the harness runs on the model’s request: a shell, a file editor, a browser, a search engine, your ticketing system. Memory is whatever survives the end of a session, which may be nothing. Policy is the leash: what needs a human’s yes, what runs inside a sandbox, when to stop.

Part IV drew the same anatomy for agents with slightly different names. Five of Part IV’s six parts fold into this picture (its goal and its knowledge are both context here), and the loop is the one part Part IV left implicit. This is the same picture with the body named.

Keep the three roles apart as you read: the model, the code that acts, and the human or the limit that stops it.

Part IV called these “guardrails” and “tools”. Same parts. From now on, the whole body is “the harness”.

Go deeper6 panels · 3 sources

Model

Predicts the next token (Part II). The only part that is “AI”. Rented by the call, or run locally (Part XII). It never touches anything.

Context

What goes into the window on every call: the instructions, the rules file, the files it read, the conversation so far, the tool results.

Loop

Decide → act → observe → check, repeated until done or stopped. The harness runs it. The model only fills in “decide”.

Tools

Shell, file editor, browser, search, your CRM, your database. Code that the harness runs when the model asks. The hands.

Memory

What survives the session: a rules file, notes it wrote itself, a learned procedure, a profile of you. Or nothing.

Policy

Permissions, approval prompts, sandboxes, step and spend limits, stop conditions. What it is allowed to break. The leash.

Model judgesCode / tool actsHuman approves
Sources (3)
  1. https://addyosmani.com/blog/agent-harness-engineering/
  2. https://learn.microsoft.com/en-us/microsoft-copilot-studio/fundamentals-what-is-copilot-studio
  3. https://code.claude.com/docs/en/overview
01 · What a harness is

Same model. Two harnesses. Only one of them works.

The cleanest public evidence that the harness matters as much as the model comes from Anthropic’s own engineering team. In March 2026 they published “Harness design for long-running application development”. The same model was given the same job, to build a complete web application, two ways. Run bare, one prompt in a single context, it took about twenty minutes, cost about nine dollars, and produced an application that did not work. As broken apps go, that is a cheap one.

Run inside a harness with three roles, it took about six hours, cost about two hundred dollars, and produced a working, far more complete product. The three roles were a planner that expanded the short prompt into a product specification, a generator that built it, and an evaluator that drove the running app in a browser and graded it against written criteria.

The second half of the story matters just as much. When a newer model arrived, the team removed part of the harness: the sprint structure went, and the evaluator was kept only for work beyond what the model could do reliably alone. Their line: every component in a harness encodes an assumption about what the model cannot do on its own.

That is why two products on the same model behave so differently, and why harness design keeps changing shape as models improve. Part XI (choosing a model) and Part XII (running one locally) treat “which model?” as half the question. This is the other half.

“Every component in a harness encodes an assumption about what the model can’t do on its own.” Which model? is half the question.

Go deeper3 panels · 1 source
$9

and 20 minutes. One prompt, one model, no harness: “build me this web app.” Result: a broken app. Cheap, fast, useless.

Anthropic Engineering, Mar 2026
$200

and 6 hours. Same job through a three-part harness: a planner writes the spec, a generator builds, an evaluator tests the running app in a browser and grades it. Result: a working, far more complete app.

Anthropic Engineering, Mar 2026
1 part

removed when the next model arrived. The “sprint” structure was dropped; the evaluator stayed only for work beyond the model’s solo reliability.

Anthropic Engineering, Mar 2026
Sources (1)
  1. https://www.anthropic.com/engineering/harness-design-long-running-apps
01 · What a harness is

The harness runs the loop. The model fills in one box.

Part IV drew the agent loop from the model’s point of view: decide, act, observe, check. It is the same loop, but drawn from the harness’s side it looks different and it is more useful. First the harness assembles the context: it reads the rules file, pulls in whatever memory it keeps, adds the task and everything that has happened so far, and sends the lot to the model.

The model reads the window and writes one message, which is either a request to use a tool (“run the test suite”, “replace these lines in this file”, “fetch this page”) or a statement that it is finished. That request now hits the gate: is this tool allowed at all, does this action need a human’s yes, will it run inside a sandbox, is the step or spend budget exhausted?

Only if the gate says yes does the harness run the tool, with the tool’s permissions, not the model’s, because the model has none. The result is turned into text and appended to the window. The harness then checks: done, stuck, over a limit, or go round again.

Four of the five boxes are harness. The model writes one message per turn and never executes anything. That is why the fix for most “the AI did something stupid” stories is in the gate and the tool permissions, and why the permissions section under “The plumbing” is the most important part of this chapter. Claude Code’s documentation describes exactly this cycle and calls the harness-side pieces permissions, hooks and sandboxing.

A harness without a gate is a model with your credentials.

Run the loop, one step at a time

Try it

Part IV’s demo again. This time, watch the assemble-context and gate steps. Those are the harness’s work.

Illustrative run from Part IV: invented customer and tools; the structure (model decides, tool runs, gate enforces) is real.
What it is
A scripted trace of three invented cases, with a leash you can set and a token meter at an invented price.
What it shows
The shape of the loop (model decides, tool runs, gate enforces), what happens when a lookup fails and nothing tells the loop to stop, and which rule catches which failure.
What it does not show
A live model or real latency. The model’s words are written for the demo; real runs are messier, which is the point of the leash.
Go deeper3 panels · step diagram · 2 sources
CODE / TOOL

Assemble context

Harness builds the window: rules file, memory, the task, what happened so far. Then calls the model.

MODEL

Decide

Model reads the window and writes a request: “run the tests”, “edit this file”, or “done”.

HUMAN

Gate

Policy checks the request. Allowed? Ask the human? Sandboxed? Over budget? Stop here if not.

CODE / TOOL

Act

Harness runs the tool with the tool’s permissions. The model never runs anything.

CODE / TOOL

Observe + check

Result goes back into the window as text. Done, stuck, or over a limit? If not, go round again.

What Part IV showed

The same loop, drawn from the model’s side: decide → act → observe → check. True, and it flatters the model.

What the harness actually does

Four of the five boxes: what the model sees, whether a request runs, how it runs, when to stop. The model writes one message per turn.

Why this matters on Monday

Most “the AI did something stupid” stories are a harness that let it. The gate is where you fix them, not the prompt.

Model judgesCode / tool actsHuman / policy approves
Sources (2)
  1. https://code.claude.com/docs/en/overview
  2. https://code.claude.com/docs/en/permissions
01 · What a harness is

The ladder, and where the tools you already use sit on it.

This ladder is a teaching device. It exists so you can place the thing you used this morning. Rung one is a chat box: a model, a window and a send button. You run the loop by reading the answer and typing again. On rung one, you are the harness. Rung two is the same box with a few tools bolted on: web search, a code runner, file upload, a “memory” feature that pastes notes back into the window.

It is a harness, a thin one, and you do not configure it. Rung three is a coding session: Claude Code, Codex, Gemini CLI, OpenCode and their relatives. The harness has a shell, an editor, your test suite, and a permission prompt that asks before it does anything that changes the world. It ends when you close the terminal.

Rung four is an operator: Hermes or OpenClaw. It lives on a machine you own, answers you on Telegram or Slack, runs jobs on a schedule, and keeps a profile of you across months. Rung five is a built product: your own harness assembled on an SDK, or an agent inside software you already pay for. In both cases the loop belongs to someone’s code and your tools are plugged into it.

The two arrows at the bottom are the trade. To the left there is nothing to configure and nothing to break. To the right you get persistence and channels, and the permissions to get wrong. Most people are on rungs two and three, and should be.

Go deeperladder · 3 sources
1

Chat box

A model, a window, a send button. No tools, no memory.

Who runs the loop
You do
2

Chat + tools

Same box with search, a code runner, file upload, “memory” notes. A thin harness you don’t configure.

Who runs the loop
The app, lightly
3

Coding session

Claude Code, Codex, Gemini CLI, OpenCode. Shell, editor, tests, permission prompts. Ends when you close it.

Who runs the loop
The harness
4

Operator

Hermes, OpenClaw. Lives on a box, answers on Telegram or Slack, runs on a schedule, remembers you.

Who runs the loop
The harness, always
5

Built product

Your own harness on an SDK, or an agent inside your CRM. Someone else’s loop with your tools plugged in.

Who runs the loop
Your code / vendor
← nothing to configure, nothing to breakpersistence, channels, permissions to get wrong →
Sources (3)
  1. https://code.claude.com/docs/en/overview
  2. https://hermes-agent.nousresearch.com/docs/
  3. https://github.com/openclaw/openclaw
Questions to take back

Which rung are you actually on?

Four questions. The fourth is the $9-versus-$200 lesson turned into a question, and it usually shows how much of a team’s process is a workaround for last year’s model.

  1. Which AI tool did you use this week? Which rung is it on, and who ran the loop?
  2. Where has the same model given you a brilliant result in one tool and a useless one in another?
  3. Which of the six parts does your current tool let you see: the context, the tools, the memory, the policy?
  4. If the model doubled in capability tomorrow, which part of your harness would you remove?
02 / 05

The plumbing

Tool calls, MCP, two kinds of text file, memory, and permissions. Where the risk lives and where the value does.

Hands and leash

This is the long one.

02 · The plumbing

A tool call, again: the model asks. Your code does.

Part IV showed one tool call in a support agent. Here is the same mechanism in a coding harness, because it is the mechanism everything else in this section hangs off. A tool, in this world, is a function with a description: a name, a sentence about what it does, and the arguments it takes. The harness puts the list of available tools into the context window.

When the model wants one, it writes a small piece of structured text, usually JSON, saying which tool and which arguments. That is all it does. The harness reads that text, checks it against policy, and if allowed, runs the real function with the real permissions: the test runner, the file editor, the database client. The output is converted to text and appended to the window, and the model reads it and writes its next request.

Three things follow from that. The model never touches your systems; it only ever produces text. Whether that text becomes an action is the harness’s decision, which is why the gate in the loop above is where control lives. And the tool’s permissions are the actual security boundary: a tool that can delete gives the agent the ability to delete, whatever the prompt says. Part IV put this as “prompts are suggestions; permissions are walls”, and it is the single most useful sentence in the series.

The trace is invented. Real ones in Claude Code, Codex and the others look like it, and you should read one before you trust anything.

Every harness in this chapter is a different answer to: which tools, who may call them, and what happens before they run.

Open the curtain: what you see, what the harness does, what the model actually reads

Try it

Step through one refund request one pass at a time. Left: the chat as a product shows it. Middle: the deterministic code around the model. Right: the raw transcript the harness builds and sends on every pass. Switch the permission gate off to see the same model request move money.

The protocol shape is the real one every tool-calling API uses: system, tool definitions, user, an assistant turn that is only text, a tool result pasted back, another pass. The order, the dates and the model’s words are invented; token counts are estimated from the exact text shown.
What it is
A scripted, pass-by-pass trace in the real tool-calling protocol shape. No model runs.
What it shows
That the model has no hands: it reads one text document and writes text; the harness code validates, calls the API, pastes the result back, and decides what the model’s request is allowed to do.
What it does not show
Latency, retries, or a failed call. The token counts are estimates from the text shown, not a vendor’s tokeniser.
Go deepercode · 2 sources
// 1 · The model writes a request (JSON)
{ "tool": "run_tests", "args": { "path": "tests/" } }

// 2 · The harness checks policy, then runs it
$ pytest tests/      # with the harness’s permissions

// 3 · Result goes back into the window as text
"4 passed, 1 failed: test_refund_rounding"

// 4 · Model reads it, writes the next request
{ "tool": "edit_file", "args": { "path": "billing.py", ... } }

Illustrative trace. Tool names and output are invented.

Sources (2)
  1. https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture.md
  2. https://code.claude.com/docs/en/permissions
02 · The plumbing

MCP is the plug. Expose a system once; any harness can use it.

Before MCP, every harness had its own way of describing tools and every system you wanted an agent to use needed a custom integration per harness. The Model Context Protocol fixes the N-times-M problem the way USB-C fixed cables, which is the protocol’s own analogy. Anyone with a drawer of old chargers will see the appeal. An MCP server is a small program that sits in front of one system (your CRM, your database, your file system, Sentry) and publishes three things: tools (actions the model can request), resources (data it can read) and prompts (reusable templates).

An MCP host, which is the harness, connects to one or more servers, discovers what they offer with a list request, and calls them with the same JSON tool-call mechanism described above. Local servers run on your machine and talk over standard input and output; remote servers talk over HTTPS and use OAuth for login.

Anthropic released MCP in November 2024 and on 9 December 2025 donated it to a new Agentic AI Foundation under the Linux Foundation, co-founded with Block and OpenAI and backed by Google, Microsoft, AWS, Cloudflare and Bloomberg. At that point Anthropic reported more than ten thousand active public servers and ninety-seven million monthly SDK downloads. Those numbers are dated and will be larger now; the point is that it is the de facto standard, supported by Claude, ChatGPT, VS Code, Cursor, Copilot Studio and Agentforce.

The practical consequence is that you write the server for your system once, and every harness, from a developer’s terminal to the agent inside your CRM, can use it. The security consequence is in the permissions section below: a server is a tool, and tools carry permissions.

Go deeper3 panels · 3 sources

What it is

Model Context Protocol: “a USB-C port for AI applications.” A server exposes tools (actions), resources (data) and prompts (templates). Local servers run on your machine; remote ones over HTTPS.

Who owns it

Anthropic released it in Nov 2024 and donated it on 9 Dec 2025 to the Agentic AI Foundation (Linux Foundation), co-founded with Block and OpenAI. AGENTS.md joined as a founding project.

Scale, at donation

10,000+ active public servers, 97M+ monthly SDK downloads (Anthropic, Dec 2025). Supported by Claude, ChatGPT, VS Code, Cursor, Copilot Studio, Agentforce and most harnesses here.

MCP SERVERS · ONE PER SYSTEM, WRITTEN ONCE

Sources (3)
  1. https://modelcontextprotocol.io/docs/getting-started/intro
  2. https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture.md
  3. https://www.anthropic.com/news/donating-the-model-context-protocol-and-establishing-of-the-agentic-ai-foundation
02 · The plumbing

Two kinds of text file do most of the configuring.

Most of what people call “configuring” a harness is writing two kinds of plain text file. The first is a rules file: CLAUDE.md in Claude Code, GEMINI.md in Gemini CLI, and the cross-vendor AGENTS.md. AGENTS.md is an open format now stewarded by the Agentic AI Foundation, and used, by its own count, in more than sixty thousand open-source projects and by Codex, Cursor, Copilot, Jules and others. Claude Code reads AGENTS.md when there is no CLAUDE.md.

It is a README for the agent: how to build and test, the conventions, what must never be touched, who to ask. The harness pastes it into the window at the start of every session, which is why it works and why it should be short; Claude’s documentation recommends under two hundred lines because adherence falls as the file grows. People are the same.

The second kind is a skill. The Agent Skills format, released by Anthropic as an open standard, is a folder containing a SKILL.md with a name, a description and step-by-step instructions, optionally with scripts and templates. Skills are procedures rather than preferences: how we do a release, how we format the monthly report, how we review a contract. They load by progressive disclosure, names and descriptions at startup and full instructions when a task matches, so a harness can keep many on hand at small cost.

Hermes goes a step further and writes its own skills after a job it did well. One catch matters more than the rest. Both files are context. The harness pastes them in, and the model is asked, not made, to follow them. Claude’s own docs say to use a hook, not a rules file, to block an action.

Both are context, not enforcement. The harness pastes them into the window; the model may still ignore them. Walls come two sections on.

Go deeper2 panels · side by side · 4 sources
Rules file · read every session

CLAUDE.md · AGENTS.md

  • A plain Markdown file in the repo (or your home folder); Gemini CLI calls it GEMINI.md. The harness pastes it into the window at the start of every session.
  • What goes in: how to build and test, conventions, what never to touch, who to ask. A README for the agent.
  • AGENTS.md is the cross-vendor version: used by Codex, Cursor, Copilot, Jules and others, in 60k+ open-source projects, stewarded by the AAIF. Claude Code reads it too.
  • Keep it short. Claude’s docs: under 200 lines, or adherence drops.
Skill · loaded when the task matches

SKILL.md (Agent Skills)

  • A folder with a SKILL.md: a name, a description, and step-by-step instructions, plus optional scripts and templates. A procedure, not a preference.
  • Progressive disclosure: at startup the harness loads only names and descriptions; the full instructions load when a task matches. Many skills, small context cost.
  • Open format from Anthropic (agentskills.io), adopted by Claude Code, Codex, Hermes and others. Hermes writes its own skills after a job it did well.
  • Example skills: “release checklist”, “format our monthly report”, “how we review a contract”.
Sources (4)
  1. https://code.claude.com/docs/en/memory
  2. https://agents.md/
  3. https://agentskills.io/
  4. https://hermes-agent.nousresearch.com/docs/
02 · The plumbing

Memory: what should it still remember on Monday?

Part I asked “what should an agent still remember on Monday?” and left it as a discussion question. Here is the answer as a table, because “memory” is one word for four different things. Session memory is the context window for this job: everything so far, gone when you close the session. Every harness has it and it is the only memory a chat box has. Project memory is the rules file from the section above: written by you, the same every session, stale if nobody updates it.

Persistent memory is notes the harness keeps for itself across sessions. Claude Code’s auto memory, on by default in local sessions, writes a MEMORY.md index and topic files per repository and loads the first two hundred lines of it into every session. Hermes keeps curated memory plus a searchable record of past sessions and a profile of the user. Consumer chat “memory” features are the same idea. Learned skills are the fourth kind: procedures the harness wrote itself after a job it did well, in the SKILL.md format, which Hermes does by design.

The bottom row is where memory stops being a convenience. Session memory forgets the brief at step fifty. Project memory goes stale. Persistent memory can be poisoned: one wrong fact, written once, repeated in every future session, which OWASP lists as “memory and context poisoning”. A learned skill can be a wrong procedure executed confidently every time.

Ask of every harness: what does it remember on Monday, who wrote that, and can I read and delete it?

Go deepertable · 3 sources
SessionProjectPersistentLearned skills
What it isThe window for this job. Gone when you close it.A rules file in the repo. Same every session.Notes the harness keeps across sessions: a profile of you, past chats.Procedures it wrote from work it did well.
Who writes itThe loop, automaticallyYouThe harness, from what you sayThe harness, after a job
Where it livesMemory, then nowhereCLAUDE.md / AGENTS.mdA folder on disk, a database, a serviceSKILL.md files
Example“The tests failed on line 40”“Run make test before you commit”“Prefers short answers; works in GMT”“How we deploy to staging”
Typical homeEvery harnessCoding harnessesClaude Code auto memory · Hermes · OpenClaw · chat “memory”Hermes · any skills-compatible harness
What goes wrongForgets the brief at step 50Stale rules nobody updatesPoisoned: a bad fact written once, repeated foreverA wrong procedure, run confidently every time
Sources (3)
  1. https://code.claude.com/docs/en/memory
  2. https://github.com/NousResearch/hermes-agent
  3. https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/
02 · The plumbing

Prompts are suggestions. Permissions are walls.

If you remember one section, make it this one. A harness has three kinds of wall, and a prompt is none of them. Approval prompts are the harness stopping to ask before an action. In Claude Code’s manual mode, reading files inside the working folder needs no approval; edits, shell commands and web fetches ask first, and the answer can be remembered per repository. Codex describes its default the same way: the agent works inside the sandbox and asks when it needs to go beyond that boundary.

Both have modes that dial the asking up or down: a plan or read-only mode that never edits, an accept-edits mode, an automatic mode in which a classifier reviews actions instead of you, and a bypass mode both vendors say to use only in isolated environments such as a container. Allow and deny rules are lists checked by code before anything runs: this shell command always asks, this domain is fine, this MCP tool is never allowed.

They can be committed to the repository so the team shares them, and managed by an organisation so an individual cannot loosen them. Hooks let your own script run before a tool and block it.

Sandboxes are the operating system enforcing the boundary: the shell the agent runs in cannot see files outside the project or reach hosts not on a list, using macOS Seatbelt, bubblewrap on Linux, or a container. That wall holds even when the model has been talked into something, which Claude’s documentation says in so many words.

Replit, July 2025: told not to touch production, deleted the production database anyway. The fix was automatic separation of development and production, a planning-only mode and one-click restore, not a sterner prompt.

Set the dial per action, and read the policy it produces

Try it

Part IV’s dial again. This time, read the policy it produces as a harness specification: each line needs a named enforcement.

A real policy builder: what you would write into the harness.
What it is
A policy builder. Its output is a specification you would write into a harness.
What it shows
Autonomy set per action rather than per agent.
What it does not show
Enforcement. A policy is a wall only where a named system (permissions, hooks, approval gates) actually enforces it.
Go deeper3 panels · 3 sources

Approval prompts

  • The harness stops and asks before an action: “Run pytest?” “Edit billing.py?” “Fetch this URL?”
  • Claude Code’s manual mode: reads are free inside the working folder; edits, shell commands and web fetches ask. Codex: “the agent works inside the sandbox by default and asks when it needs to go beyond that boundary.”
  • Modes dial it: plan / read-only, accept edits, auto (a classifier reviews), bypass (“only in isolated environments”).

Allow / deny rules

  • A list, checked by code before anything runs. “Bash(git clean *)” always asks. “WebFetch(domain:github.com)” is fine. Never this MCP tool.
  • Checked into the repo so the whole team gets the same walls. Managed settings an individual cannot override.
  • Hooks: your own script runs before a tool and can block it, whatever the model wanted.

Sandbox

  • Operating-system enforcement: the shell the agent runs in cannot see files outside the project or reach hosts not on a list. macOS Seatbelt, Linux bubblewrap, containers.
  • Holds even when the model is tricked. Claude’s docs: “sandbox restrictions still apply even if a prompt injection bypasses Claude’s decision-making.”
  • Operators do this with Docker, a VPS, or a separate account. The question to ask a vendor: where does the shell run, as whom?
Sources (3)
  1. https://code.claude.com/docs/en/permissions
  2. https://learn.chatgpt.com/docs/sandboxing
  3. https://www.eweek.com/news/replit-ai-coding-assistant-failure/
02 · The plumbing

What goes wrong in the plumbing, and the wall that stops each one.

This section ends the way Part IV ended every example: what goes wrong, and the wall that stops it. The left column is drawn from the OWASP Top 10 for Agentic Applications, which Part IV listed in full; two of its rows, supply chain and rogue operator, are new here.

Goal hijack is the lethal trifecta from Part IV, and the rule is the same: every harness in this chapter reads untrusted content, so remove one of the other two legs. Tool misuse is a legitimate tool used for the wrong thing; the wall is least privilege per tool and deny rules for the destructive commands.

Identity abuse is the agent running as you, with everything you can do; give it its own account and keys, and start in the read-only mode both Codex and Claude Code ship.

Supply chain is the one people underestimate: an MCP server, plugin or skill is code that runs on your machine when installed, and the MCP security guidance says hosts must show the exact command and get consent before running it. OpenClaw’s CVE-2026-32920 is the worked example: until version 2026.3.12 it auto-discovered and loaded workspace plugins without checking trust, so a crafted project could execute arbitrary code. Memory poisoning is the bottom row of the memory table above.

And a rogue agent is most often an operator on a public channel reachable by strangers; Hermes and OpenClaw both pair unknown senders by hand, and the gateway should never face the open internet.

Go deeperwhat goes wrong · 6 sources
WHAT GOES WRONG → THE GUARDRAIL
Goal hijack: a web page, email or log says “ignore your instructions and…” and the agent does
→
Treat every tool result as untrusted input. Break the lethal trifecta: private data + untrusted content + a way out. Remove one leg.
Tool misuse: a legitimate tool, used for the wrong thing. “Clean up the repo” becomes rm -rf
→
Least privilege per tool. Deny rules for destructive commands. Read-only by default; write actions on a short list.
Identity and privilege abuse: the agent runs as you, with all of your access
→
Its own account, its own keys, scoped to this job. Never your admin token. Codex and Claude Code both ship a read-only mode; start there.
Supply chain: a malicious MCP server, plugin or skill runs code on install
→
Show the exact install command; install only from sources you vet; sandbox the server. OpenClaw CVE-2026-32920: auto-loaded plugins ran code until 2026.3.12.
Memory poisoning: one planted fact in persistent memory, repeated in every session
→
Memory you can read, diff and delete. Separate memory per project. Review what it “learned” before it ships as a skill.
Rogue agent: an operator on a public channel, reachable by strangers
→
Pair unknown senders by hand (Hermes and OpenClaw both do). Gateway on localhost or behind auth, never on the open internet.

FROM THE OWASP TOP 10 FOR AGENTIC APPLICATIONS (DEC 2025) AND THE MCP SECURITY GUIDANCE

Sources (6)
  1. https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/
  2. https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/
  3. https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices.md
  4. https://vulners.com/cvelist/CVELIST:CVE-2026-32920
  5. https://github.com/openclaw/openclaw
  6. https://github.com/NousResearch/hermes-agent
Questions to take back

Which of your walls are actually prompts?

Four questions again, and the fourth is the section in one line, because if the only thing stopping the agent is a sentence in a Markdown file, the answer is “nothing”.

  1. Which systems would you expose through one MCP server first, and would that server be read-only?
  2. Where does an agent you use run as a person rather than as its own account?
  3. What has an AI tool “remembered” about you or your company that you have never read?
  4. If a rules file says “never touch production”, what in your setup makes that true?
03 / 05

The species

Coding sessions that end, operators that don’t, and the harness hiding inside software you already pay for.

Three habitats

This section reconciles Part I’s roster (and the one Part XII will use) into two species and a third you do not see, with one comparison table, one dated board of products, and the five-minute walkthrough in section 03.

03 · The species

There are two species of harness: same anatomy, different habitat.

Part I named eight products and sorted them three different ways, and Part XII will add its own. Two species cover all of them. A coding harness is a session that ends. Claude Code, Codex, Gemini CLI, OpenCode, oh-my-pi, Cursor and the agents inside editors all live in a repository, a terminal or an editor, with your test suite as their sense of touch. The job is to ship software this afternoon.

Memory is the repository, a rules file and some automatic notes. Most of the “person” leaves when the tab closes. Part I called that a feature, and it is one until it is not. Their policy layer is the most mature in the industry: permission prompts, read-only and plan modes, operating-system sandboxes, rules a team can share and an organisation can lock. Complexity is low. You install it and work.

An operator is a thing that lives with you. Hermes Agent and OpenClaw run on a machine you own or rent, answer on Telegram, Slack, WhatsApp, Signal or email through a single gateway, run scheduled jobs overnight, and keep a profile of you across months. Memory is the product, not a side effect. The policy layer is yours to build: who may message it, where its shell runs, which keys it holds.

There are more moving parts, and more that can go wrong. OpenClaw has had well over a hundred CVEs in 2026, dozens of them high or critical; the two illustrative ones are a one-click gateway takeover via a crafted link and an auto-loaded plugin executing code. The agents inside SaaS products are operators too, with the vendor holding the keys; they get their own section below.

Pick a job, then pick a body for the brain. Nobody needs an operator to make a pull request.

Go deeper2 panels · side by side · 6 sources
Species 1 · coding harness

A session that ends.

  • Claude Code, Codex, Gemini CLI, OpenCode, oh-my-pi, Cursor and the IDE agents.
  • Habitat: a repository, a terminal or an editor, your test suite. Job: ship software today.
  • Memory: the repo, a rules file, some auto-notes. The “person” mostly leaves when the tab closes. Part I: “that is a feature until it is not.”
  • Policy is mature: permission prompts, read-only modes, sandboxes, team-wide rules. Best-in-class at its loop. Low complexity.
Species 2 · always-on operator

A thing that lives with you.

  • Hermes Agent, OpenClaw, and the “agent inside your SaaS” kind (two sections on).
  • Habitat: a box you own or a vendor’s cloud; answers on Telegram, Slack, WhatsApp, email; runs cron jobs overnight.
  • Memory is the product: a profile of you, searchable history, skills it wrote itself. Part I: “Hermes is a lifestyle.”
  • Policy is yours to build: pairing, sandboxes, which channels, which keys. More moving parts; OpenClaw has had a rough CVE year. High complexity.
Sources (6)
  1. https://code.claude.com/docs/en/overview
  2. https://github.com/openai/codex
  3. https://github.com/NousResearch/hermes-agent
  4. https://github.com/openclaw/openclaw
  5. https://thehackernews.com/search/label/WebSocket%20Security
  6. https://vulners.com/cvelist/CVELIST:CVE-2026-32920
03 · The species

Same word, different animal: the reconciled table.

This table reconciles the rosters from Parts I and XII, which used different columns and different products. The rows are the ones that actually decide a purchase. The native job differs first: a coding harness writes and ships code this afternoon, an operator runs and learns a workflow every day, and a SaaS agent does one vendor’s job inside one vendor’s product. So does where it lives: a terminal, an editor or a vendor cloud session for the first; your own box, reached through chat, for the second; the vendor’s cloud for the third.

Memory follows the same pattern: mostly the thread plus a rules file and auto-notes; a persistent profile, searchable history and learned skills; the vendor’s records, visible to the extent they allow. Model choice is where the coding species splits. Claude Code, Codex and Gemini CLI are built around their vendor’s models (Claude Code and the Codex CLI can be pointed at third-party endpoints, but that is not what they are for). OpenCode advertises seventy-five-plus providers including Ollama, LM Studio and llama.cpp, and oh-my-pi sixty-plus. Operators bring many models, including local ones.

SaaS agents give you the vendor’s pick, sometimes from a menu.

What you configure is the real measure of complexity: a rules file and a few permissions, versus a small company’s worth of channels, keys, sandboxes and schedules, versus topics and actions in a GUI. The failure modes are from Part I, which got them right: session amnesia; noise, sprawl and CVEs; and for SaaS, an opaque loop that needs Part IV’s sniff test.

Do not crown a winner. Ask what the job is. Coding this afternoon → species 1. Something that should be awake on Sunday night → species 2.

Go deepertable · 6 sources
Coding harnessAlways-on operatorAgent inside your SaaS
Native jobWrite and ship code, this afternoonRun and learn a workflow, every dayOne vendor’s job: support, CRM, tickets
Lives whereYour terminal, editor, or the vendor’s cloud sessionYour box or VPS; reached through chat channelsThe vendor’s cloud, inside their product
MemoryThe repo, a rules file, auto-notes. Mostly the thread.Persistent profile, searchable history, learned skillsThe vendor’s records; whatever they let you see
Model choiceVendor’s own (Claude Code, Codex, Gemini) or many incl. local (OpenCode, omp)Bring many, incl. localVendor’s pick, sometimes a menu
You configureA rules file, permissions, a few MCP serversA small company: channels, keys, sandboxes, cron, memoryTopics, actions, knowledge sources, in a GUI
Failure modeSession amnesia; a brilliant session mistaken for an employeeNoise, sprawl, CVEs; you must teach it; who patches it?Opaque loop; vendor lock-in; the sniff test from Part IV
Pick whenYou need code nowYou need persistence and channels, and will pay the opsThe job already lives in that product
Sources (6)
  1. https://opencode.ai/docs/providers/
  2. https://github.com/can1357/oh-my-pi
  3. https://hermes-agent.nousresearch.com/docs/
  4. https://github.com/openclaw/openclaw
  5. https://learn.microsoft.com/en-us/microsoft-copilot-studio/fundamentals-what-is-copilot-studio
  6. https://www.salesforce.com/agentforce/
03 · The species

The harness you don’t see has the same six parts, under the vendor’s names.

The third place you will meet a harness is inside software you already pay for, and here the six parts are present but renamed. Microsoft Copilot Studio is the clearest case, because Microsoft has adopted the word itself. Its documentation describes a “standard harness”, in which designed conversation topics drive the flow. It describes a “Copilot harness”, in which the agent reasons from instructions and knowledge, chooses tools and works out the steps itself. And it describes a “Customer Conversation harness”, in which a primary agent coordinates sub-agents and can escalate to a person.

The choice of harness affects reasoning, features and billing. Salesforce Agentforce has the same anatomy under different names: the loop is the Atlas Reasoning Engine, which breaks a request into steps and checks each; tools are “actions” built from Flows, Apex and MuleSoft connectors; policy is “guardrails” and escalation; and it accepts MCP servers from partners.

n8n and the workflow builders put an “AI Agent” node into an otherwise ordinary automation: connect a chat model and some tools, and the agent decides which tools to call, inside a flow you drew.

All three are legitimate and all three are harnesses you did not build and cannot fully see. So ask before signing. Which model, and can you change it? What is in the window, and can you read it? Who picks the next step, your flow or the model? Which actions, running as whom, and do your MCP servers plug in? What does it keep, and can you delete it? Where are the approvals, limits and trace?

Part IV’s sniff test applies unchanged. If you can’t point to the gate and read the trace, you don’t know what you bought.

Go deeper3 panels · table · 3 sources

Microsoft Copilot Studio

Low-code “agents” published to Teams and the web. Microsoft’s own word for the engines is now harness: a “standard harness” with scripted topics, a “Copilot harness” where the agent picks tools and steps itself, a “Customer Conversation harness” with sub-agents and human escalation.

Salesforce Agentforce

Agents inside the CRM. The loop is the “Atlas Reasoning Engine”; tools are “actions” built from Flows, Apex and MuleSoft; policy is “guardrails” and escalation to a human. Supports MCP servers from partners.

n8n and the workflow builders

Drag-and-drop flows where one node is an “AI Agent”: connect a chat model and tools, and “the agent decides which tools to call”. The rest of the flow is normal automation. MCP servers attach as tools.

The six partsModelContextLoopToolsMemoryPolicy
What to ask the vendorWhich one? Can I change it?What is in the window? Can I read it?Who picks the next step: your flow or the model?Which actions, as whom? MCP?What does it keep? Can I delete it?Show me the approvals, limits and the trace.
Sources (3)
  1. https://learn.microsoft.com/en-us/microsoft-copilot-studio/fundamentals-what-is-copilot-studio
  2. https://www.salesforce.com/agentforce/
  3. https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/
03 · The species

The current board, checked October 2026.

This is one table of product names, dated, and nothing else in the chapter depends on it. Claude Code is Anthropic’s coding harness: proprietary, built around Claude, and available in the terminal, VS Code, JetBrains, a desktop app, the browser and Slack. It has the most developed permission system in the group, and an Agent SDK that exposes the same loop as a library. Codex is OpenAI’s; the CLI is Apache-2.0 on GitHub, it runs in a terminal, an IDE extension, the cloud and the ChatGPT app, and its sandbox modes, read-only, workspace-write and full access, are a good model for anyone’s policy. Gemini CLI is Google’s, Apache-2.0, with a free tier on a personal Google account. OpenCode is the open, model-agnostic coding harness Part XII will recommend: MIT, seventy-five-plus providers, local endpoints first-class.

oh-my-pi is a coding-first fork of Pi, MIT, with the language server and debugger wired in as tools; it is the one for people who want the machinery. Cursor is the editor-shaped version, proprietary, with a model menu per task and checkpoints before big changes.

Hermes Agent is Nous Research’s operator: MIT, any endpoint, twenty-plus channels, scheduled jobs, seven sandbox backends, learned skills, and a one-command migration from OpenClaw. OpenClaw is the largest operator community, now stewarded by an independent foundation, MIT, with a gateway and twenty-plus channels; it has had well over a hundred CVEs in 2026, dozens of them high or critical, and its own documentation tells you to read the security guide before exposing the gateway.

Grok Build, which Part I listed, is not on the board: I could not verify its current state from a primary source in October 2026, so it is left out rather than guessed at.

Go deepertable · 12 sources
ProductSpeciesMaker · licenceModel choiceRuns whereOne thing to know
Claude CodeCodingAnthropic · proprietaryClaudeTerminal, VS Code, JetBrains, desktop, web, SlackPermission modes, sandboxing, CLAUDE.md + auto memory, Agent SDK
CodexCodingOpenAI · CLI Apache-2.0OpenAI modelsCLI, IDE extension, cloud, ChatGPT appSandbox modes read-only / workspace-write / full; AGENTS.md
Gemini CLICodingGoogle · Apache-2.0GeminiTerminalFree tier with a Google account; GEMINI.md; MCP
OpenCodeCodingAnomaly · MIT75+ providers incl. localTerminal, desktop (beta)Build / plan agents; Ollama, LM Studio, llama.cpp endpoints
oh-my-pi (omp)CodingStencil Labs · MIT60+ providers incl. localTerminalFork of Pi; LSP and debugger wired in as tools
CursorCoding (IDE)Anysphere · proprietaryMenu, per taskThe editor, cloud agentsCheckpoints before big changes; rules; MCP
Hermes AgentOperatorNous Research · MITAny endpoint incl. localYour box; 20+ channelsWrites its own skills; cron; 7 sandbox backends; migrates from OpenClaw
OpenClawOperatorOpenClaw Foundation · MITSwappable, incl. localYour box; gateway + 20+ channelsLargest community; well over a hundred CVEs in 2026, dozens high or critical. Read the security guide first.
Sources (12)
  1. https://code.claude.com/docs/en/overview
  2. https://github.com/openai/codex
  3. https://learn.chatgpt.com/docs/sandboxing
  4. https://github.com/google-gemini/gemini-cli
  5. https://github.com/anomalyco/opencode
  6. https://opencode.ai/docs/providers/
  7. https://github.com/can1357/oh-my-pi
  8. https://cursor.com/docs/agent/overview
  9. https://github.com/NousResearch/hermes-agent
  10. https://github.com/openclaw/openclaw
  11. https://thehackernews.com/search/label/WebSocket%20Security
  12. https://vulners.com/cvelist/CVELIST:CVE-2026-32920
03 · The species

Try it yourself: five minutes inside a coding harness.

Five minutes at your own desk teaches the plumbing better than five sections of reading. Pick a repo you can delete.

1. Clone a toy project with a test suite. Open a coding harness in it in read-only or plan mode, and find the rules file it reads at start: in Claude Code that is CLAUDE.md or AGENTS.md, in Codex AGENTS.md, in Gemini CLI GEMINI.md. That is context being assembled.

2. Ask for a small feature with tests first, and add one instruction that the rules file also carries: “Add a discount field to invoices. Write the tests first. Don’t touch the database schema.” Watch it read files before it writes anything; that is the observe step.

3. Watch the permission prompts. It will ask to edit a file and to run the tests; say yes to both and notice what you are approving. If it asks to run something you didn’t expect, say no and read its stated reason. That is the gate, and you are it.

4. Break your own rule on purpose: ask it to change the schema. It may refuse, ask, or comply. Whichever it does, the rules file was only context. Then add the deny rule or hook that makes “no” true regardless, and try again.

5. Read the trace. Scroll back, count model turns and tool calls, and open one JSON request so you have seen that the model wrote text and the harness did the work. Close the session, reopen it, and ask what it remembers.

The repo, feature and wording are placeholders. Harnesses are not deterministic, so expect detours; the point is to see a prompt refused and a wall hold.

Sources (3)
  1. https://code.claude.com/docs/en/permissions
  2. https://learn.chatgpt.com/docs/sandboxing
  3. https://code.claude.com/docs/en/memory
Questions to take back

Which species does your job actually need?

Four questions. The first is Part I’s, kept because it is still the right one. The second is the ops cost made concrete, and the “demo” in the fourth is the five-minute walkthrough in section 03.

  1. Have you ever needed a persistent agent, or just a better coding session? Be honest.
  2. Who would patch an operator on a Saturday when a CVE lands? Is it you?
  3. Which product you already pay for has quietly grown an agent, and has anyone run the sniff test on it?
  4. If the demo’s rules file had said “never email a customer”, what would have made that true?
04 / 05

Picking one

A decision flow, the two ways to get it wrong, and three stories.

Job, then body
04 · Picking one

The decision flow for picking a harness. Stop at the first yes.

Five questions, answered in order, and most people stop at the first. Do you need code written now? Then a coding harness, and if you are content with that vendor’s model, Claude Code, Codex or Gemini CLI, which are the most polished and the least work.

Must it run on your own model, or locally, for the privacy or cost reasons Part XII will set out? Then the OpenCode class: OpenCode or oh-my-pi, pointed at the local endpoint you will build in Part XII, with the same coding workflow on your own hardware. Must it be awake when you are not, reachable on Telegram or Slack, running jobs overnight? Then an operator: Hermes if you are willing to teach it and want it to get cheaper over time, OpenClaw if the problem is coordination across many surfaces. In either case, budget the operations: patching, secrets, a sandbox, someone on call.

Are you building a product for other people? Then an SDK, where you own the loop. The Claude Agent SDK exposes Claude Code’s own tools, permissions, hooks and MCP support as a Python or TypeScript library. The OpenAI Agents SDK gives agents, handoffs, guardrails and sessions with a built-in loop. LangGraph is the MIT-licensed orchestration framework with durable execution and human-in-the-loop steps. All three are “build” from Part IV’s build-buy-switch-on section.

Does the job already live inside a product you pay for? Then its agent, after the sniff test, with the six vendor questions answered in writing. Part I’s advice still stands: start with the boring one, complexity is a cost centre, and keep your rules, tools and skills in the portable formats so that switching later is a Tuesday, not a quarter.

Most people stop at question one. That is not a failure of ambition. That is a very good tool.

Go deeper1 panel · numbered list · 6 sources
1

Do you need code written today?

Yes → a coding harness. Claude Code, Codex or Gemini CLI if you are fine with that vendor’s model. Done.

2

Must it run on your model, or locally?

Yes → the OpenCode class (OpenCode, oh-my-pi). Point it at a local model server (Part XII shows how). Same workflow, your GPU.

3

Must it be awake when you aren’t, on channels?

Yes → an operator. Hermes if you will teach it; OpenClaw if coordination across many surfaces is the problem. Budget the ops.

4

Are you building a product for other people?

Yes → an SDK: Claude Agent SDK (Claude Code’s loop as a library), OpenAI Agents SDK, LangGraph. You own the harness, and its maintenance.

5

Does the job already live inside a product you pay for?

Yes → its agent, after the sniff test and with the six questions from the earlier section answered in writing.

Default answer

Start with the boring one. If a coding session finishes the job, you do not have a harness problem.
Complexity is a cost centre. Persistent agents need babysitting, secrets, patching, and a theory of what “done” means.
Portability is cheap insurance. Rules in AGENTS.md, tools behind MCP, skills in SKILL.md: all three move between harnesses.

Sources (6)
  1. https://code.claude.com/docs/en/agent-sdk/overview
  2. https://openai.github.io/openai-agents-python/
  3. https://www.langchain.com/langgraph
  4. https://opencode.ai/docs/providers/
  5. https://hermes-agent.nousresearch.com/docs/
  6. https://github.com/openclaw/openclaw
04 · Picking one

Over-harnessed, under-harnessed. Both are expensive.

Part I observed that most organisations are over-harnessed or under-harnessed, and everything since has confirmed it. Over-harnessed is the thirteen-agent story from Part I: a person running a small company of operator agents across three channels with a skills marketplace, spending a weekend on patches, who then opens a plain coding session and discovers the work was “an agent with tools” all along. It is an anecdote, not a statistic, and it is in the quadrant as one.

The extra surface area is only worth it for persistence and channels. If you do not need those, you are paying in complexity for nothing. Under-harnessed is more common and quieter: a chat window in one tab, the real systems in another, and a human copying between them all day. That person is the integration layer. No tools, no memory, no trace, and a cost per hour that never appears on an invoice.

The two bottom corners of the quadrant share a cause. Mis-harnessed is a coding session, which is excellent at its job, promoted to “our AI employee” with none of the parts that job needs: no persistence, no channels, nobody on call, and credentials belonging to whichever developer set it up. That is the shape of the Replit incident: a tool built for a session, trusted with production.

Right-sized is dull on purpose: one coding harness per developer, a rules file in each repository, two or three MCP servers for the systems that matter, read-only by default, and an operator only where persistence has been shown to pay.

The differentiator is not IQ. It is memory, permissions, and whether the thing is still working on Monday.

Go deeper4 panels · quadrant · 2 sources
TOO MUCH BODY

Over-harnessed

Thirteen operator agents, a skills marketplace, three channels, and a Sunday spent patching. Then someone opens a plain coding session and finishes the job. Part I’s anecdote; I have met these people.

Right-sized

One coding harness per developer, one rules file in each repo, two or three MCP servers, read-only by default, an operator only where persistence has been proven to pay.

TOO LITTLE BODY

Under-harnessed

Chat in one tab, the real systems in another, a person copying between them all day. No tools, no memory, no trace. Cheap per month, expensive per hour.

Mis-harnessed

A brilliant coding session promoted to “our AI employee”: no persistence, no channels, no one on call, running as the developer who set it up. The Replit shape.

WRONG JOB
RIGHT JOB, WRONG SIZE
Sources (2)
  1. https://www.eweek.com/news/replit-ai-coding-assistant-failure/
  2. https://www.anthropic.com/engineering/harness-design-long-running-apps
04 · Picking one

Three stories worth knowing.

Three stories, one per idea in this chapter. Replit, July 2025, is the permissions story, told in full in Part IV.

OpenClaw, 2026, is the operator story. In February a high-severity flaw, CVE-2026-25253 with a CVSS score of 8.8, let a crafted link make the control interface connect to an attacker’s address and hand over the stored gateway token: one click, full control of a user’s local gateway. In March, CVE-2026-32920, scored 8.4, showed that plugins in a project’s workspace were loaded automatically without a trust check, so a crafted repository could run code. Both were fixed quickly; the lesson is that an always-on operator is a server you now administer.

Anthropic, March 2026, is the harness story from the top of this chapter: the same model, nine dollars and a broken app alone, two hundred dollars and a working one inside a planner, generator and evaluator, and a component removed when the next model made it unnecessary. Each story is a section in this chapter with a date on it.

Go deeper3 panels · 4 sources
Replit, July 2025 · Part IV

The prompt said no. The permissions said yes.

Told not to touch production; not prevented from it. The full story is in Part IV; the fix was separate credentials, a planning-only mode and one-click restore.

Instructions are context. Permissions are walls. Build the wall.
OpenClaw, 2026

The operator’s front door was a link.

CVE-2026-25253 (Feb, CVSS 8.8): the control UI accepted a gateway address from a link and sent it the stored token: one click, full gateway takeover. CVE-2026-32920 (Mar, 8.4): workspace plugins auto-loaded and ran arbitrary code. Both fixed.

An operator is a server. Patch it, pair it, and keep the gateway off the internet.
Anthropic, March 2026

Same model. $9 broken, $200 working.

One prompt, no harness: twenty minutes, nine dollars, a broken app. Planner, generator and evaluator around the same model: six hours, two hundred dollars, a working one. When the next model came, they removed a part of the harness.

The harness is a set of assumptions about the model. Revisit them every release.
Sources (4)
  1. https://www.eweek.com/news/replit-ai-coding-assistant-failure/
  2. https://thehackernews.com/search/label/WebSocket%20Security
  3. https://vulners.com/cvelist/CVELIST:CVE-2026-32920
  4. https://www.anthropic.com/engineering/harness-design-long-running-apps
Questions to take back

Where do you sit on the quadrant?

Four questions, and the third is the useful one, because it separates the harnesses people need from the ones they enjoyed installing.

  1. Which agent you know of was built for a session and is now treated as an employee?
  2. What is the most powerful thing an agent can already do with someone’s personal credentials?
  3. If you ripped out every harness tomorrow, which one would someone rebuild by Wednesday?
  4. Who owns the decision to add an operator: the person who wants it, or the person who will patch it?
05 / 05

Use it Monday

Five cheap things. None of them needs a budget, a vendor, or permission from anyone but yourself.

Start disposable
On Monday

What I would do on Monday.

01

Install one coding harness.

Claude Code, Codex or Gemini CLI, whichever matches a model you already pay for. Fifteen minutes. Don’t install three.

02

Run it read-only on a throwaway repo.

Plan or read-only mode, a repo you can delete. Ask it to explain the code, then to add a feature with tests. Say no to one prompt and read why it asked.

03

Read the trace. All of it.

Count model turns and tool calls. Find the JSON of one request. Close it, reopen it, ask what it remembers. Now you know what you have.

04

Write a rules file.

AGENTS.md, under 200 lines: how to build, how to test, what never to touch, who to ask. Commit it. Then add one deny rule that makes “never” true.

05

Plug in one MCP server.

A read-only one, for a system you know: files, a docs site, a database with a read-only login. Watch what it exposes. Then decide what you would never expose.

An operator can wait. Memory, permissions and a trace you have read cannot.

The five, in fullprose version

Install one coding harness, the one that matches a model you already pay for; the differences between the good ones are smaller than the difference between having one and not, and installing three teaches less than using one. Run it on a repository you can delete, in plan or read-only mode, and ask it first to explain the code and then to add a small feature with tests.

Say no to at least one permission prompt and read the reason it gave for wanting the action; that is the gate, and you have just been it. Read the whole trace: count the model’s turns and the tool calls, find the JSON of one request so you have seen with your own eyes that the model writes text and the harness acts. Close the session, open it again, and ask what it remembers; the answer is the memory table in miniature.

Write a rules file, AGENTS.md, under two hundred lines: how to build, how to test, what must never be touched, who to ask. Commit it. Then add one deny rule or hook that makes the “never” true whatever the model decides, because you now know the difference between context and a wall. Finally, plug in one MCP server, read-only, for a system you understand, and watch what it exposes; then write down what you would never expose that way.

An operator can wait until one of these has shown you a job that needs persistence. The trace cannot wait; nobody should be deploying an agent whose trace they have never read.

Sources (3)
  1. https://code.claude.com/docs/en/overview
  2. https://agents.md/
  3. https://modelcontextprotocol.io/docs/getting-started/intro
The model is the brain.
The harness is the body.

What it can see, what it can touch, what it remembers, and what it is not allowed to do. Swap the model and it gets smarter or dumber. Swap the harness and it gets safer or more dangerous.

Pick a job. Then pick a body for the brain.

Appendix · For the nerds

MCP on the wire. Two messages do most of the work.

Open the appendixfor the nerds · optional

For the curious, MCP is small. It is JSON-RPC 2.0 messages, the same request-and-response convention web services have used for years, carrying a handful of methods. A host asks a server what it offers with tools/list, resources/list or prompts/list, and the server answers with names, descriptions and, for tools, a JSON Schema for the arguments. That schema is what the harness places in the model’s context so the model knows how to ask.

When the model writes a request, the host sends tools/call with the tool name and arguments, and the server returns a content array, usually text, which the harness appends to the window. Resources are read with resources/read and prompts fetched with prompts/get. There are two transports. With stdio, the host launches the server as a child process and talks over its standard input and output; that is how local servers for your files or a local database run. Streamable HTTP is for remote servers, with OAuth for authorisation.

As of the 2026-07-28 revision the protocol is stateless: every request carries the protocol version and the client’s capabilities, and a server infers nothing from earlier requests; servers that need state hand out an explicit handle, which the security guidance says must never be treated as authentication. The sampling primitive, by which a server could ask the host’s model for a completion, is deprecated in that revision; new servers call a model provider directly. The example is abridged from the architecture page’s own calculator-and-weather example.

// Host → server: what have you got?   (JSON-RPC 2.0)
{ "jsonrpc": "2.0", "id": 2, "method": "tools/list" }

// Server → host: a list of tools, each with a JSON Schema
{ "result": { "tools": [ { "name": "weather_current",
    "description": "Get current weather for a location",
    "inputSchema": { "type": "object", "properties": {
      "location": { "type": "string" } }, "required": ["location"] } } ] } }

// Host → server: the model asked for one
{ "jsonrpc": "2.0", "id": 3, "method": "tools/call",
  "params": { "name": "weather_current", "arguments": { "location": "Leeds" } } }

// Server → host: text the harness appends to the window
{ "result": { "content": [ { "type": "text", "text": "12°C, light rain" } ] } }

Shapes abridged from the MCP architecture page’s own example; the Leeds weather is invented.

Sources (2)
  1. https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture.md
  2. https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices.md
Appendix · For the nerds

Permission modes, side by side. Two vendors, one idea.

Open the appendixfor the nerds · optional

The two leading coding harnesses have converged on the same two-axis model of policy, and seeing them side by side makes the idea clearer than either alone. One axis is how much the harness asks. Claude Code’s plan mode and Codex’s read-only sandbox both mean look, do not touch. Claude Code’s default, labelled Manual, lets reads inside the working folder run freely and asks before edits, shell commands and web fetches; Codex’s workspace-write with on-request approval means edit inside the workspace, ask to go beyond.

Claude Code’s acceptEdits auto-approves file edits and simple filesystem commands in the working folder. Both have a mode where a model reviews actions instead of you: Claude Code’s auto mode runs a classifier over shell and network actions, and Codex can set a reviewer agent as the approver. Both have a no-prompts mode, and both documentations tell you to use it only in an isolated environment.

The other axis is the sandbox: operating-system enforcement of what the shell can see and reach regardless of what anyone approved. Claude Code’s sandboxing restricts file and network access for Bash and its children and merges deny rules and allowed domains into it; Codex uses Seatbelt on macOS, bubblewrap on Linux and WSL2, and the native sandbox on Windows, and is explicit that approval policy and sandbox are separate settings.

The practical reading is that permissions decide what may run, the sandbox decides what can run, and the reason to have both is that a prompt injection bypasses the first and not the second.

IntentClaude CodeCodexWhat it means in practice
Look, don’t touchplan mode: reads files and read-only shell; no editsread-only sandbox: inspect files; edits and commands need approvalStart here on anything you care about. The five-minute walkthrough in section 03 starts here.
Ask before changingdefault / “Manual”: reads free in the working folder; edits, Bash, web fetch askworkspace-write + on-request: edits in the workspace; asks to go beyondThe everyday setting for a developer who is paying attention.
Edits yes, commands askacceptEdits: file edits and mkdir/mv/cp auto-approved in the working folderworkspace-write with a rule set you defineFast iteration on a branch you can throw away.
Reviewed, not promptedauto: a classifier checks shell and network actions against your requestapprovals_reviewer = auto_review: a reviewer agent approves instead of youModel-checks-model. Useful; not a wall. Keep the sandbox on.
No prompts at allbypassPermissions: “only in isolated environments like containers or VMs”danger-full-access + neverOnly inside a sandbox you would be happy to lose.
The wall under all of itSandboxing: OS-level file and network limits on Bash; deny rules; hooks; managed settings an individual can’t overrideSeatbelt (macOS), bubblewrap (Linux/WSL2), Windows sandbox; approval policy is a separate axis from sandboxPermissions decide what may run. The sandbox decides what can run. Use both.
Sources (2)
  1. https://code.claude.com/docs/en/permissions
  2. https://learn.chatgpt.com/docs/sandboxing