Deep dive

Agents vs. Workflows

How AI agents actually work in 2026: what an agent is made of, when a simple workflow beats one, why the harness matters as much as the model, how subagents and MCP fit in, and what goes wrong.

From the AI Field Guide

Download the PDF (5 pages) ↓
Part of the field guideAI in 2026: A Field Guide← Back to the guide

Agents vs. workflows

An agent is a model that works toward a goal over many steps, using tools, instead of answering once. Agents are where most AI investment is heading, and where most of the new risks come from.

Anatomy of an agent

The patterns

Anthropic's widely cited framework (December 2024) separates workflows, where developers design fixed steps, from agents, where the model decides the steps itself. Its advice: start with the simplest pattern that works. Most production systems are workflows.

Pattern How it works Finance example
Prompt chaining Fixed steps, each feeding the next, with checks between them Extract figures from a filing, then check them, then draft the summary
Routing Classify the request, then send it to the right prompt or model Simple formatting to a cheap model, reconciliations to a top one
Parallelization Split work into independent pieces, or run the same task several times and compare Review 20 contracts at once; have three passes vote on a risky number
Orchestrator-workers A lead model breaks the job down at runtime and hands pieces to worker models Due diligence: one worker per data-room folder
Evaluator-optimizer One model drafts, another critiques, repeat until it passes Draft a memo, check every number against sources, revise
Autonomous agent The model plans and acts on its own until done "Build the comps table and update the model"

Which approach to use

  1. One model call if the task fits in one answer.
  2. A workflow if the steps are known in advance (most business processes).
  3. A single agent if the steps depend on what it finds along the way.
  4. Multiple agents only for broad, parallel, high-value work where the extra cost pays off.

Harness engineering

If an agent is a model plus a harness, the harness is the part you control. Harness engineering is the work of building it well, and it's the big agent idea of 2026: the third phase after prompt engineering (2022 to 2023) and context engineering (2025).

Agent equals model plus harness, with five harness layers
Tap to enlarge · © 2026 Deven Panchal

Why it matters for business: if the harness drives this much of the result, it's where an agent company's moat lives. The model underneath can be swapped as prices and quality change (routing each task to the best model); the harness, built from thousands of fixed mistakes, can't be copied overnight.

Subagents and multi-agent systems

Subagents: how delegation works

A subagent isn't a different kind of model. It's a fresh run of a model with its own context window, its own instructions, and often a narrower set of tools. The main agent hands it a task, it works alone, and only its final report comes back (Claude Code docs).

Property What it means Why it matters
Fresh context Starts blank and doesn't see the main conversation It must be briefed fully, like a new contractor
Only the report returns 50,000 tokens of searching and file reading come back as a one-page summary Keeps the main agent's context clean and focused
Narrow tools A reviewer can be read-only; a researcher can search but not edit Limits the damage a mistake or a prompt injection can do
Its own model Easy subtasks can run on a cheaper, faster model Cuts cost on high-volume work
Parallel runs Several subagents can work at once Turns hours of sequential research into minutes

Good fits: research across many independent sources, searching a large codebase or data room, and checking finished work with fresh eyes, since a subagent that didn't do the work isn't grading itself. Poor fits: tightly connected tasks where each step depends on the last (most code edits), work where every agent needs the same shared context, and small jobs where briefing costs more than doing.

Briefing is the skill. Anthropic found that vague hand-offs led subagents to duplicate work or leave gaps. Each one needs an objective, an output format, guidance on which tools and sources to use, and clear boundaries (Anthropic). Tokens are also the main driver of quality: on Anthropic's browsing benchmark, how many tokens the system used explained about 80% of the difference in performance, which is why subagents help and why they're expensive.

How the tools expose them:

MCP: how agents connect to tools

MCP (Model Context Protocol) is an open standard that lets any AI agent plug into outside tools and data the same way.

MCP connects the agent to tools
The connectors stay the same when the model underneath changes, so switching models doesn't mean rebuilding integrations. Tap to enlarge · © 2026 Deven Panchal

What goes wrong

When agents get out: sandbox escapes

Agents are tested inside sandboxes, isolated computers with limited access to the outside world. In 2026, two frontier labs reported agents breaking out.

Why it happened: this was reward hacking in the real world. Trained to pass a test, the agents found the shortest path to the answer, including attacking another company. It's the classic reward-hacking failure from reinforcement learning, with real consequences.

Common failures

Failure What it looks like Common fix
Compounding errors A small early mistake snowballs over dozens of steps Checkpoints, verification steps, shorter tasks
Runaway cost Agents loop or spawn subagents and burn tokens Budgets, step limits, routing to cheaper models
Coordination failures Sub-agents duplicate work or contradict each other Clear task boundaries from the orchestrator
Prompt injection Hidden instructions in a document hijack the agent Least privilege, approvals, separating data from instructions
Goal over-pursuit The agent games its objective or crosses lines to hit it Sandboxes without internet, monitoring, kill switches
Quiet failure The agent reports success when it didn't succeed Independent checks of the end result, logs
Part of the field guideAI in 2026: A Field Guide← Back to the guide