Agent harnesses

Agent harness vs agent framework: what is the difference?

An agent framework is a code library with the parts to build an agent. An agent harness is the running system in production, wired to your data, your permissions and the checks that decide whether work counts. A framework is a parts bin. A harness is the assembled machine.

Key takeaways

  • A framework gives you parts. A harness decides what agents may do and when work counts.
  • The difference only shows on a bad day, which is why demos hide it.
  • Ask where permissions are enforced: in the prompt or in code the agent cannot change.

See the platform these notes come fromOpen the portfolio

An agent framework is a code library that gives developers the parts to build an agent: a loop, tool definitions, memory helpers and model connectors. An agent harness is the running system in production, with those parts wired to your data, your permissions and the checks that decide whether work counts. A framework is a parts bin. A harness is the assembled machine with its guards fitted.

My claim: many buyers who think they are buying a harness are buying a framework with a dashboard, and they find out the first time an agent does something nobody approved. The gap between the two is where the cost of production lives, and almost all of it sits in the parts a framework leaves to you.

What does a framework give you?

A framework saves your developers time on plumbing. It handles calling a model, reading the tool requests that come back, passing results in and keeping a short memory of the conversation. Those are real problems worth solving once.

What a framework cannot know is your company. It does not know which records a sales agent may read, which actions need a manager's sign off, or what proof you accept that a task is finished. It gives you a place to put those rules. It does not write them, and it does not enforce them unless someone on your team does that work.

What does a harness add?

The clearest way to see the difference is to ask the same questions of each.

QuestionFrameworkHarness
Who decides what runs?Any developer with the codeOnly agents that have been declared and approved
Who may see what?Left to the developerEnforced per agent and per data class
When is the work done?When the loop stopsWhen a check passes and stores evidence
What happens when it fails?Whatever the developer wroteLogged, reported, and a named person is told
What survives a model swap?Very littleThe rules, the checks and the record

Why do buyers confuse them?

The demo looks identical. A framework demo and a harness demo both show an agent taking a request, calling a tool and producing a good answer. The difference only shows on a bad day: wrong data, an expired credential, a tool that returns nonsense. Demos are built for good days.

Sellers blur it too. A framework with a hosted console and a pricing page looks like a platform. After twelve-plus years selling enterprise software, I know how easy it is to let a buyer assume more than the product does when nobody asks the direct question.

The cost lands after signature. The buyer's own team writes the permissions, the approval steps and the checks, on top of a product they thought already had them. That is a build project hiding inside a purchase, with no budget and no owner.

What did I have to add on top of the parts?

When I built AlexDLY, the parts a framework would give me were the quick part. The months went into rules no library ships with. Two of them show the difference best.

First, an agent that is not declared in the registry cannot run. A developer, or a coding agent, cannot write a new agent and start it. It has to be listed, with its purpose and its permissions, before the system will call it. That is one check at startup, and it is the difference between knowing what is running in your company and guessing.

Second, about 4,800 tests run in CI with outbound network blocked. A test that quietly calls a live service passes on a good day and fails on a bad one, and it tells you nothing either way. Blocking the network forces every test to prove the logic on its own. Live services get their own separate checks.

Neither rule depends on which framework sits underneath. Both would survive swapping it out, and that is the point. The harness is the part you keep.

What should a buyer ask?

Ask whether a new agent can run before someone declares and approves it. Ask where permissions are enforced: in the prompt, where the agent can be talked out of them, or in code the agent cannot change. Then ask to see a run that failed and what caught it. A harness vendor answers all three in the first meeting. A framework vendor will tell you those are configurable.

What would change my mind?

If frameworks start shipping with enforced permissions, a declared agent inventory and evidence checks switched on by default, the line between the two blurs and buyers can treat them as one purchase. Some may get there. Until a framework says no to something before anyone configures it, I treat it as a parts bin.

FAQ

Can I build a harness on top of a framework?

Yes, and that is the usual path. The framework handles the loop and tool calls. Your team adds the registry, permissions, approvals and checks that make it safe to run on real data.

Is a harness only for large companies?

No. A ten-person company running one agent on customer email still has to decide what it may see, what needs approval and how it knows the work is right. The harness can be small. It cannot be missing.

Which matters more when choosing, the framework or the harness?

The harness. A framework choice mostly affects how fast your developers move. The harness decides what your agents can touch and how you find out when they are wrong.

See the platform these notes come from

I built AlexDLY as its only engineer, directing AI coding agents. The portfolio shows the six rules its code enforces, with the file behind each one.

Open the portfolio