4 in 10 AI agent projects are expected to fail by 2027
My bet for 2027: AI agent projects will stall on setup, not intelligence. Here is the maths behind it, what MCP fixes, and the guardrails that help.

On this page
- Why do ten steps turn 85% into 20%?
- Why do so many AI agent projects stall?
- What is MCP, and what does it fix?
- What is an AI agent harness?
- How do teams of AI agents work, and how do they break?
- What guardrails does an AI agent need?
- Where are AI agents heading in 2027?
- Verdict
- What this cannot tell you
- Frequently asked questions
- What to do next
- Sources
My bet for 2027: AI agent projects stall on setup, not intelligence. The maths behind it, what MCP fixes and the guardrails that help.
Two weeks ago I told you how my agents broke my website and I only noticed two hours later. What I did not tell you is the maths behind it, and why it gets worse the longer a job runs.
Let's fix this. Say an AI agent gets each step right 85 times out of 100, which is fine for a single answer. Now give it a job with ten steps.
Consequently, it finishes the whole job correctly about 20 times out of 100. Obviously, it depends on which step the mistake happens. I know this pattern from my own claims automation work, where one early mistake can turn into ten later ones. More on that in the first section.
Honest upfront: this is an opinion piece: where I think AI agents are heading in 2027. The facts I lean on come from a few published studies, and I say so each time. I explain them, I have not tested them.
Why do ten steps turn 85% into 20%?
Picture a recipe with ten steps, where each step has a 15% chance of going wrong. Most dinners would be ruined. An AI agent works the same way, because each step obviously builds on the one before.
The maths is just multiplication. Chance of finishing the whole job = the chance of getting one step right, multiplied by itself once per step. For 85% and ten steps, that is 0.85 × 0.85 and so on, ten times, which gives about 0.197, or 19.7%.
What happens when every step has the same chance of being right
| Chance of getting each step right | 3 steps | 5 steps | 10 steps |
|---|---|---|---|
| 99% | 97.0% | 95.1% | 90.4% |
| 95% | 85.7% | 77.4% | 59.9% |
| 90% | 72.9% | 59.0% | 34.9% |
| 85% | 61.4% | 44.4% | 19.7% |
This is illustrative maths, not a measurement of any product. Real agents are not that tidy, but the direction holds.
The fix is boring, and you already know it from last time. Check after every step, not only at the end. That is the "Measurable" letter in SMART, applied to each step, plus an exit gate in front of anything you can't undo.
Under the hood: why a check helps so much. A check does not make the AI smarter. It catches the wrong step before the next step builds on it, so the error does not multiply. That is why the 99% row in the table needs a real test after each step, such as "does this number match the source?" and not just "does this look right?".
Fix the front of the process first
The table treats every step the same. In real work they are not equal, and I know this from my previous work in claims automation. A customer reports damage, and the insurer decides whether and what to pay, in a line of steps.
The first steps are the coverage checks. The formal check asks whether the policy is valid for this person and this date. The material check asks whether it covers this damage.
A mistake there is not one mistake: without guardrails and a clear exit gate (a point where the agent stops and hands over to a person), it can become ten more further down the line, because every later step builds on it. A mistake near the end only spoils the end, so the later a mistake happens, the less damage it can do.
So I would not spread the effort evenly:
- First, the coverage checks. If they are right, more claims enter the process in a clean state, and more of them can run all the way through on their own and still be right.
- Then the steps in the middle, one at a time, each with a check and an exit gate to a person.
- Last, the payment. You do not have to automate it at all. If the steps before it don't work well, nobody will let the money flow on its own, and they are right not to.
That is the same maths as the table, with one correction: put your first and strictest check at the front.
Why do so many AI agent projects stall?
One analyst firm, Gartner, expects over 40% of agentic AI projects to be cancelled by 2027. Nobody can count that yet, so take it as a forecast. My own bet is that many projects will stall, and the AI itself will rarely be the reason.
Three causes, in my view:
- Agentic theater: an agent that looks impressive in the demo, then runs on old systems with nobody watching it live. Tokens (the unit AI is billed in) burn, and wrong things get done.
- The coordination tax: the agent drafts the reply, then four people still sign it off. I wrote about this in part one, and it is the same loop as micromanaging.
- No shared context: the agent doesn't know your business, so you re-explain it in every chat.
That last one needs a better explanation. Context is everything a new colleague would need to know about your business: your price list, your tone of voice, past emails, how you do things. If you paste it into every chat, you are running a first-day onboarding every single morning.
The fix is to keep that material in one place the agent can read, such as Notion, Google Drive or Obsidian, or whatever works for you and can be connected to Claude. You write it down once, connect the tool, and the agent looks things up itself. That connection is what MCP is for, which is the next section.
What is MCP, and what does it fix?
Until recently, every AI app needed its own custom connection to every tool: your calendar, your files, your database. With many models and many tools, that is a lot of cables. This is the problem Anthropic's Model Context Protocol (MCP) was built to fix.
Picture: MCP is a common plug, like USB-C. A tool offers one MCP connection, and any AI app that speaks MCP can use it.
Under the hood: the three parts of MCP. The host is the app you use, such as Claude Desktop or an editor like VS Code. The client is the translator inside it. The server is a small adapter that makes one tool available. A server can offer three things: resources (data to read, no side effects), tools (actions that change something, like writing to a database) and prompts (reusable templates). Locally they talk through standard input and output, remotely over HTTP.
Prompts being on that list is a good reminder: prompt engineering is old news as the main skill, but we still need prompts, and good, detailed ones. If you have a prompt worth reusing in different situations, save it as a template with variables, for example in a tool like Parampt. Then you never wonder where you put it.
Plain MCP has a weak spot, and you will recognise it from my micromanaging boss story. The AI model sits in the middle and every single step goes through it, like a boss who has to hear about everything first. It costs time and money, and the longer the job, the more the model forgets the early rules.
Context-Aware MCP (CA-MCP) is a research design that changes the setup. The central model writes the plan and the rules onto a shared whiteboard at the start, which the paper calls a Shared Context Store. The tools read the board, do their parts, write their results back, and the model comes back only at the end to write the summary, so it is called twice instead of after every step.
The authors tested it on a trip-planning benchmark with 500 tasks. Average run time fell from 41.99 to 13.52 seconds, central model calls from 5 to 2, and completeness of the plan rose from 0.764 to 1.000. A second test, on wedding logistics, went from 8.52 to 2.26 seconds.
To be fair, this is a research result on benchmarks, not something I have tested or a switch you flip today. But it points the same way as everything else here: a boss who approves every step is the slowest part of the system.
What is an AI agent harness?
The harness is everything around the AI model: the instructions, the tools it can use, its memory, how many steps it may take, and how it hands work to other agents. Same model, different harness. Same employee, different desk, checklist and manager.
On one puzzle benchmark (ARC-AGI), improving only the harness around the same model reportedly lifted success from about 30% to over 95%. That is one benchmark, so treat it as a sign of how much the setup matters, not a promise.
There are two kinds. A fixed harness is written by a person and stays as written. A self-improving one tries many versions of its own instructions, scores them on test cases, keeps the best and repeats.
This is the rulebook from part one, with the rulebook-writing automated. For most of us the fixed kind, plus a rulebook you update by hand, is plenty.
Under the hood: how a self-improving harness works. Tools like DSPy treat the instructions as something to optimise. They generate candidate versions, score each one on a set of checked examples, mutate the best ones and keep the winner. It is a search, a bit like breeding, because text can't be trained the way a neural network is. You still need good examples and a clear score. Without them it optimises the wrong thing very efficiently.
How do teams of AI agents work, and how do they break?
When a job is too big for one agent, companies use a supervisor and workers. The supervisor is the team lead. It hands tasks to specialists such as a planner, a researcher, a coder, a tester and a reviewer, and it checks what comes back.
It breaks in three ways:
- Loops: the lead keeps passing the same job back and forth. The fix is a hard cap (typically 10 to 20 rounds) and a rule against sending the same worker the job twice in a row.
- Quitting early: the lead says "done" without a real approval. The fix is a flag that must say APPROVED before the job can finish.
- The bottleneck: if the job always runs in the same order, a lead that decides every step just adds a cost after each one. Use a fixed order instead. It is the no-micromanager version.
Which tool runs the team?
| Framework | Think of it as | Best when |
|---|---|---|
| LangGraph | A flowchart with save points | The job is complex or regulated, and a human must be able to pause and approve |
| CrewAI | A team with job titles | You want a fast start with role-based teams, and fixed steps where needed (its "Flows") |
| Microsoft Agent Framework | The Microsoft-backed successor to AutoGen | You live in the Microsoft world and want built-in monitoring and MCP support |
If you run a small business, one agent with a good brief beats a team of five. Start there.
What guardrails does an AI agent need?
You can't rely on the instructions alone. They share the same space as outside text, like an email the agent reads, and text like that can override them. So companies add checks outside the model.
Think of an office building:
- Layer 1, reception: cleans up the incoming text before the AI sees it (input sanitisation).
- Layer 2, security guard: a second, specialised AI reads the input for tricks (injection detection).
- Layer 3, house rules: what the agent may do, which topics are off limits, and what needs a human. A refund above 100€ gets rejected. This is the Authority line from part one, enforced by software.
- Layer 4, outgoing mail check: looks at the answer before it leaves, hides personal data and checks claims against the source (output filtering).
- Layer 5, the logbook: records everything, for audits and for working out what went wrong (compliance logging).
Why layers? In a 2025 study of six guardrail systems, hiding instructions inside emoji characters beat the prompt-injection detectors every time. Another trick, hiding text in invisible Unicode tags, got through about 90% of the time on average, so cheap filters can be fooled by text you can't see.
Security people call the root problem "excessive agency": an agent that is allowed to do more than it needs. It is the Authority line again. Give it the least it needs, and gate the rest.
Under the hood: what the layers cost in speed. Each layer adds a little delay: about 1 to 5 milliseconds for cleaning, 30 to 80 for the guard AI, 50 to 120 for the rules, 45 to 120 for the output check, and 5 to 20 for the logbook in the background. Run one after another, that is 130 to 325 ms. Run the guard alongside the main model and stream the output check, and the delay you feel drops to roughly 40 to 80 ms. Tools people use: Llama Guard 3 and ShieldLM (the guard AI), NeMo Guardrails and Guardrails AI (the rules).
Where are AI agents heading in 2027?
Here is my bet. In 2027 the skill is no longer writing clever prompts. It is writing the brief, the finish line and the limits, knowing which step to fix first and keeping your context where the agent can read it.
The people who do that will let their agents run. The people who don't will check every line, which is micromanaging with extra steps. I also think teams of agents will arrive later than the hype says, because most of us need one agent that does one job well first.
A 12-month plan you can follow
- Months 1 to 3, tidy up: keep your context in one place the agent can read, like Notion, Google Drive or Obsidian, connected to Claude. Connect your tools through MCP. Save the prompts worth repeating: prompt engineering is old news, but you still need good, detailed prompts. If one is worth reusing in different situations, store it as a template with variables in a tool like Parampt.
- Months 4 to 6, add rules: write SMART briefs with a measurable finish line, and start with the first step of the process, where a mistake spreads furthest. Keep your rulebooks in version control. Add guardrails, and a human yes before anything you can't undo.
- Months 7 to 12, grow: only now add teams of agents. Use cheaper models for routine work, caching, and overnight batches. Put a check at every step, and automate the last, riskiest step (a payment, for example) only once everything before it has earned trust.
If you run a small business, months 1 to 6 are the whole plan.
Verdict
Verdict: Go slow to go fast. Fix the first step first, check every step, gate every risk and add a team of agents last. Skip the guardrail layers if you only chat with Claude and never let an agent act for you.
What this cannot tell you
- I'm not a developer. This is my opinion on where things are heading, not a prediction I can prove. The few numbers I use come from studies and one analyst forecast, and your business is not a benchmark.
- The claims example comes from my own work. Your process will have different steps, so use it to find your own first step, not as a rule.
- Maths on a page is tidier than real life. Treat the table as a way to think, not a prediction.
Frequently asked questions
Why do AI agent projects fail?
In my view, mostly because of the setup, not the AI: agents that only look good in a demo, people who still sign off every step, and agents that don't know the business. Gartner forecasts that over 40% of agentic AI projects will be cancelled by the end of 2027.
Why does an AI agent get worse on long jobs?
Every step builds on the one before, so the chances multiply. At 85% per step, a ten-step job ends correctly about 20 times out of 100. A check after every step stops one mistake from turning into many.
What is MCP in AI?
The Model Context Protocol (MCP) is a common plug between AI apps and tools, like USB-C. A tool offers one MCP connection, and any AI app that speaks MCP can use it to read data, take actions or load prompt templates.
What is an AI agent harness?
The harness is everything around the AI model: its instructions, tools, memory, step limits and handovers. The same model can score very differently with a better harness, so the setup matters as much as the model.
Does a small business need a team of AI agents?
Usually not at first. One agent with a good brief, a measurable finish line and an exit gate before anything you can't undo beats a team of five. Add teams only once single agents have earned trust.
What to do next
Count the steps in the longest job you give an AI, then put your first check on the step where a mistake would spread furthest.
PS: Part one comes with the free Guardrails Starter Pack: a role brief template, an exit-gate checklist and five agent skills.
Keep going: What is an AI agent? · Part one: why micromanaging your AI fails · What is a company brain?
Sources
All checked on 27 November 2026.
- Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027, Gartner press release, 25 June 2025
- Enhancing Model Context Protocol (MCP) with Context-Aware Server Collaboration, Jayanti and Han, arXiv, January 2026 (TravelPlanner and wedding logistics results)
- Prime Agent: A Self-Improving RLM Harness, Prime Intellect, arXiv, August 2026 (ARC-AGI-3, about 30% to 95.5%)
- Bypassing LLM Guardrails: An Empirical Analysis of Evasion Attacks against Prompt Injection and Jailbreak Detection Systems, Hackett et al., arXiv, April 2025
- LLM06:2025 Excessive Agency, OWASP Top 10 for LLM Applications
This article first appeared in my Substack newsletter, where I send one practical AI article every week.
Want this built for your business?
We audit one workflow, build the system on your tools and hand it over with documentation.


