Why AI Agents Fail in Production (and How to Fix It)
Most AI agents never make it from the demo to the daily workflow, and the ones that do often get quietly switched off within a quarter. Having rescued a fair number of them, we can say the causes are boringly consistent — and none of them are "the model is not smart enough".
- Published
The seven failure modes
| Failure | What it looks like | Root cause | Fix |
|---|---|---|---|
| Context rot | Great for 10 steps, confused by step 30 | Nothing manages what stays in context | Compaction, clearing stale tool results, memory |
| Tool misuse | Wrong tool, wrong arguments, invented tools | Vague descriptions, loose schemas | Task-shaped tools, strict schemas, examples |
| No evals | Every prompt change breaks something else | Quality measured by vibes | 150+ real scenarios in CI |
| Prompt-only guardrails | Agent does the thing it was told not to | Rules in the prompt, not the harness | Enforceable permissions and approval gates |
| Latency | Users stop waiting | Serial tool calls, wrong model per step | Parallel calls, cheaper models for simple steps |
| Cost surprise | Bill triples in month two | No caching, no per-task budget | Prompt caching, effort tuning, budgets |
| No owner | Slowly degrades, nobody notices | Treated as a project, not a product | Named owner, weekly review of failures |
The one that hides behind the others
No evals. Every other failure is survivable if you can see it. Without an eval suite you find out about context rot from a customer, about tool misuse from a refund, about cost from finance. With one, you find out in CI, before deploy, with the failing scenario in front of you. If you fix one thing on this list, fix that.
How we rescue a failing agent
- Week 1: instrument it. Traces on every run, a failure taxonomy, cost per task. Usually this alone explains 70% of the complaints.
- Week 2: build the eval set from the traces — the real failures become the regression suite.
- Weeks 3–4: fix in order of measured impact. Tool descriptions and permissions first; they are cheap and move the number most.
- Handover: the suite runs in your CI, an owner is named, and the weekly failure review is on someone’s calendar.
Frequently asked questions
Should we switch models?
Rarely the first fix. Nine times out of ten the harness is the problem. Swap the model only after evals exist to measure the swap.
Can a failing agent be saved or should we rebuild?
Usually saved. Rebuilds without evals fail the same way. Instrument, measure, fix — and rebuild only if the architecture itself is wrong.
How long does a rescue take?
Four to six weeks to a measurably reliable agent, in most cases.