Is Your Agent Failing? Try Subtracting, Not Adding
When an AI agent starts failing in production, most teams reach for the same fix: add something. One more tool for the case it missed, another paragraph in the system prompt, another instruction file, or a reviewer agent to double-check the main agent's work. Each addition looks reasonable on its own. The trouble is that the pile of additions is often what causes the failures.
Marmelab's survey The State of AI Harness Engineering 2026 pulls together evidence from several teams working independently, and the direction is consistent: the most reliable way to improve an agent is often to subtract from its harness. This article walks through that thesis, why it holds, and a practical protocol for applying it.
A note on sources: every figure in this article is quoted from the Marmelab 2026 survey. Numbers attached to Vercel, ETH Zurich and Microsoft are reported as the survey states them; we have not verified them against the primary sources.
The "Subtract, Don't Add" Thesis and the Evidence Behind It
The Marmelab survey describes tool and skill visibility as "a performance setting" — one of the few changes it found that moves success rate, token cost and latency in the same direction at once. The cases it collects include:
- Vercel reportedly stripped most of the tools out of an agent and saw its success rate rise substantially on the same model, with token usage cut by more than half and latency falling sharply. The survey flags these figures as second-hand: it treats the direction as solid and the magnitude as unverified.
- Microsoft's Azure SRE Agent team reportedly passed 100 tools within two weeks, then collapsed them into two broad tools. Its agent team also grew past 50 specialists before rolling back to a few generalists. Their finding, per the survey: problems requiring more than four agent-to-agent handoffs almost always failed.
- Reviewer layers don't automatically help either. The survey cites the NLAH paper: on a benchmark where the base agent solved 41% of tasks, adding a second reviewer agent lowered the success rate by 8%.
The survey also explains why this practice is rarely visible: restraint leaves no trace in git. Nobody commits "decided not to add this tool".
Why a Large Tool Catalogue Degrades Accuracy and Latency
In its write-up on context engineering, Anthropic names "bloated tool sets" as one of the most common failure modes it sees. There are two mechanisms at work.
First, ambiguous decision points. When two or three tools overlap, the model has to guess which one is meant. Anthropic offers a simple test: if a human engineer can't say definitively which tool should be used in a given situation, an agent can't be expected to do better. Its recommendation is to curate a minimal viable set of tools with no overlapping functionality.
Second, a finite attention budget. Context is a finite resource with diminishing marginal returns. Every token — including descriptions of tools the agent never calls — depletes part of the model's attention budget, and recall degrades as context grows (context rot). A large catalogue means every step carries irrelevant tool descriptions, which is exactly what drives up both token count and latency.
Machine-Generated Context Files Can Be Worse Than None
The most counter-intuitive finding comes from the ETH Zurich study cited by the survey (138 real-world Python tasks). According to the survey, machine-generated context files lowered the success rate compared with giving the agent nothing at all, while raising inference cost by over 20%. Human-written files gained only about 4%, and in both cases the agent spent 14–22% more reasoning tokens.
The survey also notes that 57% of root instruction files in public repositories exceed 100 lines (median 123), while OpenAI reportedly cut its own file to about 100 lines acting as a table of contents. The reasons OpenAI gave, as quoted in the survey, are easy to recognise: when everything is "important", nothing is — and a large file quickly rots into a graveyard of stale rules.
What to Cut First
| Target | Symptom | Action |
|---|---|---|
| Redundant tools | Two tools with similar functions, tools rarely called | Merge into broader tools, delete the unused ones |
| Verbose system prompts | Long rule lists, hardcoded logic for edge cases | Write at the right altitude, swap rule lists for a few canonical examples |
| Stale instruction files | Rules for old model failures, root file over 100 lines | Turn the root file into an index, delete rules whose failure no longer occurs |
| Extra agent layers | Reviewers, long handoff chains | Ablate them one at a time, keep only those that prove their worth |
The point about stale rules matters. As quoted in the survey, Anthropic wrote in the context of Opus 4.5 that the context resets it had built to compensate for earlier model weaknesses had become "dead weight" in the harness. Most controls exist to patch a past model failure; once the model stops failing there, the control is pure cost.
Subtraction doesn't mean throwing away structure you actually need. In its post on harnesses for long-running agents, Anthropic still uses a feature list file, a progress file, git and an init.sh script — but each exists because it addresses an observed failure mode, such as the agent declaring the project finished too early or wasting time working out how to run the app.
A Practical Subtraction Protocol
- Measure a baseline. Build an evaluation set that reflects your production workload. Record three numbers: success rate, tokens per task and latency.
- Inventory the layers. List every tool, system prompt section, instruction file and extra agent. For each, note which incident originally justified it.
- Remove exactly one layer. Don't remove several at once, or you can't attribute the effect.
- Re-measure on the same task set. If success holds or rises while cost falls, the layer wasn't earning its place.
- Restore only on a real regression, and give every control you keep an expiry condition — record the incident behind it so you know when it can go.
- Repeat. Add a new tool or rule only after an observed agent failure, not on assumption.
Conclusion
The evidence gathered in the Marmelab survey has limits: the Vercel figures are unverified, the reviewer ablation rests on a single paper, and the ETH Zurich result comes from one benchmark. But the direction is consistent across independent teams, and it lines up with Anthropic's context engineering principles. If your agent is unreliable, before you add one more thing, measure what happens when you take one away.