How an operator ships with AI agents
Tests come before code, every change gets an independent review, and machine gates decide what ships. Why each check exists, and where I approve.
Decide where a person approves an agent's work
- 1
List what the agent may do
Write down every action the agent can take, from reading a file to sending a message.
- 2
Mark the actions with real consequences
Flag each action that spends money, reaches a customer or cannot be undone.
- 3
Put a person in front of those actions
Require a person's yes before any flagged action runs, and record who gave it.
- 4
Let the rest run on its own
Everything not flagged runs without waiting, inside checks the agent does not control.
What does the harness do?
It turns a written request into software that has been tested, reviewed and checked before it ships. The harness exists because agents are fast but forgetful: without a spec they drift, and without a record the next session starts from zero. It is the discipline I would ask of a human team, applied to agents.
What the harness enforces
A failing test defines done before any code is written. Each change is reviewed against its written acceptance criteria, independently of whoever built it. Real checks return PASS or BLOCK on every change, and every decision is kept with the check behind it and the reason.
Agents write code quickly, but each session starts without memory of the last one. The written plan and the record of each decision carry the work from one session to the next.
Why use models from more than one company?
Because no single model is best at everything, and the work should not depend on one vendor. The harness runs through Claude Code and OpenAI Codex, on leading frontier models from Anthropic and OpenAI. The checks apply the same way whichever model wrote the code, so a model can change without changing the standard.
From Anthropic I use Fable, Opus and Sonnet. From OpenAI I use Astra, Sol and Terra.
Where does a human approve the work?
I set the plan and the standards. I read the plan before any agent writes a line of code, because every agent builds from the same plan. After that the agents work on their own, inside the gates. I keep the final call on what the harness may do without me.
The same rule holds in the systems I build for clients. A phone-order agent creates an order only after the caller says yes to it, and a lead follow-up system checks the opt-out flag before it sends a text. Everything else runs inside the gates.
What happens when the gate says BLOCK?
The work stops there, and it moves again only when the cause is fixed and the checks pass. The verdict is kept with its reason, so anyone can trace it later. When the same kind of gap keeps coming back, the fix is a new automated check that runs on every change after it.
The cause is written next to the verdict, so the next session starts from what the last one found.
The decision behind it
Who checks the work
- Problem
An agent that judges its own code has no independent check: it reads the work through the same assumptions that wrote it.
- Constraints
- Reviews must not slow a small fix to a crawl.
- The reviewer needs the same spec and tests the builder had.
- Every verdict has to leave a written record.
- Options
- The builder reviews its own work against a checklist. Fast, but it repeats the builder's blind spots.
- Review independent of the builder, backed by a machine gate. One more step, and every verdict can be traced.
- Every change is reviewed by hand. Thorough, but too slow for small fixes.
- Decision
Independent review on every change, with a machine gate that has the last word. Nothing ships on a BLOCK.
- What I would change
What I watch: whether review findings point back to gaps in the spec. When they do, the spec gets fixed first.
Tools used
| Company or area | Tools | Models |
|---|---|---|
| Anthropic | Claude Code | Fable, Opus, Sonnet |
| OpenAI | Codex | Astra, Sol, Terra |
| Version control | Git, Pull requests |
Questions people ask
Does this only work for large projects?
No. A small fix gets a short spec and one test, and it passes the same gates as a large feature. The size of the change sets how much is written down, never whether the checks run.
What happens when an agent gets stuck?
It stops and says what blocked it. The work resumes from the written record. The next session starts from what the last one learned and decided, so nothing is worked out twice.
Is the harness finished?
No. The harness is built with itself, so every change to it passes the same checks as everything else. When a gap shows up in real work, the fix becomes a new check for every change after it.
Figures and sources
How it is built
More than 120 releases of my own custom AI tool harness, building since 2024
Sources
- Claude Code overview (accessed )
- OpenAI Codex (accessed )