Agentic AI: The Future of Autonomous Software, and Why Most Early Projects Will Fail

Nearly all the software built over the last thirty years shares one trait: it waits. It waits for someone to click, type or submit, and then it does exactly what it was told. Agentic AI breaks that pattern. You give the software a goal, and it works out the steps, calls the tools it needs, checks the outcome and tries again when something goes wrong.

I build with agent frameworks such as LangGraph and the Model Context Protocol in production work, and I hold two views that might sound contradictory. Agents are the most important change in how software works since the move to the cloud. And most agent projects started this year will not survive to see 2028.

The difference between answering and acting

A chatbot answers. An agent acts. In practice, an agent combines a language model that reasons, a set of tools it can use, such as APIs, databases or a browser, a loop in which it plans, acts and observes, some form of memory, and guardrails that limit what it may do.

That loop is what makes agents both powerful and difficult. A single call to a model has a bounded outcome. A process that runs fifteen or twenty steps, each depending on the one before, is a different kind of engineering problem altogether.

Forecasts on a remarkable scale

Analyst expectations are enormous. Gartner predicts that 40 percent of enterprise applications will include task-specific AI agents by the end of 2026, compared with less than 5 percent in 2025 [1]. It expects at least 15 percent of day-to-day work decisions to be made autonomously by agentic AI by 2028 [2], and agentic AI to account for roughly 30 percent of enterprise application software revenue by 2035, more than $450 billion [3].

The plumbing is standardising quickly too, which is usually a sign that a technology is leaving the experimental stage. In December 2025, Anthropic donated the Model Context Protocol to the newly formed Agentic AI Foundation under the Linux Foundation, co-founded with Block and OpenAI and backed by Google, Microsoft, AWS and others [4]. Google's Agent2Agent protocol passed 150 supporting organisations in its first year [5]. The two complement each other: MCP governs how an agent connects to tools and data, while A2A governs how agents communicate and coordinate with one another [5].

Forecasts of failure that deserve equal attention

The same analysts are blunt about the risks. Gartner expects more than 40 percent of agentic AI projects to be cancelled by the end of 2027, citing rising costs, unclear business value and weak risk controls [6]. It also warned of "agent washing", in which chatbots, assistants and RPA tools are rebranded as agents, and estimated that only about 130 of the thousands of vendors claiming agentic capabilities are genuine [6].

Both sets of predictions can be correct at once. The technology is powerful, and much of the industry is applying it carelessly.

The arithmetic that sinks pilots

The central engineering problem can be shown with a calculation any developer can do. Suppose each step in an agent's task succeeds 95 percent of the time, which sounds impressive. Over ten dependent steps, the probability of finishing correctly is 0.95 multiplied by itself ten times, or roughly 60 percent. Over twenty steps it drops to about 36 percent. Reliability does not accumulate along a chain; it erodes.

This explains a great many disappointing pilots. A three-step demonstration looks extraordinary. The fifteen-step production process, fed with messy data and full of edge cases, fails a third of the time, and the team often finds out from a customer rather than from its own monitoring.

How agents that last are built

The teams I have seen succeed tend to share a handful of habits.

They give a system the minimum autonomy the problem requires. If a process can be expressed as a fixed workflow with a model making decisions at defined points, they build it that way and keep open-ended planning for the parts that genuinely need it. A surprising number of tasks sold as agentic do not need an agent at all [2].

They keep chains short and validate between stages, so that an error is caught at step three rather than discovered at step fifteen.

They treat tools as a security boundary. An agent can do only what its tools permit, so each one receives the narrowest permissions possible, read and write actions are separated, and anything irreversible, such as moving money, deleting records or emailing customers, waits for a human to approve it.

They evaluate constantly, maintaining a set of real tasks with known correct outcomes and running it after every change to a prompt, a model or a tool. Without that, a team is not engineering an agent so much as hoping it behaves.

They make every decision traceable, logging each step, tool call, input, output and cost so that any failure can be replayed and understood.

And they design for cost from the beginning, caching results, routing simple steps to smaller models and saving the largest ones for genuinely hard reasoning.

Where agents already earn their keep

The use cases that work today share a profile: high volume, clear criteria for success, and a safe route to a human when the agent is unsure. Support triage and resolution, document processing, internal IT operations, code assistance and research all fit. In each case the agent handles the routine majority and escalates the uncertain minority, which is a far more robust design than full autonomy.

Autonomy has to be earned

Agentic AI marks a real change in our relationship with software, from tools we operate to systems we supervise. Yet autonomy is not a feature to be switched on. It is a property a system earns through narrow scope, firm guardrails, rigorous evaluation and complete observability. Organisations that treat agents as serious distributed systems, rather than clever prompts, are the ones most likely to still be running them in 2028.


Usman Hafeez is a System Architect and Full-Stack Tech Lead. More of his work: usmanhafeez147.vercel.app

References

[1] Gartner, "Gartner Predicts 40% of Enterprise Apps Will Feature Task-Specific AI Agents by 2026, Up from Less Than 5% in 2025", August 2025. https://gartner.com/en/newsroom/press-releases/2025-08-26-gartner-predicts-40-percent-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-percent-in-2025

[2] The Nation Thailand, "Over 40% of agentic AI projects will be cancelled by end of 2027: Gartner", July 2025. https://www.nationthailand.com/business/tech/40052737

[3] CXOToday, coverage of Gartner's agentic AI revenue forecast. https://cxotoday.com/media-coverage/gartner-predicts-40-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-in-2025/

[4] O'Reilly Radar, "The interfaces are arriving". https://www.oreilly.com/radar/the-interfaces-are-arriving/

[5] Linux Foundation, "A2A Protocol Surpasses 150 Organizations", April 2026. https://linuxfoundation.org/press/a2a-protocol-surpasses-150-organizations-lands-in-major-cloud-platforms-and-sees-enterprise-production-use-in-first-year

[6] Gartner, "Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027", June 2025. https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027

Comments

Popular posts from this blog

From Connected to Intelligent: How AI Is Rewriting the Rules of IoT

What Should a New Computer Science Student Study When AI Can Write Code?

How to Measure Yourself for a Custom Dress Shirt: A Step-by-Step Guide