Skip to content
ML2
Multi-Step Agent SetupsUse casepatternsAnthropicarchitecture

Building effective agents: the patterns

Added Updated

Published Last verified Released

Our verdict

Still the clearest short read before you design an agent system. Its core advice: find the simplest solution, often a single well-prompted LLM call, and add steps only when they measurably help. The patterns hold up; the tooling list doesn't. Anthropic now notes at the top that much of the tooling has changed since December 2024 and points to its Managed Agents docs for its current approach.

Who it's for
Anyone designing agent systems
Leverage
Avoid over-engineered agents
Effort
Low
Date added

What the Building effective agents guide does

Building effective agents is an Anthropic engineering article by Erik S. and Barry Zhang, published 19 December 2024. It separates workflows, where code sets the path between LLM calls, from agents, where the model directs its own steps and tool use. It describes one building block (an LLM with retrieval, tools and memory), five workflow patterns and autonomous agents, each with when-to-use guidance and examples. Two appendices cover where agents already work (customer support and coding) and how to design tools a model can use reliably.

How builders use the Building effective agents guide

  • Map your problem to a pattern before you pick a framework, and try a single LLM call with retrieval and examples first.
  • Use routing to send easy questions to a small, cheap model and hard ones to a bigger model.
  • Use evaluator-optimizer for writing or code quality loops, but only when you can state clear evaluation criteria.
  • Review your tool definitions the way the article suggests: write them like docstrings for a junior developer and test how the model actually calls them.

The five workflow patterns, with the article's examples

PatternUse it whenExample from the article
Prompt chainingThe task splits cleanly into fixed stepsWrite an outline, check it against criteria, then write the document
RoutingInputs fall into distinct categoriesSend refunds, technical support and general questions to different prompts
ParallelizationSubtasks are independent, or you want several attemptsOne call answers while another screens for inappropriate content
Orchestrator-workersYou can't predict the subtasks in advanceCoding changes that touch an unknown number of files
Evaluator-optimizerFeedback measurably improves the outputLiterary translation with a critic model

Three principles the article ends on

  • Keep the agent's design simple.
  • Show the agent's planning steps so people can see what it's doing.
  • Put as much care into the agent-computer interface (tool docs and tests) as you would into a human interface. Anthropic says it spent more time on tools than on the prompt for its SWE-bench agent, for example by requiring absolute file paths.

The Building effective agents guide: limits and gotchas

  • It's an article, not code. The cookbook it links has sample implementations, but you still build everything.
  • The framework list is dated (it names the Claude Agent SDK, Strands Agents SDK by AWS, Rivet and Vellum), and Anthropic itself flags the tooling as changed.
  • It covers architecture, not production concerns like state, retries, evals or cost tracking in depth.
  • Model names in examples reflect when it was last edited, so check current models before copying the routing example.

The Building effective agents guide compared with other tools here

  • 12-Factor Agents: takes over where this stops: principles for running agents in production, such as owning your prompts, context and control flow.
  • OpenAI Agents SDK: a framework that implements routing and handoffs in code, if you want the patterns prebuilt.
  • Claude Agent SDK: Anthropic's own agent framework, named in the article; use it once you know a full agent is the right pattern.

When to pick the Building effective agents guide

  • Read this first if you're about to choose an agent framework, so you know which pattern you actually need.
  • Read 12-Factor Agents next if your agent is heading to production.
  • Skip straight to a framework's docs only if you already know you need an autonomous agent loop.

The Building effective agents guide questions

What is the difference between a workflow and an agent?

In a workflow, your code decides the sequence of LLM calls and tools. In an agent, the model decides its own steps and tool use as it goes.

Does Anthropic recommend using a framework?

It suggests starting with LLM APIs directly, since many patterns take a few lines of code, and making sure you understand what any framework does underneath.

Is the article still current?

The patterns are. Anthropic added a note that much of the tooling landscape has changed since December 2024 and links its Managed Agents documentation.

Related discoveries

See the newest picks →
  • ToolMulti-Step Agent Setups

    LangGraph

    Low-level framework for stateful, controllable agent workflows.

    Effort: High#Open source

  • ToolMulti-Step Agent Setups

    OpenAI Agents SDK

    A lightweight framework for multi-agent workflows with handoffs and guardrails.

    Effort: Medium#Open source

Get the best new A.I. picks in your inbox

The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.

More in Multi-Step Agent Setups →

Free. No spam. Unsubscribe anytime.