The learning path

Step 15 of 15 · Module 5: Agentic AI

Agentic AI · Intermediate

Should You Actually Build an Agent? A Decision Guide

7 min read Jul 2026

You now know what an agent is, how the tool loop works, and how MCP connects it to the world. The last and most valuable skill in this track is knowing when not to use any of it. Agents are slower, more expensive, and considerably harder to debug than the alternatives — so the bar for reaching for one should be real.

The four questions

Before building an agent, answer all four. If any answer is "no", drop back to a workflow or a single call.

  • Complexity — is the task genuinely hard to specify in advance? "Extract the invoice total from this PDF" has a known shape; write the workflow. "Figure out why this customer's order never shipped" depends on what you find at each step — that's agent territory.
  • Value — does the outcome justify higher cost and latency? An agent may make twenty model calls where a workflow makes two. For a task worth real money or hours of human time, that's trivially worth it. For something a user expects to be instant and cheap, it isn't.
  • Viability — is the model actually good at this? Agents amplify capability; they don't create it. If the model can't do the task reliably in one shot with the right context, looping won't rescue it — it will just fail more expensively.
  • Cost of error — can mistakes be caught and undone? This is the one people skip. Agents take actions you didn't explicitly authorize step-by-step. If a wrong action is cheap to catch and reverse (a draft, a test run, a proposed diff), the risk is manageable. If it sends money or deletes production data, you need approval gates before you need autonomy.

Check it against your own task

Complexity

Is the task genuinely hard to specify step-by-step in advance?

Value

Does the outcome justify higher cost and slower responses?

Viability

Can the model already do this reliably given the right context?

Cost of error

Can a wrong action be caught and reversed?

Reading your own answers

Two failure patterns show up constantly. The first is building an agent for a task that has a known fixed sequence — the result is a system that's less reliable than the ten lines of code it replaced, and nobody can explain why it occasionally does something strange.

The second is building an agent for a task the model can't do. If it can't write a correct SQL query for your schema in one attempt with good context, an agent that writes and reruns queries in a loop produces confident wrong answers instead of one honest failure.

What about multi-agent systems?

The same logic applies one level up, with the costs multiplied. Every sub-agent re-establishes its own context, explores on its own, and reports back — and then the coordinator has to read and reconcile those reports. That overhead is real.

It's worth paying when the work genuinely fans out across independent tracks: reviewing twelve files that don't depend on each other, or investigating several unrelated leads in parallel. It is not worth paying to split one modest task into pieces, and it is a poor fit for verification — checking work belongs in the main loop, where the full context already lives.

The honest answer

Most production AI features are not agents, and shouldn't be. They are a single well-designed call, or a short workflow with two or three steps. That isn't a lack of ambition — it's the correct engineering answer for tasks whose shape you already know.

Agents are a genuinely powerful tool for the specific class of problems that are open-ended, valuable, and recoverable. Knowing which problems those are is the difference between shipping something that works and shipping an impressive demo that quietly falls apart in production.

Quick knowledge check

1. Which criterion do teams most often skip when deciding to build an agent?

2. If a model cannot do a task reliably in a single well-contexted call, what does wrapping it in an agent do?

3. When are multiple sub-agents genuinely worth the overhead?

That's the end of the path

You've reached the final lesson. 14 earlier lessons are still unread if you want to fill the gaps.

Back to the path

Spot something wrong, outdated, or confusing?

Suggest an edit