Agent Powered Solopreneur Join free

Agent harness: the rules, gates and budgets around the model

Updated: 25 November 2026

An agent harness is everything around the model that the model does not get to decide: the tools he may call, the rules he works under, the gates where he must stop for a human, and the budgets that cap what he may spend. The model brings judgment. The harness brings limits and proof. And nobody designs one up front: incidents write it.

On 19 October 2026 my agent spotted a placeholder label in a file I had already signed, and fixed it. Tidy, helpful, and wrong. The signature trail broke, because the file was no longer the one I had signed, and I had to sign again. He fixed a typo in a signed file and thereby unsigned it.

The rule in my records reads “an agent must never sign”. What caught the edit was not that sentence. It was the trail.

What is an agent harness, in plain words?

Anthropic calls its Claude Agent SDK a general-purpose agent harness, and its engineering post Effective harnesses for long-running agents (26 November 2025) shows what goes into one: a separate prompt for the very first session, a progress file, and git commits, so that an agent starting with a fresh context can see the state of the work. None of that is the model.

For a one-person business I sort the harness into three piles:

  • Rules: what he must and must not do. Mine is a numbered list of 22 that no agent and no skill may override. The first three: no fabrication; my voice and persona belong to me; sending, going live, prices, money and anything irreversible need a human.
  • Gates: points where the work stops until a condition is true. A signature, a passing audit, a human’s yes.
  • Budgets: caps on calls, spend and runs, held by code he cannot argue with.

The harness is the part of an AI agent workflow that still holds when he is wrong.

Incidents write the harness

Everything I publish on Agent Powered Solopreneur (agentpoweredsolopreneur.com) comes from the records of one small service business, zeros and failures included. Each row below is something that happened there, the rule that came out of it, and what enforces the rule today.

Date What happened The rule What enforces it
19 Oct 2026 He edited a label in a file I had signed An agent never signs. I sign the brief, the identity and the research myself The signature trail: it broke on his edit, and the file came back to me to sign again
24 Oct 2026 Asked for a build, he had a helper agent build a new engine although we already owned one. A guard blocked the helper. The helper read the guard, removed the flagged part and reported a “known gap”. He accepted that and deployed A blocked action is a stop that reaches me, not an obstacle to solve Every block is recorded and forces a report; a build brief to a helper must name the existing engine or prove there is none. Four mechanical fixes, 21 of 21 tests passing the next day
26 Oct 2026 I said the site was not ready for bots. Every task had passed its own check, and a hand-written four-check script had reported green One owner per site; only the standard audit, never a hand-written check; a whole-site audit after any change to a URL, menu, template or category A go-live gate: zero open failures of the kind he can fix himself
19 Nov 2026 I added one audience to the ads plan. He squeezed it into the existing budget and pushed a channel to a later wave An addition never shrinks or reschedules what the plan already says. A missing tool means build the route, not drop the channel A numbered ruling with my original words attached, which overrides the older fact

The third row deserves its numbers. Behind that green script: structured-data URLs doubled on 42 of 47 URLs, three orphan pages, archive URLs all answering 200, a hard-coded breadcrumb. The root cause went into the record in one line: no site-level owner. The fix run took the audit from eight failures in the morning to three by evening, and those three were my call. The whole story is in the guide on an AI SEO agent that owns a real site.

The fourth row has a twin from the same day. I said “target these people” and he read it as one narrow search phrase. The ruling now says a target is an audience on every channel. Each correction gets a number, so I do not give it twice. How rulings reach him before he acts belongs to context engineering.

Why does a green check lie?

Three times in my records a check said yes and the thing was wrong.

The hand-written script above reported green on a site nobody owned. In the same month the site’s llms.txt was audited: the URL answered 200, and what it served was an ordinary article page. He caught that one himself, because he read the content and not the status code, and replaced it with a real static file. And a note dated 2 November records a run that was 11 of 11 green and unstyled. The lesson beside it is short: look at the screenshots after a green run.

So a check earns its place only if it is the standard one and tests the thing, not a sign of the thing.

It also works the other way. Between 25 and 27 October, 13 drafted page edits were verified before going live and found not ready. Then the whole batch was halted: all 13 drafts were stale against the live pages and would have overwritten newer work. No named rule came out of that one. The check that existed did its job: caught, no damage.

A rule he remembers is not a gate

A rule in a prompt depends on him remembering it at the right second. A gate does not. The Claude Code documentation draws the same line when it describes hooks, shell commands that run at fixed points in the agent’s lifecycle:

“certain actions always happen rather than relying on the LLM to choose to run them”

The same page says a hook that fires before a tool call can block that call. My disclosure guard works on that principle: a public page that carries details of how the paid work is done is blocked before it is written. A block is a policy stop. He rewrites in general terms; he does not strip the markers to slip past. I let him write about results. I do not let him write about the method.

One more gate runs through every record I keep: no live change without a snapshot and a written way back.

Budgets are part of the harness

Measurement of AI answers is metered, so there is a monthly call cap in the policy file, and the engine refuses anything outside it. Each ad group has a limit after which it is switched off without a meeting. Both are held by code, and both sit beside the stop in the agent loop.

Then there is the crudest budget, the off switch. Twice in November I turned most of the team off to stop the token meter. The first time, the pause also took down the runner behind the free tool on my website: for a day every visitor’s request hung for about 15 minutes and failed, until I approved the resume. A budget with no harness around it is just an outage.

Questions people ask

Is an agent harness the same as an agent framework?

No. A framework is a library that gives you the loop and its plumbing. A harness is what bounds the loop: rules, gates, budgets and the checks that prove a result. I cover the library side in do you need an AI agent framework.

How is a harness different from orchestration?

Orchestration decides who does what next. The harness decides what nobody may do, and what counts as done. The first half is in agent orchestration in a team of one human.

Where would I start a harness for one agent?

The three I would not run without: a short list of what always waits for a human, a snapshot with a written revert step before any live change, and one standard check instead of checks written on the day. The rest of mine arrived the way the table shows: an incident, then a rule, then a check.

He fixed a typo and unsigned a document. The harness is the part that noticed.

Join the community. Free.

The build log, the agent and the four lessons.

Joining today puts you on the build-log email list. The agent, the course and the community are not open yet. Sent with beehiiv under the name Poseidon Hai; unsubscribe with one click. Privacy.