Agent harness
The scaffolding around an AI model — tools, loops, intake gates, policies, and evaluation — that turns a raw model into a usable agent system without changing the model weights themselves.
Learn
When to use it
Use an agent harness when a raw model call to "answer this prompt" is not enough. Agent harnesses bring together tools, retries, model guardrails, and bigger checkpoints to do things like "open the repo, run tests, and stop when the PR is green."
Quick example
In Claude Code, the model gets a shell, a file tree, and a loop that keeps going until tests pass. Claude Code is the agent harness: the model stays the same; that scaffolding is what turns it into a coding agent.
prompt → agent harness → tools/files → loop until tests pass → stop
Ecosystem
These sit around the same control loop — tools and memory hang off the harness; the model stays inside.
┌─ tools ↺─┐
prompt →│ agent harness │→ stop
└─ memory ──┘
Misconceptions
| Misconception | Rebuttal |
|---|---|
| It changes the model weights | It only wraps how the model is called and constrained |
| Any wrapper is a harness | A harness owns the loop, tools, and stop conditions |
Trade-offs
- Control — more places to stall or burn tokens
- Model reuse — harness config becomes its own failure surface
Seen in
- AI Financial Advice: Effective with the Right Prompts2026-08-02
- AI Helps Google Fix More Chrome Bugs in June Than in the Past Two Years2026-07-31
- Curated Claude Code: A New Agent Harness with Intake Gate2026-07-25
- Agent Swarms Evolve: From Experimental Demos to Production Tools2026-07-21
- Training a Harness: Achieving Model and Task Agnostic AI Systems2026-07-20