The definition
A harness is the program that wraps an AI model in a loop. The model proposes a step, the harness runs it with a tool, shows the model the result, and the loop repeats until the work is done or something stops it. Claude Code, for example, is described by its makers as an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools. Codex CLI, Gemini CLI, Aider, OpenHands and Hermes follow the same pattern.
Five things make up that loop, and each is something an operator controls:
- Model. The reasoning engine. Models differ in skill, speed and price.
- Tools. What the agent can actually do: read files, run commands, search the web, call an API.
- Permissions. Which of those actions it may take alone, and which need your yes.
- Context. What it can see right now: your instructions, the files it opened, the conversation so far.
- Memory. What survives from one session to the next: rule files, notes, checkpoints.
Directing an agent loop of model, tools, permissions, context and memory to a result you can trust, at the cost you meant to pay.
Each clause carries weight. Directing means you make the decisions that matter and the agent does the labour. A result you can trust means you have evidence, not a confident summary. At the cost you meant to pay means money, time and risk were choices, not surprises.
Operating is different from prompting. A prompt is one message. An operated run may last hours, spawn helpers, change real files and systems, and end with a claim of success that someone must decide to believe. Writing the first message is a small part of that job.
Eight parts of the craft
The same eight parts make up the free course, the paid training and the certification. They are listed in the order you meet them in a real run.
1. The brief
Everything starts with what you ask for. A brief states the goal, the checks that prove it, and what the agent must leave alone. It is short, but it decides most of the outcome, because an agent will work hard toward whatever it understood. Module: the brief.
2. Context
An agent knows only what is in front of it. You decide what that is: rule files, references, the right files, a note about last week's decision. Too little and it guesses. Too much, or something stale, and it follows the wrong lead. Good operators curate context the way an editor curates a page. Module: context.
3. Decomposition
Big jobs fail as one run and succeed as several. You split the work into sessions, helper agents and separate working copies so tasks do not collide, and so each one is small enough to check. Module: decomposition.
4. Verification
Agents report success in the same calm voice whether the work is right or wrong. Verification means asking for evidence, reading the trace of what actually ran, and checking the result where its real users will meet it. Module: verification.
5. Steering
During a run, you choose between letting it continue, nudging it, and stopping it. Intervening too late wastes an hour. Intervening too often wastes the point of having an agent. Steering is the judgement about when. Module: steering.
6. Guardrails
Permissions, hooks and secrets decide what the agent can break. The aim is not to say no to everything. It is to make the actions that cannot be undone (deleting data, deploying, spending, sending) wait for a person. Module: guardrails.
7. Compounding
A correction made once in chat is gone tomorrow. A correction written into a rule, a skill or a hook stays. Operators who do this find their setup improves every week while others repeat the same fixes. Module: compounding.
8. Economics
Models, effort levels, tokens and time all cost something. Operating includes knowing where extra spend buys a better result and where it only buys a longer run, and when to stop. Module: economics.
Good operation and poor operation
The difference is rarely about the tool. It shows in small habits. Four side-by-side examples follow.
A vague brief and a good brief
Poor:
Add promo codes to the checkout.
The agent must now invent everything: how codes are stored, what happens with an invalid one, whether the discount survives a reload. It will decide, silently, and you will find out later.
Good:
Goal: a customer enters a code at checkout and sees the discounted total.
Done means:
- a test applies SAVE10 and the total drops by 10%
- the discounted total survives a page reload
- an invalid code shows an error and leaves the total unchanged
Do not touch: payment provider settings, the order emails.
Before you start, repeat this back in your own words and list anything unclear.
The second brief takes two minutes longer to write. It saves the rework, and it gives you a checklist for reviewing the result.
A claim and evidence
| What the agent says | What an operator asks | What counts as evidence |
|---|---|---|
| "Tests pass." | Which tests, run when, and show me. | The command, its output with the pass count, run after the last edit. |
| "The page is fixed." | Where did you look at it? | The page loaded in a browser at the real address, with the changed element visible. |
| "I removed the unused code." | How do you know it was unused? | A search showing no references, and the build still succeeding. |
| "Done." | Go through the brief, line by line. | Each "done means" line matched to a check you can repeat. |
Letting it loop and steering it
Poor operation
You give a large task, leave, and return to find the agent has spent an hour on a wrong assumption made in minute four, and rewritten three files to match it.
Good operation
You read the agent's plan before it starts, spot the wrong assumption in minute one, correct it in a sentence, then let the run continue. Later you check progress at natural points, such as after the first test run, not every thirty seconds.
Poor: "Refactor the billing module." (walk away)
Good: "Plan the refactor of the billing module first. List the files
you will change and what could break. Do not edit yet."
(read the plan, correct it, then approve)
Fixing a mistake and fixing the cause
Poor
The agent uses the wrong date format; you correct it; the next session it does it again.
Good
You add one line to the project's instruction file saying which format to use. The mistake costs you once.
Poor operation trusts and hopes. Good operation agrees what done means first, checks the evidence after, and writes down every lesson in between.
Common failure modes
Most bad runs fail in one of five ways. Knowing the names helps you spot them early.
Drift
The agent starts on your task and slowly turns to a neighbouring one. It "tidies" files you did not mention, or solves a bigger version of the problem. Cause: a loose brief with no stated limits. Defence: a "do not touch" line, and reading the diff for files you did not expect.
The false "done"
The agent says the work is finished when it is not. Sometimes it ran no check. Sometimes it ran a check that could not fail. Sometimes it fixed one case and reported all of them. Cause: finishing is rewarded, and a summary costs nothing to write. Defence: ask for the evidence, then look at it.
Context rot
In a long session the conversation fills with old attempts, dead ends and outdated facts. The agent may act on something that stopped being true an hour ago. Cause: everything stays in view whether or not it still matters. Defence: short sessions with one purpose, written checkpoints, and a fresh start when the thread gets muddy.
Runaway cost
A loop with no stopping rule, a task far bigger than expected, many helper agents at once, or the strongest model used for trivial work. Anthropic's own documentation says plainly that token costs scale with context size and lists clearing between tasks and matching the model to the job among the main controls. Defence: know how your plan bills (see how cost works), watch usage, and set a limit on what a run may attempt.
Irreversible actions
Deleting the wrong folder, force-pushing over someone's work, dropping a table, sending an email, using a production key. These are rare, and each can cost more than all the time the agent ever saved. Defence: version control, backups, no production credentials in reach, and permission prompts left on for anything that cannot be undone.
Why anyone should learn it
It is natural to read "harness" and think "developer tool". The first tools of this kind were built for programmers, and most still run in a terminal. But look at what the loop does: it reads material, plans, produces files, runs checks and corrects itself. Software is only the first thing that can be checked this way. Spreadsheets, reports, websites, data analyses, presentations, translations and research notes are all files that an agent can produce and that someone can check.
So the skill is not "coding". It is a way of working with a fast, tireless and confident colleague who has no idea what you care about until you say so. That colleague is now available to people in many jobs:
- Designers can turn a layout into a working, clickable prototype and test it with real people the same afternoon, then judge whether it is right.
- Analysts can ask for a full analysis of a dataset, with the code and the working shown, and then check the method and the numbers instead of typing every formula.
- Product managers can build a throwaway version of an idea to learn whether it is worth a team's time.
- Founders can get a first product, landing page or internal tool without hiring first, and know enough to judge what they receive.
- Marketers can produce and adjust pages, sequences and reports at the speed they think of them.
- Teachers can create interactive exercises, worksheets and small tools for their own class.
These are examples of what the loop can do, not promises about any one tool. What follows is the argument for why the skill matters, and it rests on reasoning rather than statistics.
The cost of making has fallen
When producing a working draft takes minutes instead of days, producing stops being the limit. If you can generate five versions of a page before lunch, the scarce thing is no longer the effort to make them. It is the ability to choose among them, and to say which one is correct.
The bottleneck moves to three human skills
Judgement: knowing what is worth building and what "good" looks like in your field. The agent has no stake in your customers, your readers or your students. Briefing: turning a wish into something unambiguous, with limits. Checking: telling a working result from a plausible one. All three belong to the person, and all three can be trained. None needs you to write code.
Confidence is not correctness
A harness will report success with the same fluency whether the work is right or wrong. A person who cannot check will either trust everything or trust nothing. Both are costly. The operator's habit of asking "what is the evidence?" is useful in every field these tools reach.
The risks grow with the reach
The more an agent can do, the more it can do wrong: spend money, expose secrets, alter data, publish something. Someone has to decide what it may touch. In a company that is better done by people who understand the work than left to defaults.
The craft outlasts the tool
Harnesses change often. New models arrive, interfaces move, names change. The habits above do not depend on any one of them. Someone who can brief, check and steer in Claude Code can do it in Codex or whatever comes next, after a short adjustment.
Whether you work alone or for a company, this is also why operators are becoming a profession: the person who makes these runs reliable is worth having. You do not need to want that role to benefit. Anyone who uses an agent for real work is already operating it, well or badly. Learning to do it well is the cheaper option.
Check yourself
Try to answer each question before opening it.
What are the five parts of the agent loop an operator controls?
Model, tools, permissions, context and memory.
An agent says "all tests pass". What do you do?
Ask which tests ran, when, and for the output. Then check that the run came after the last change and that the tests cover what the brief asked. A claim without a repeatable check is not evidence.
Name the three habits that carry most of good operation.
Agree what done means before work starts; trust the evidence, never the summary; make every correction permanent in a rule, skill or hook.
Which failure mode is most likely in a session that has run all day?
Context rot: old attempts and outdated facts crowd the context and the agent acts on something no longer true. Start a fresh session from a written checkpoint.
Why is operating not only for developers?
Because the loop produces any checkable file, not only code, and the limiting skills (judgement, briefing, checking) are the ones people in every field already use.
What should always wait for a person?
Actions that cannot be undone: deleting data, deploying, spending money, sending messages, and anything that touches production credentials.