#harness-engineering
13 posts tagged “harness-engineering”.
-
An AI coding tool is a loop around a model that can only produce text. What gets assembled and sent, what comes back, who runs the tools, and why the whole thing goes round again — shown in about forty lines of code you can run yourself, against a real repository.
-
The model never runs anything. It emits a structured request, your harness decides whether to honour it, and the result comes back as more text. What a tool definition really is, why a vague description produces wrong calls, and what happens when a tool fails.
-
What the Model Context Protocol actually is, in plain words: the problem it solves, what a server offers, which side your editor is on, what local and remote transports really change, and what crosses the wire — shown on a real handshake.
-
A hundred lines, two read-only tools, connected to a real editor with every message logged. Writing a tool description the model reads correctly, checking the server before you trust it, and why read-only over stdio is the sane default.
-
The protocol says plainly that it cannot enforce security at its own level — so the host must. The attack classes the specification names, in plain words, and a short list of what to actually check before you install somebody else's server.
-
Your message is the smallest part of what gets sent. The assembly order of a real request, why an instruction file is advice the model weighs rather than a rule the system enforces, and what compaction throws away.
-
The difference between asking an agent not to and actually stopping it. Permission prompts, allowlists, deny rules, sandboxes and hooks — which of them depend on your judgement in the moment, and which hold when text in a file tells the agent to do something else.
-
A skill is a folder, not a prompt, and its name and description together are the only thing deciding whether it ever runs. Why loading on demand is a context decision rather than tidiness, and what happens when two skills describe themselves the same way.
-
A subagent is a fresh context with a narrow brief, and that — not parallelism — is the reason to use one. What it can and cannot see, when fanning out saves a long session, and when it just pays to read the same files four times.
-
One real piece of work from first prompt to landed commits, with every mechanism from the two tracks labelled where it fires — what entered context on turn one, what a tool call actually returned, why compaction never bit in seven and a half hours, and the turn where a correct command destroyed a file nobody was thinking about.
-
Four short series explaining how these systems actually work — what the model is doing, what your coding tool is doing around it, how to work with it day to day, and how to ship it in your own product. Which one to read depends on what surprised you.
-
Seventy words you need before any other AI writing makes sense — token, context window, embedding, context engineering, tool call, MCP, agent, eval, prompt injection and the rest — each in one sentence with one concrete example, grouped by the thing you are trying to understand.
-
Skills, subagents, hooks, MCP, slash commands, plugins, scopes — what each part of an AI coding harness is actually for, organised by who pulls the trigger, and mapped across Claude Code and GitHub Copilot.