Same Model, Very Different Results
When an AI agent fails at a task, many teams reach for the same fix: swap the model. Try the newest release, another vendor, a bigger checkpoint. Marmelab's "The State of AI Harness Engineering 2026", published on September 24, 2026, gives a strong reason to pause before doing that. According to the survey, what often matters more sits around the model: the harness.
This article summarizes the survey's key findings and what they mean for developers and technical leads who are building or evaluating AI agents.
What Is an Agent Harness?
Wikipedia defines an agent harness (also called agent scaffolding) as the software infrastructure around a large language model that lets it operate as an agent: tool dispatch, memory and state persistence, an isolated sandbox or workspace, context management, and guardrails such as scoped permissions, approval tiers and monitoring. The formula is simple: agent = model + harness.
Marmelab uses a compatible definition: a harness "constrains, guides, and elevates" a model, and harness engineering is the work of building the tools, context, memory and control loops that make an agent reliable.
What Marmelab Surveyed
According to Marmelab, the survey draws on:
- 246 open-source repositories audited,
- 57 publications read,
- 145 large non-AI projects used as a counter-test, to see how far harness practices have reached ordinary codebases.
Among those 145 projects, Marmelab found that 26% (38 projects) have a non-empty .claude/ directory and 63% ship an agent instruction file, yet only 4 declare a subagent and there are just 14 hooks in total. Documentation for agents has been adopted; enforced controls largely have not.
One Model, Eight Harnesses, 68%–88%
The most quoted number in the survey: the same model, with the same provider and the same tools, was run through eight different harnesses on 25 identical tasks. Success rates ranged from 68% to 88%.
That 20-point spread appeared without changing the model at all. Marmelab takes this figure from a comparison published by Composio and calls it "about the only thing anyone has properly measured" in the field. So it should be read as a strong signal rather than a universal law, but the direction is clear: the harness can move results as much as, or more than, a jump between model generations.
Harnesses Have Become a Discipline
The Marmelab survey also reports that 21,500 "agent harness" repositories were created in 2026 alone, and that 73,400 GitHub repositories carry the claude-code topic. The median audited harness repository is 8.7 months old, and 83% were created in 2025 or 2026.
Wikipedia notes that the term "harness engineering" took off in early 2026, with a disputed origin, and spread through engineering write-ups from OpenAI, Thoughtworks, LangChain and Anthropic. Curated lists such as awesome-harness-engineering on GitHub now organize the field into design primitives: the agent loop, planning, context delivery, tool design, permissions, memory, verification and observability.
The Harness Components That Matter Most
Marmelab does not formally rank components against each other, but it discusses four areas where the evidence is strongest:
| Component | What the Marmelab survey reports | Practical lesson |
|---|---|---|
| Tool definitions | A cited example where stripping most tools raised success and cut token use | A few clear tools beat many overlapping ones |
| Context management | Machine-generated context files can lower success and add inference cost; human-written ones give a small gain | Keep instruction files short (around 100 lines), like a table of contents |
| Sandbox & permissions | Only 12 of 391 repos commit a single deny rule; only 4.4% of security rules in public CLAUDE.md files are backed by a real control |
Replace prose rules with executable guards |
| Verification | 60% of 97 testable harnesses have neither a test nor an eval | Test each rule both ways: what must be blocked and what must pass |
An accuracy note: the tool-pruning example, the context-file study and the SRE agent case that Marmelab cites come from third parties, and Marmelab itself says most of them have not been reproduced. Those figures are therefore attributed here to the Marmelab survey, not presented as verified in their primary sources.
Anthropic's "Effective harnesses for long-running agents" reinforces the verification point. Agents often marked features as done after only unit tests or curl checks. Once prompted to use browser automation and test like a human user, they surfaced bugs that were invisible in the code. Anthropic also relies on a JSON feature list, a progress file and git commits so that each new session knows exactly where the last one stopped instead of guessing.
Implication: Put the Budget Into the Harness
For teams building agents, the message is direct: before chasing the latest model, measure and improve your harness. Several of Marmelab's recommendations can be applied right away:
- Build the harness from observed failures. Add a control because something actually broke, and write down why.
- Restrict tools and subagent permissions. Fewer tools often means better results.
- Turn prose rules into executable guards, and run them locally and in CI.
- Measure real usage, not only eval scores. Only 5 of 391 repositories record how their harness is used.
- Limit handoffs between agents, and do not add reviewer agents without measuring them.
- Give every control an expiry condition, and prune rules as models improve.
- Make the app startable per working copy, so agents can run and verify their own work.
Marmelab is open about its position: it built Atomic CRM, one of the survey's 11 finalist harnesses, and it points out that project's own gaps.
Conclusion
A 68%–88% spread on the same model is a reminder that agent quality is not only about the "brain". Tool design, how context is delivered, sandbox boundaries and verification loops decide how much of the model's capability is actually used. Marmelab describes a harness as "deterministic scaffolding around a probabilistic step". For developers and technical leads, the most sensible investment right now is to build your own evaluation task set, measure the harness, and improve it before spending budget on switching models.
References
- Marmelab, "The State of AI Harness Engineering 2026" (September 24, 2026): https://marmelab.com/blog/2026/09/24/the-state-of-ai-harness-engineering-2026.html
- Wikipedia, "Agent harness": https://en.wikipedia.org/wiki/Agent_harness
- Anthropic, "Effective harnesses for long-running agents": https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents
- ai-boost, "awesome-harness-engineering": https://github.com/ai-boost/awesome-harness-engineering