"Do you need an agent at all? Choosing the simplest AI architecture that works"
Everyone will tell you the answer is an agent. But an agent is the most expensive, slowest and least predictable point on a ladder with four cheaper rungs below it, and even Anthropic's own guidance to builders says to start simple. Here is the ladder, simplest first, and how to know when you actually need to climb.

If you are deciding what to build with LLMs right now, someone has almost certainly told you the answer is an agent. The conference talks are about agents, the frameworks are about agents, and every vendor will happily sell you one. But "agent" is not a synonym for "AI system". It is one specific architecture, a model with tools, deciding its own next step in a loop, and it sits at the top of a ladder with four cheaper, faster, more predictable rungs below it. The most common mistake I see buyers make is starting at the top.
This is not a contrarian position. Anthropic's guidance to builders, the essay Building Effective Agents (https://www.anthropic.com/research/building-effective-agents), draws a sharp line between workflows, LLMs orchestrated through predefined code paths, and agents, where the model directs its own process. Its advice is blunt: find the simplest solution possible, and add complexity only when it demonstrably improves outcomes. The ladder below is my working version of that advice, walked rung by rung, because each rung solves a real class of problem and each rung up buys flexibility at the price of cost, latency and new failure modes.
Rung one is a single prompt call. One request in, one response out. This is the right architecture for classification, summarising, rewriting, routing and sentiment, anywhere the task is "transform this text into that text". It is cheap, fast, easy to test, and it fails in ways you can enumerate. A remarkable amount of business value lives on this rung, and it gets skipped mainly because it does not sound impressive.

Rung two is structured extraction: a prompt plus schema validation. This is the right architecture for turning messy text into data, invoices into line items, emails into CRM fields, CVs into structured profiles. The model proposes JSON; a schema library such as Pydantic or Zod rejects anything malformed; a bounded re-ask gives the model one chance to correct itself before a human sees it. The major providers now offer structured-output modes that guarantee schema-conforming JSON, but well-formed is not the same as correct, the validation and review layer is still yours to design. Most "AI that reads documents" projects belong here. My public repo, github.com/afareed007/docextract, is this rung built out properly, validation, per-field confidence, a human-review gate, and an eval harness that fails CI on regression.
Rung three is RAG: retrieval plus a prompt. This is the right architecture when answers must come from your documents, policies, contracts, product manuals, and a plausible-sounding invention is unacceptable. Be warned that the hard engineering here is retrieval quality, not the model: chunking, indexing and knowing when to say "I don't know" will consume most of your effort.
Rung four is a workflow with LLM steps: deterministic orchestration, n8n, or plain code, where the model fills specific slots inside a path you designed. Receive the email, classify it, extract the fields, look up the customer, draft a reply, queue it for approval. The control flow is yours; the model only makes bounded decisions inside steps you can inspect. In my experience this rung covers the large majority of business automation, and it is where I run my own operations, LLM automations that process incoming email and documents inside workflows whose branches I wrote down and can reason about.
Rung five is the agent: a model with tools and a loop, choosing its own path at runtime. This is the right architecture only when the path genuinely cannot be enumerated in advance, open-ended research, exploratory debugging, tasks where the branching depends on what each step uncovers. The test I use is simple: if you can draw the flowchart, you do not need an agent, you need the flowchart, with LLM calls in some of the boxes.
The reason to be strict about this is that every rung up adds cost, latency and failure modes. A single prompt call fails in one way. An agent fails in ways you have not imagined yet: it loops, it calls the wrong tool with confident arguments, it skips a step and produces something plausible enough to pass a glance. Anthropic's essay names the risk precisely, the autonomous nature of agents means higher costs and the potential for compounding errors. Testing gets harder, observability gets harder, and the bill stops being predictable. None of that is a reason never to build agents, I build them, but it is a reason to climb only when the rung below has demonstrably failed, with evidence, not vibes.
An honest confession: clients sometimes come to me asking for an agent and leave with a workflow. One conversation about what the system actually needs to do usually reveals that the "open-ended" task has five branches, all known in advance, at which point rung four does the job at a fraction of the cost, with failure modes you can list. That gap matters most to the smaller organisations I work with, where the difference between rung four and rung five can be the difference between a system they can afford to run and one they cannot. Nobody has ever come back disappointed that their system was too predictable.
This is exactly the work I do, matching the architecture to the problem before any code gets written, then building it. If you are deciding what to build, a one-hour conversation is usually enough to pick the right architecture and save months of building the wrong one, get in touch via the contact form.
Senior engineering roles — or production AI consulting?
I'm open to senior AI and software engineering roles and to selective consulting on agents, RAG, and LLM automation in production. If this post resonates — as a hiring manager or as someone shipping similar work — get in touch.
Get in touch