I choose agent and workflow architectures to fit the task rather than applying one design everywhere. Across my guidance, the common principle is to start with the simplest architecture that works, adding autonomy and structure only when the task calls for them.
I described 5 patterns showing up in production in 2026, and argued that a support copilot and a claims-approval system shouldn't share one architecture.
- I use a Tool-Using Agent (ReAct) for quick, single-task work: one agent follows a think → act → observe loop and calls tools when it needs them. The post compares it to a handyman with a toolbox and recommends it for copilots, support bots, and dev assistants.
- I use a Router / Dispatcher when requests need triage or routing: Classifies the request, then hands it to the right specialist agent. The post compares it to a hospital triage desk and recommends it for triage, multi-domain assistants, and service desks.
- I use a Planner + Executor for multi-step goals: a planner breaks the goal into a task list, and an executor works through it step by step. The post compares it to a head chef writing a recipe while line cooks execute it, and recommends it for research, report generation, and onboarding.
- I use a Supervisor Multi-Agent Team when work needs an expert team: A coordinator loops work through research, analysis, writing and QA specialists. The post compares it to a newsroom editor with reporters and recommends it for deep analysis and code, docs, and review pipelines.
- I use a Workflow + Human-in-the-Loop for regulated work or required sign-off: Deterministic steps with saved state and retries, plus a hard stop until a human approves. The post compares it to a bank loan waiting for a signature and recommends it for claims, procurement, compliance, and SDLC review.
I urged readers to pick the right architecture before shipping and asked, “Which one are you building right now?”
I later described 6 agent patterns running in production in 2026, adding Reflection (Self-Critique / Evaluator-Optimizer) to the architecture choices.
- I use Reflection when quality matters most: A generator drafts, an evaluator scores it and writes feedback, and the loop revises until it clears the bar. The post compares this to a writer and an editor and recommends it for code generation, content, and analysis.
I recommend: Start with the simplest pattern that works, and add structure only when you hit a real limit.
I encourage readers: Repost if this saves someone on your team a rewrite.
I frame the first decision question as: Is it deterministic and repeatable? If yes, choose an API call; if the steps are known but variable, choose a workflow with an LLM; if the steps are unknown in advance, choose an agent.
- I give CSV → JSON, invoice field extraction, log parsing as examples of deterministic API-call tasks; the API is a function f(x) → y with the same output for the same input.
- I describe a workflow with an LLM as a DAG with one LLM step, naming Airflow, Step Functions, and Temporal as examples; email triage, ticket routing, RAG with citations are example tasks.
- I describe an agent as a plan → act → observe loop that continues until done, with the model choosing the next tool at runtime; examples include incident root cause, multi-source research, codebase refactoring.
- I use three over-engineering checks: Same steps every run? points to a workflow; “Same tool every time?” points to an API wrapper; and “Fits in a runbook?” calls for a workflow rather than an agent.
I warn that autonomy costs more latency and tokens and makes traces harder; I give a rule-of-thumb reliability drop from ~99.9% to 95–99%.
I estimate that ~60% of tasks are API calls, ~30% workflows, ~10% agents, presenting these as a rule of thumb.
I say to skip an agent when output must be deterministic, rules are stable, or an audit trail is needed. My governing principle is: “Use the simplest architecture that works. Complexity is the enemy of reliability.”
I ask readers: Which question does your current "agent" fail?
I argue that most AI agents never reach production because the build around the model is what breaks, even when the model is fine, and give an approach in 8 steps.
- I define an agent’s job through its goal, inputs, output schema, constraints, and success metrics you can measure.
- I choose a pattern by starting simply and progressing from single agent → workflow → router → multi-agent.
- I route models by intent, complexity and cost, choosing strong, balanced, or fast and cheap models and providing a fallback.
- I use RAG for facts, tools as hands, memory for state. Each tool gets a contract and a permission.
- I run execution as receive → reason → act → verify → update, and cap steps, tokens, and time.
- I validate inputs, block prompt injection, redact PII, and apply least privilege for every tool as guardrails and identity controls.
- I evaluate with test sets offline, end-to-end tracing online, then harden the system.
- I deploy through dev → staging → prod, using SLAs, alerts, A/B tests, and one-click rollback.
Before shipping, I check six boxes: clear scope, bounded tools, structured outputs, guardrails, evaluation, and full tracing.
My closing advice is: Build small. Measure everything. Ship safely. Improve continuously. I ask which step teams skip most often.
I argue that a tool-calling LLM is not an agent by itself; the harness around it makes it an agent.
I describe the agent harness as 8 parts, grouped by the job they do.
I say the core tool-call loop fits in 6 lines.
I rebuild the prompt every turn from the system prompt, tool schemas, memory, messages, and results; near the limit, old turns get compacted into a summary.
I define a tool by its name, description, and JSON schema; the harness validates the model's JSON call before running it.
My permissions model lets reads run, requires approval for risky writes, and blocks dangerous commands.
I use to-do and memory files on disk to persist information across sessions, even though context resets every session.
I delegate focused tasks to subagents with fresh context and have them return short summaries so the lead stays small.
I use hooks and tracing, checking outputs, capping steps and budget, and scoring every change on real tasks to keep an agent honest.
For the same task and model, I contrast a bare model that gives one reply with an agent that keeps looping until the job is done.
I summarize an agent as model + harness.
I recommend choosing the task shape before the framework, and shipping one model call when it is enough.
- I match patterns to task needs: Prompt Chaining for repeated steps; Routing for distinct request types; Parallelization for work that can run at once; ReAct for tool feedback; Planner-Executor for an upfront plan; Orchestrator-Workers for input-dependent subtasks; Evaluator-Optimizer for a clear quality bar; and Human-in-the-Loop for risky or irreversible work.
I distinguish routing, which picks one branch, from parallelization, which runs several; parallelization knows the split upfront, while orchestration decides it per request.
I distinguish ReAct, which chooses the next step, from a planner, which drafts steps and revises them.
I say a ReAct loop should exit on an answer, a step cap, or an error; without an exit, an agent loop is just an expensive while(true).
I say production needs the same six things whichever pattern is chosen: state, permissions, guardrails, evals, tracing, and budgets.
I give a combined design example: a router hands off to a ReAct loop that pauses for approval before issuing a refund.
I warn that agent memory can make an agent confidently wrong when it relies on outdated information.
In my refund example, order #4821 was bought 12 days ago, but working memory alone does not explain what “last time” means.
In the example, episodic memory recalls a previous card refund within 90 days, but the policy changed on 1 October, so that recollection is wrong.
In the example, the 90-day rule is superseded by a 30-day rule; I keep the old fact with its dates and stop using it.
My example refund procedure is: check the window, get human approval, then refund through the Payments API.
I describe tiered memory as the architecture under the other four memory types, not a fifth type: promote task-relevant information into context and demote the rest.
I recommend verifying memories before writing them back: save “Refund #4821 completed” and block “Always approve refunds.”
- My suggested adoption order is working and episodic memory for continuity, semantic memory as soon as facts can change, procedural memory for repeatable reviewed workflows, and tiering when context cost starts to hurt; I recommend a write gate from day one.
Related: agent protocols and tool integration, production ai system design, ai quality cost and safety