Braj Kishore
JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
Say hi

Hiring · Building · Investing

Have a system — or a team —that needs to scale?

info@avyxon.ai

Usually replies within a day · track record here

JourneyVaultML FoundationsAI PM GuideAgenticNewsWork With MeMentorshipPulseNow
LinkedInXYouTubeSubstackInstagramThreadsFacebookDiscordGitHubTopmate
© 2026 Braj Kishore · Bengaluru, INThink Big · Start Small · Scale Fast
Agentic engineering
Lesson 11Patterns

Harness design

On 2 April 2026, two respected engineering teams published guidance on agent harnesses. One argued for building more controls around the model. The other argued for stripping them out. Both were right, and the difference between them is the whole lesson.

Start with the definition, because it is broader than people expect. A harness is everything in an agent except the model itself. The loop, the tool registry, the permission checks, the retry logic, the context assembly, the traces. All of it.

That framing matters because it moves the interesting question. It is not which model. Two teams on the same model, with different harnesses, get very different systems — and the headline of the piece that prompted this lesson puts it about as directly as it can be put.

Here is what makes it hard. Some of your harness exists because the model could not do something. The rest exists because you decided it should not. Those two look identical in the code and they age in opposite directions.

Interactive · the four controls

Two questions, crossed: does it fire before or after, and who runs it

Read the last row across. What each control cannot catch is what decides whether you still need a person on the path.

Looks like
A constrained tool schema, an allow-list of paths, a spend cap
Tool descriptions, a house style document, worked examples
Tests, a linter, a type checker, a schema validation, a database read
AI code review, an LLM judge, a second agent checking the first
What it catches
Malformed calls, out-of-bounds actions, whole classes of mistake
Ambiguity, missing conventions, the wrong default approach
Structural defects, reliably and fast
Semantic problems no linter can express
What it misses
Anything requiring judgement about whether the task is right
Anything the model decides to ignore — this is guidance, not a gate
Whether the thing built was the thing needed
Its own blind spots, which it shares with the agent it is reviewing

Only one of the four makes a failure impossible rather than unlikely. Select a control to see which, and what it costs you.

Harness Engineering for Coding Agent UsersBirgitta Böckeler, martinfowler.comBuilding Effective AI AgentsAnthropic

The same day, the opposite advice

The Fowler piece by Birgitta Böckeler splits harness controls two ways. Some are guides, which steer the agent before it acts. Others are sensors, which observe what it did and let it self-correct.

It cuts a second time. Computational controls are deterministic and run on the CPU — tests, linters, type checkers. Inferential ones are semantic and run on a model. Cross those two questions and you get the four controls in the graphic above.

Anthropic published on harness design the same day and argued close to the opposite: lean on the model rather than the harness, and strip the harness down. Its central claim is the one worth memorising. Harnesses encode assumptions about what the model cannot do, and those assumptions grow stale as it gets more capable.

These are not actually in conflict, and saying why is a good interview answer. Böckeler is mostly describing sensors, which measure reality and do not go stale. Anthropic is mostly describing guides, which encode a belief about the model and do.

The resolution, and the sentence to carry out of this lesson: scaffolding built to compensate for a model limitation is temporary. A boundary you set for cost, safety or accountability is permanent. They look the same in the codebase. Only the reason tells them apart, which is why the reason has to be written down.
Agent Harness Design: 3 Patterns for Harnessing Claude's IntelligenceAnthropic

What can I stop doing?

Anthropic’s suggested habit is to keep asking that question as models improve. The trap is answering it by feel. You end up either deleting nothing, because everything looks load-bearing, or deleting the wrong things, because removing a guard always makes a demo faster.

The test is mechanical. For each piece of your harness, write down why it exists. If the answer names a model limitation, it is a candidate for deletion the moment that limitation lifts. If it names a decision — about money, authority, safety or what you can explain afterwards — no model improvement retires it.

Interactive · what can I stop doing?

Try deleting your harness

Mark anything you think a capable model no longer needs. The counter below is not scoring you — it is showing you that the question has two different answers depending on why the piece was built.

Nothing deleted yet. Select a name to see why that piece exists.

Watch the direction of the danger on the boundaries. A more capable model does not make a missing spend cap safer, because it can burn the budget faster. It does not make a missing allow-list safer either, because a model that has read a hostile instruction is a better-equipped attacker, not a more cautious one. Capability cuts both ways; boundaries only cut one.

What no harness catches

The most useful thing in the Böckeler piece is the part that admits a limit. Computational sensors catch structural problems reliably. Read that sentence for what it does not claim.

Neither computational nor inferential controls reliably catch the higher-impact problems: misdiagnosis of the issue, and overengineering. An agent that solves the wrong problem beautifully passes every test you have. So does one that builds four layers of abstraction where a function would do.

That is why the piece argues human developers remain necessary, and the reasons it gives are not about capability. Agents lack social accountability, contextual knowledge, and alignment with what the organisation is actually trying to do. None of those is a benchmark you can climb.

12-Factor Agents: patterns of reliable LLM applicationshumanlayer

How far the idea goes

If the harness is everything except the model, the natural next question is which of those parts are replaceable. One project answers: all of them.

🇨🇳 China · open source

DeepSeek Harness — even the loop is a plugin

MIT
licence
206.6k
GitHub stars
Preview
stability, stated plainly

DeepSeek released an agent runtime built on what it calls an everything-is-a-plugin architecture. The tagline is the design: there is no privileged core to patch, so the model adapter, the tool registry, the session log and the agent loop are all components you can replace. It ships tools, filesystem and shell access, a session log, subagents and permissions.

Two things are worth taking from it. First, it is an existence proof that the loop is a component rather than a foundation — which is the strongest form of the argument that you should be able to read and replace yours. Second, read the README before the coverage: it says in capitals that this is a developer preview and there will be compatibility-breaking changes. Secondary write-ups I found reported the star count as 33,000 and as 95,000; the repository itself showed 206.6k when I checked. Numbers about fast-moving projects go stale in weeks, which is a small version of the same lesson this page is about.

DeepSeek Harnessdeepseek-ai on GitHubsmolagentsHugging Face

What to build at your size

Harness work is where small teams most often build something they did not need. Two of the five controls below are honest skips at seed, and one of them stays a skip through Series A.

Interactive · calibrate to your stage

What to actually do about this, at your size

Nearly all guidance on this topic is written for one company size and then read by everyone. Pick yours — the list re-sorts, and what you should deliberately not build drops to the bottom.

  • Own the loopDo it

    The for-loop lives in your process, not inside a framework you cannot step into.

    At this stage · Still yours. This is the stage where the first real incident happens, and the debugging story is entirely decided by whether you can read the loop.

  • Computational sensorsDo it

    Tests, linters, type checks and schema validation, with their output fed back to the agent as text.

    At this stage · Now on every write path, and fast enough to run inside the loop rather than after it.

  • Inferential sensorsCheap version

    A model reviewing the agent's work — AI code review, an LLM judge, a second agent checking the first.

    At this stage · Only once you have human labels to validate the judge against. An unvalidated LLM judge is a confident number with no relationship to quality.

  • A written harness inventoryCheap version

    A list of what your harness does, and beside each item the reason it exists.

    At this stage · A section in the README naming what each guard is for. Ten lines. Enough that the next hire does not treat every line as load-bearing.

  • Scheduled harness reviewSkip it

    A recurring pass that asks, for each piece: does the model still need this?

    At this stage · Still skip. Do it opportunistically when you upgrade a model — that is the natural trigger and it costs nothing to attach.

1 of 5 deliberately skipped at this stage. Knowing which controls you are choosing not to build, and being able to say why, is a stronger signal than having built all of them.

What to remember

  1. 1
    A harness is everything except the model

    The loop, the tools, the permissions, the context assembly, the traces. Two teams on the same model with different harnesses ship very different systems, which is why the interesting question is rarely which model.

  2. 2
    Guides go stale, sensors do not

    A guide encodes a belief about what the model cannot do. A sensor measures what actually happened. That is why one piece of guidance says build more controls and another says strip them out, and why both are right.

  3. 3
    Write down why each piece exists

    Scaffolding that compensates for a limitation is deletable when the limitation lifts. A boundary you set for cost, safety or accountability never is. They look identical in code, so only the written reason tells them apart.

  4. 4
    No harness catches misdiagnosis

    Computational sensors catch structural problems reliably. Nothing reliably catches an agent solving the wrong problem well, or overengineering the right one. That gap is the argument for a person, and it is not a capability gap.

Sources

Every source in this lesson

Primary sources wherever one exists. Where a claim is contested or vendor-reported, the lesson says so at the point it is made.

Read
  • Harness Engineering for Coding Agent UsersBirgitta Böckeler, martinfowler.com

    2 April 2026. Defines the harness as everything in an agent except the model itself, then splits the controls two ways: guides that steer before the agent acts, sensors that let it self-correct after; and computational checks run by the CPU against inferential ones run by a model. Also honest about what neither catches.

  • Agent Harness Design: 3 Patterns for Harnessing Claude's IntelligenceAnthropic

    2 April 2026, the same day as the Fowler piece and arguing close to the opposite. Lean on the model rather than the harness; strip the harness down; set boundaries deliberately. The line to remember: harnesses encode assumptions about what the model cannot do, and those assumptions grow stale as it gets more capable.

  • Your AI agent is only as good as the harness around itThe New Stack

    The piece that prompted this lesson. Its headline states the thesis well. The body would not load for me through two separate fetches — the page returns navigation and a subscription form — so nothing here is attributed to its contents, only to its title, which search confirms.

  • Building Effective AI AgentsAnthropic

    December 2024. The workflow/agent split, and the origin of the advice that the right answer is often not to build an agentic system at all — which is the cheapest harness decision available.

Code
  • DeepSeek Harnessdeepseek-ai on GitHub

    MIT-licensed agent runtime built on an everything-is-a-plugin architecture, powered by Cordis. Worth reading as an existence proof that the loop itself can be a replaceable component. The README is blunt about its status: developer preview, and “THERE WILL BE COMPATIBILITY-BREAKING CHANGES.”

  • 12-Factor Agents: patterns of reliable LLM applicationshumanlayer

    Factor 8, own your control flow, is the harness argument stated as a rule. If the loop is inside somebody else's package you cannot put a control between two of its steps.

  • smolagentsHugging Face

    A barebones agent library whose core logic fits in about a thousand lines. The useful comparison: a harness you could read in an afternoon against one you could not.

Docs
  • Tool use with ClaudeAnthropic docs

    The mechanics the harness sits on: stop_reason “tool_use”, a tool_use block, your execution, a tool_result sent back on a user-role message.

Lesson 10
Evaluating a framework
Lesson 12
Prompting an agent