Chapter 1. Agent architecture

Learning objectives

  • Explain the difference between workflows and agents, and identify where the two approaches mix within a single system.
  • Distinguish the application conditions and failure modes of prompt chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer.
  • Explain why multi-agent architectures increase costs, and evaluate adoption based on cost per successful task.
  • Choose appropriate connection methods among handoff and agent-as-tool, and between LLM orchestration and code orchestration.
  • Apply a decision process that starts from the simplest architecture and increases complexity only when justified by evidence.

Introduction

A team rebuilt their customer inquiry processing "with agents." It was an architecture where the model chose tools on its own and handed work off to different agents when necessary. The demo was impressive. However, within a month of operation, three complaints arose: processing paths varied every time even for identical questions, making issues irreproducible; responses became slow; and the bill was three times higher than expected. When they inspected the logs, most inquiries were routine requests whose processing sequence was always identical. In effect, for work that only required running on a fixed route, they had been calling a taxi and asking for directions every time.

This chapter covers how to avoid such mistakes. It distinguishes between workflows and agents, identifies tasks that require agents, and dissects five workflow patterns alongside the costs of autonomous and multi-agent systems. It then outlines methods for connecting agents and a decision process that starts from the simplest architecture, followed by an exploration of hybrid designs and correlated errors in Going deeper.

Key concepts

Workflows and agents

Anthropic's "Building effective agents" divides the two as follows: workflows are systems where LLMs and tools are orchestrated through predetermined code paths, while agents are systems where LLMs dynamically direct their own processes and tool usage. The same article notes that workflows offer predictability and consistency for well-defined tasks, whereas agents are better when flexibility and model-driven judgment are needed at scale.

If a workflow is a bus on a fixed route, an agent is a taxi that only hears the destination and chooses the route. Calling a taxi for work that has a fixed route only increases costs and makes the path unpredictable. Conversely, insisting on a bus for work where every alley has a different path prevents passengers from reaching their drop-off point.

This distinction is not a label attached to an entire system. Even within a single system, the entity determining the next action can differ at each step. For example, code determines inquiry classification and permission checks, while the model directs the investigation for only some of the classified inquiries. In design documents, one should write "who determines the next action at this step" rather than "this system is an agent."

Tasks that need agents

Agents are a choice to buy better task performance at the expense of latency and cost. Anthropic recommends finding the simplest solution first and increasing complexity only when necessary, noting that for many applications, optimizing a single LLM call with retrieval and examples is usually sufficient.

OpenAI's "A practical guide to building agents" lists three criteria for tasks considering agents.

Criterion Meaning Example from the guide
Complex judgment Requires nuanced judgment, exceptions, and context-dependent decisions Refund approvals in customer service
Hard-to-maintain rules Rules are too numerous and entangled, causing costs and errors whenever modified Partner security audits
Unstructured data dependence Natural language interpretation, extracting meaning from documents, and conversational interactions are central Home insurance claims processing

The guide adds that one should first verify whether these criteria are clearly met; otherwise, a deterministic solution may be sufficient. Being deterministic means that the same input always yields the same path and result. When rules are simple and stable, such as validating and uploading a file in a fixed format, ordinary code is cheaper and more accurate than an agent.

Augmented LLMs and the agent loop

The basic building blocks of all architectures are the same. Anthropic calls this an augmented LLM—an LLM equipped with extensions such as retrieval, tools, and memory. The OpenAI guide also describes an agent in terms of three elements: model, tools, and instructions. Tools are in turn divided into three types: data tools that fetch context and information, action tools that operate on external systems, and orchestration tools that call different agents as tools.

An agent runs these components in a loop. The model selects the next action, executes tools, and feeds the results back into the model. Anthropic explains that an agent must assess progress at each step by obtaining real-world results (in Anthropic's phrasing, "ground truth") from the environment, such as tool outputs or code execution results, and may pause to collect human feedback at checkpoints or blocking points. If the loop runs solely on the model's guesses rather than such real-world results, errors accumulate.

Prompt chaining and gates

Prompt chaining decomposes a task into fixed sub-steps and passes the output of a preceding call as the input to the next call. Programmatic checks, or gates, can be placed between steps. Anthropic's examples include writing marketing copy and translating it, or drafting an outline, verifying whether it meets criteria, and then writing the body text. It is used when a task can be cleanly divided into fixed steps.

When designing chaining, one first establishes the data contract between steps. This involves fixing in a schema what the preceding step passes and in what format, as well as what the succeeding step assumes.

  1. Define an output schema for each step (fields, units, allowed ranges).
  2. Programmatically validate schemas and business rules at gates.
  3. If a check fails, rerun only that step or escalate to a human.
  4. Sum step-by-step latencies to confirm they fall within the overall latency budget.

A classic failure mode of chaining is error propagation. If the first step misreads a unit, subsequent steps write plausible-sounding text using that wrong number. A gate is precisely the mechanism that cuts off this propagation. Furthermore, because latency accumulates as steps increase, one must evaluate whether the benefit of breaking down steps (focus per call) outweighs the cost of latency.

Routing

Routing classifies an input and directs it to specialized follow-up processing. It is used when distinct categories exist that are better handled separately. Anthropic cites examples such as categorizing customer inquiries by type, or sending easy questions to small, fast models and difficult questions to more capable models.

In router design, what is just as important as accuracy is the cost of misclassification. Routing a refund inquiry to general guidance by mistake incurs different damage than routing general guidance to refund processing. Therefore, the following must also be designed into a router:

Design element Description
Category definition Maintain only categories whose boundaries are obvious even to a human
Deferring judgment Route to 'Other' or human review when confidence is low
Asymmetric costs Adjust thresholds to avoid misrouting toward more damaging outcomes
Rerouting Establish procedures to transfer misassigned requests to another path

Classification itself can be performed using rules, small models, or LLM calls with structured outputs. If categories are stable, code or a small model is cheaper; if category boundaries depend on natural language nuances, LLM classification is better.

Parallelization: sectioning and voting

Parallelization has two variations. Sectioning runs independent subtasks concurrently, while voting runs the same task multiple times to gather multiple outputs. Anthropic cites as an example of sectioning a guardrail configuration where one model generates an answer while another model filters for inappropriate requests. For voting, it gives examples of having multiple prompts each search for code vulnerabilities, or evaluating content appropriateness using different thresholds. It is used to gain speed, or to achieve more reliable results through diverse perspectives and attempts.

When calculating the benefits of parallelization, look at the critical path. Total time is determined by the longest path plus the time to combine results. Even if ten workers are launched concurrently, the total time will not be shorter than the sum of the single slowest worker and the step that consolidates the results. Furthermore, concurrency may be constrained by external API rate limits, and one must decide in advance whether to use partial results or rerun the entire job if a single worker fails.

Voting increases costs proportionally to the number of calls. Restrict it to areas where judgment is ambiguous and the cost of a single error is high.

Orchestrator-workers

In orchestrator-workers, a central LLM dynamically divides a task, delegates to worker LLMs, and synthesizes the results. Although it looks similar to parallelization on the surface, there is a crucial difference: in parallelization, subtasks are determined at design time, whereas in orchestrator-workers, subtasks cannot be predicted before viewing the input. Anthropic's examples include coding tools that must modify multiple files and search tasks that scour multiple sources.

This pattern succeeds or fails on the delegation contract. Anthropic's article on research systems notes that each subagent needs a goal, an output format, instructions on tools and sources to use, and clear task boundaries. It also introduces a case where, due to ambiguous instructions, two out of three subagents redundantly investigated the exact same supply chain topic. Include all four of the following in delegation instructions without omission:

Goal: Investigate only domestic electric vehicle charging rate policy changes from 2024 to 2026.
Output format: A table with columns for Year, Policy Name, Changes, and Source URL, within 20 rows.
Tools and sources: Prioritize government and public agency websites; do not use blog summaries.
Boundaries: Overseas policies and charger deployment statistics are handled by another worker.

On top of this, re-delegation depth (whether a worker can create more workers) and an upper limit on the total number of workers must be enforced programmatically.

Evaluator-optimizer

Evaluator-optimizer is a loop where one call generates and another call provides evaluation and feedback. Anthropic recommends using it when evaluation criteria are clear and the value of iterative refinement can be measured. The criteria are verified through two questions: does human feedback actually improve the result, and can the model produce such feedback on its own? Examples include literary translation where subtle nuances must be captured like a translator's critique, and multi-round searches where an evaluator decides whether to search further.

The loop must have an end, because an evaluator can keep calling for "a little more" forever. Place a maximum number of iterations, a condition to stop when scores no longer increase, and a lower bound on the margin of improvement between iterations in code. If the loop terminates without converging, preserve both the final result and the evaluation record so a human can make the judgment.

Autonomous agents and stop conditions

For open-ended problems where the number of necessary steps is difficult to predict or cannot be hardcoded in advance, use autonomous agents. Anthropic advises that in such cases, one must be able to trust the model's judgment to some degree; because costs are high and errors can compound, test extensively in a sandboxed environment and establish appropriate guardrails. To maintain control, include stop conditions such as a maximum number of iterations. Specific design of stop conditions is covered in Chapter 5.

The same article lists three principles of agent design: keep designs simple, explicitly expose the agent's planning steps, and polish the agent-computer interface (ACI) through thorough tool documentation and testing. The third principle is the subject of Chapter 2.

The cost of multi-agent systems

In Anthropic's research system case study, agents used approximately 4 times more tokens than chat, and multi-agent systems used approximately 15 times more. In an evaluation analysis on BrowseComp, three factors accounted for 95% of performance variance (difference), and token usage alone accounted for about 80%. The remaining two were the number of tool calls and model selection. A significant portion of the gains from multi-agent systems comes from the fact that "more tokens can be spent across multiple windows."

Therefore, the article concludes that multi-agent systems are suited for high-value tasks with significant scope for parallelization where information does not fit in a single window, and are not suited for tasks where all agents must share the same context or where dependencies between agents are strong. It also notes that most coding tasks are less suitable because they offer fewer genuinely parallelizable components than research.

Cost is not just tokens.

Cost item Why it occurs
Coordination tokens Delegation instructions, result reporting, synthesis steps
Redundant exploration Workers with ambiguous boundaries scour the same places
Wait time Waiting for the slowest worker
State collisions Modifying shared resources concurrently
Operational complexity Failure points increase, and reproduction and debugging become difficult

The comparative metric must not be total cost, but cost per successful task. Even if the total cost doubles, if the success rate triples, it is a gain; if the cost remains the same and the success rate is unchanged, it is a loss.

Orchestration: decided by LLM, or decided by code?

The OpenAI Agents SDK documentation distinguishes between two approaches. LLM orchestration is suited for open-ended tasks where the model plans and selects next steps. Code orchestration determines the flow programmatically, making it more deterministic and predictable in terms of speed, cost, and performance. The code orchestration techniques cited in the documentation include classifying tasks with structured outputs to choose the next agent, connecting the output of one agent as input to the next agent, running a while loop until an evaluation agent declares a pass, and executing independent agents in parallel using standard tools such as asyncio.gather.

There are also two ways to connect agents.

Method Conversation control Final answer When to use
handoff The selected specialist agent takes over the remaining execution of the turn Specialist agent When routing itself is part of the flow and a specialist must handle the remaining processing
agent-as-tool (Agent.as_tool()) Maintained by the manager agent Manager agent When a specialist assists with only a restricted subtask without passing over the user conversation

Handoff occurs within a single execution (turn), and which agent starts the next turn is determined by the application when invoking execution. The OpenAI guide refers to the same distinction as the manager pattern (calling agents as tools) and the decentralized pattern (peer-to-peer handoffs), explaining that if multi-agent systems are viewed as graphs, edges in the manager pattern are tool calls and edges in the decentralized pattern are handoffs transferring execution. The guide's general recommendation is to first maximize the capability of a single agent. There are two signals to split: when there are too many if-then-else branches in the prompt making it difficult to scale the template, and when the model picks the wrong tools not because there are many tools, but because they are similar or overlap. The guide notes that some implementations handle 15 or more well-differentiated tools successfully, while others struggle with fewer than 10 overlapping tools.

Sequential, iterative, and parallel workflow agents in Google ADK are also examples of code orchestration. They execute with predetermined logic and do not use a model for orchestration, making them deterministic. However, starting with ADK 2.0 in Python and Go, these templated workflows were replaced by graph-based and dynamic workflows, so check the documentation for the language and version you use.

Starting from the simplest architecture

Selecting an architecture is like climbing a ladder one rung at a time. Advance to the rung above only when failure is measured on the rung below.

Rung Architecture Signal to move up
0 Code and rules without LLMs Substantially many judgments difficult to express in rules, or unstructured inputs
1 Single LLM call (including retrieval and examples) Too many instructions in a single call, consistently missing some
2 Fixed workflows such as chaining and routing Substantially many requests whose steps or categories cannot be predetermined
3 Single agent using tools Clear need for extensive investigation exceeding a single window, or independent parallel work
4 Multi-agent (The most expensive rung. Justify by cost per successful task)

Decisions are documented in an Architectural Decision Record (ADR). An ADR is a short document stating what was chosen and why. It records alternatives compared (at least the architecture one rung below), quality, latency, and cost measured on the same benchmark task set, rejected alternatives and reasons, and conditions under which this decision should be revisited. It is the document that provides the answer when someone asks "Why is this so complicated?" six months later, and conversely, it is where evidence originates to show "we can now move to a simpler approach."

A2A and MCP: lines connecting agents, lines connecting tools

Handoff and agent-as-tool are methods for connecting agents within a single SDK. Exchanging work with agents built by other companies using different frameworks requires a common protocol. The A2A documentation delineates their respective roles as follows: A2A connects agents to each other, while MCP connects each agent to its own tools. Rather than competing, they divide responsibilities across layers.

A2A v1.0.0 was the first stable major release, published on 2026-03-12. On 2026-08-27, it became a Growth Stage project under the Agentic AI Foundation (AAIF), placing it under the same foundation as its founding project, MCP.

The starting point for discovering a counterparty agent is the Agent Card. It is a JSON metadata document in which an A2A server describes and publishes its identity, capabilities, and skills. The standard path is /.well-known/agent-card.json. Clients searching only for agent.json, the path prior to the 2025-07-30 change, will miss the card. Version 1.0 formally specified three bindings—JSON-RPC, gRPC, and HTTP+JSON/REST—with equivalence guarantees, and also updated the card structure and notation.

Item Pre-v1.0 v1.0
Connection info preferredTransport, additionalInterfaces Binding and version for each interface in supportedInterfaces[]
Enum values Lowercase such as input-required SCREAMING_SNAKE_CASE prefixed with TASK_STATE_
Other kind discriminator kind removed, added tenant field for multi-tenancy

The dispatch agent of logistics company 'Skyway Logistics' connected vehicle location lookups and freight rate tables via an MCP server and called a partner customs broker's customs agent via A2A. When the customs broker updated its card to the v1.0 format, if the dispatch code only read preferredTransport, it failed to find the connection address. Code that reads cards is written to inspect and select bindings and versions for each interface.

Delegation defaults set by SDKs

Code connecting agents may only be a few lines, but beneath it lie behaviors determined by the SDK. Designing an architecture without knowing these defaults can create paths where checks are bypassed or where subsequent steps run before results arrive.

The OpenAI Agents SDK presents handoffs to the LLM as tools. From the model's perspective, handing off looks identical to a tool call, but the fact that control does not return after handing off remains the same. There are three types of guardrails: input, output, and tool; input guardrails execute only on the first agent in a chain. An input check placed on an intake agent does not run again after handoff to a refund agent. If a specific tool called by the refund agent must be restricted, wrap that FunctionTool with a tool guardrail that validates or blocks execution before and after it runs. When mapping out a handoff chain, mark which guardrails actually run along each path.

In the Claude Agent SDK, subagents are defined with the agents parameter (description and prompt are required) and called via the Agent tool. They appear as "Agent" in the tool_use block and as "Task" in the system:init tool list. Default limits are a creation depth of 3 tiers and 20 concurrent subagents. Subagents spawned by the main agent run in the background by default. The Agent tool returns a result with status: "async_launched", and reports arrive in subsequent turns.

If a market research orchestrator began synthesis in the very turn it spawned four regional workers, it wrote the report with empty results. Synthesis starts only after all four reports have arrived. A depth of 3 tiers and 20 concurrent workers are merely the SDK's default upper limits; the depth and number of workers suitable for the task must be defined separately in the delegation contract.

Considering the lifecycle of frameworks

When choosing a framework, there is something to look at before the feature list: who continues to maintain and fix that code.

The situation on the Microsoft side is a good example. Microsoft Agent Framework is the direct successor to Semantic Kernel and AutoGen, built by the same teams as those two projects. On 2026-04-03, both .NET and Python reached 1.0. The latest Python release is python-1.24.0 from 2026-10-30, with support requiring Python 3.11 or higher. AutoGen entered an archived state, and Microsoft no longer provides bug fixes, security patches, new features, or support.

The decision branches in two directions. There is no reason to start a new system with AutoGen, because no one will fix vulnerabilities if they emerge. If already operating on AutoGen, document a migration plan in an ADR and include "the framework in use is archived or reaches end of support" in the revisit conditions. Consider the runtime as well: services running in Python 3.10 containers must upgrade the runtime first before migrating the framework.

Suppose an internal meeting minutes summarization bot ran four agents with AutoGen. When the team migrated to Microsoft Agent Framework, if they merely transcribed the code line by line, they missed the opportunity to evaluate whether four agents were truly necessary. Migration was an opportune time to re-examine the architecture selection ladder. After running the same meeting minutes through a single agent and a fixed workflow to compare the cost per successful summary, they determined the architecture to migrate to based on those results.

Going deeper

Code provides the skeleton, models provide the judgment

In practice, the most common and robust architecture is a hybrid of workflows and agents. Code holds state transitions, business rules, permissions, and budgets, leaving only judgments that are difficult to write as rules—such as interpretation, planning, and sentence generation—to the model. To use an analogy, it is an architecture where code lays the railroad tracks, and the model decides what guidance to provide to passengers at each station.

The core rule of this architecture is the separation of proposal and execution. The model proposes, "Next, let us call the refund tool with these arguments," and the code inspects whether that proposal is permitted in the current state, within budget, and whether it requires approval before executing it. Even if the model makes a mistake or is deceived, code-level inspection prevents harm. Conversely, hardcoding every branch in code would require modifying code whenever business rules change; therefore, keep the judgment intervals wide open while placing checkpoints only at their exits.

Agreement is not verification

In multi-agent or voting configurations, the fact that "all three agents produced the same answer" is weaker evidence than one might think. Agents using the same model, the same family of prompts, and the same retrieval results will fail in the same manner. This is called correlated error. It is no different from three people repeating the same false report: their consensus does not make the false report a fact.

The power of verification comes from independence. One must partition the grounds rather than the roles: having agents inspect different sources, verifying through a method distinct from generation (such as code checks or cross-referencing against source texts), or tasking one agent solely with finding counterevidence. Furthermore, before using voting results, measure against an evaluation set whether "voting actually reduced errors compared to a single call."

When using a framework

Agent frameworks make getting started easy. However, Anthropic points out that frameworks create abstraction layers that obscure the underlying prompts and responses, making debugging difficult and tempting teams to add complexity even when a simple configuration is sufficient. They recommend starting by using LLM APIs directly and, if using a framework, understanding the code beneath it.

The operational standard is simple: you must be able to view the prompts, tool definitions, and tool results actually passed to the model in their original form at any time. Secure this visibility first through tracing (Chapter 4) and request logs.

At work

Whole Way: Do not hail a cab for a structured request

The travel platform 'Whole Way' initially built its itinerary recommendation feature with a single autonomous agent. The agent moved back and forth among flight, accommodation, and attraction tools, calling tools an average of 23 times, taking 40 seconds to respond, and taking a different path every time even for the identical request.

The team classified 2,000 request logs. 87% were structured requests with 'City, Duration, Budget' given, where the processing steps were virtually identical—flight and accommodation lookup → draft itinerary → budget check. Only 13% were open-ended requests such as "a quiet place to visit with parents."

There were three alternatives. First, switch to a stronger model. This was rejected because the path instability and cost issues remained unchanged. Second, convert all requests into fixed chaining. This was rejected after a 20-case trial confirmed that the quality of open-ended requests deteriorated. Third, set up routing that separates the two with a single classification call, routing structured requests to fixed chaining that queries flights and accommodations in parallel alongside a code budget gate, and sending only open-ended requests to an agent with a set maximum number of turns. The team chose the third option, routing requests with low classification confidence to the agent side to reduce the risk of quality loss.

Response time for structured requests dropped to 9 seconds, cost per request decreased by over 60%, and the quality of open-ended requests was maintained in the evaluation set. In the ADR, they recorded the condition: "If the proportion of open-ended requests exceeds 30%, review the architecture again." The rationale was not that 'The agent is bad'. Rather, it was that an architecture meant for an unpredictable minority had been used for a predictable majority.

Pine Breeze Energy: Tearing down the relay agent architecture

The customer quality team at the city gas company 'Pine Breeze Energy' generates a weekly complaint root-cause report. The initial architecture had four agents—collection, analysis, writing, and review—passing work sequentially like a relay race. All four agents repeatedly read the same weekly complaint dataset of approximately 4,000 cases, and the tokens consumed per report were seven times those of a single-agent prototype. The quality score was only slightly higher than the prototype, but transcripts revealed that the review agent approved the writing agent's conclusions almost verbatim.

The team compared three architectures using 30 weeks' worth of the same task: the existing relay architecture, a single agent, and a hybrid architecture. In the hybrid architecture, collection and classification were handled by code and a small model router, only root-cause analysis was split among regional workers for parallel investigation, and writing was run through an evaluator-optimizer loop (up to 3 iterations) with a clear evaluation rubric.

The results showed that the hybrid architecture cost one-third as much per successful report compared to the relay architecture, with equal or better quality. The review agent was eliminated. This was because 'Agreement' from the same model looking at the same data served no role as verification. Instead, figures in the report were cross-checked against source data by code. The rejected alternative was "keeping the number of agents while switching only to smaller models." The assessment was that while costs would decrease, the structural causes—redundant reading and coordination costs—would remain.

Common mistakes

  1. "Agents are always better than workflows." If a demo is impressive, it looks like a smarter architecture. However, autonomy brings cost, latency, and unpredictability. For work with fixed steps, workflows are faster, cheaper, and reproducible.
  2. "Having more specialized agents always improves quality." Dividing labor like a human organization seems as though it would create specialization, but a substantial portion of the performance gain is simply the result of spending more tokens. In tasks with extensive context sharing and high dependencies, coordination costs outweigh the benefits.
  3. "Passing via handoff returns the result to the original agent." It is easy to mistake handoff for a function call because of how it looks, but handoff transfers control authority. If you need to receive the result and continue using it, agent-as-tool is the right choice.
  4. "Running in parallel reduces total time by dividing it by the number of workers." It is easy to estimate using simple division, but total time is determined by the critical path and the synthesis phase. Map out dependencies and external limits first.
  5. "If multiple agents agree, it is the correct answer." Majority rule looks reliable, but the same model looking at the same evidence fails in the same way. Verification must be performed using independent grounds or different methods.
  6. "The evaluator-optimizer loop should simply be run until quality improves." It seems as though quality will improve with each repetition, but without a termination condition, costs can increase indefinitely. Place a maximum number of iterations and a minimum improvement threshold in code.
  7. "There are too many tools and it causes confusion, so we must divide them among agents." The raw count stands out and looks like the cause, but the issue is often similarity. Fix names, parameters, and descriptions first; divide only when that still fails.

Summary at a glance

Item Answer to remember
What separates workflows from agents Whether next actions are determined by code or by the model
Tasks to consider agents for Complex judgment, rules that are difficult to maintain, unstructured data
Safeguards in chaining Data contracts between steps and code gates
What to design together in routing Misclassification cost, deferred judgment, fallback
Difference between parallelization and orchestrator-workers Whether subtasks are known in advance
Four elements of delegation instructions Objective, output format, tool/source guidelines, boundaries
Multi-agent cost Approximately 15x tokens compared to chat. In BrowseComp analysis, token usage explains about 80% of performance variance
Connection method Handoff when transferring control, agent-as-tool when retaining it
Architecture selection Start at the simplest tier, advance one tier at a time only with measured Failed

Check the official docs

Self-check

1-1. Write the criterion that separates workflows from agents in one sentence, and give one example where both approaches are included within a single system.

1-2. What does each of the two variations of parallelization aim to achieve, and why is voting not set as the default for every step?

1-3. List the four elements that must be included in delegation instructions when an orchestrator assigns work to a subagent, and explain one symptom that occurs if one of them is missing.

1-4. What are the two mechanisms that the code outside the loop must have to prevent the evaluator-optimizer loop from spending costs indefinitely?

1-5. How do handoff and agent-as-tool differ in terms of conversation control and the entity that produces the final answer?

1-6. In Anthropic's BrowseComp analysis, what does the observation that token usage explained most of the performance variance lead one to compare instead of total cost when making an adoption decision?

1-7. Design a feature that reads 50 internal company announcements each week and sends department-specific summaries. Write, in order, the simplest architecture, the measurement signal indicating that this architecture has become insufficient, and the next architecture to move up to at that point.

Hands-on tasks

Exercise

Redrawing the architecture (60 minutes)

  1. Choose one LLM feature that is in operation or that you have built, and sample 100 or more recent requests.
  2. Count the proportion of requests with fixed processing steps versus those without.
  3. Draw the current architecture with boxes and arrows, and label each step with "the entity deciding the next action (code/model)" and the corresponding name among the five patterns.
  4. Draw an alternative architecture that is one step simpler, and create a comparison table estimating the number of calls per request, average latency, and token cost from logs.

Done when: The comparison table contains log-based figures, and you can answer in one line for each step of the alternative architecture, "What breaks if this step is removed?" — it is Completed.

Exercise

Simplification experiment and writing an ADR (45 minutes)

  1. Select 20 tasks handled by an agent or multi-agent (include 5 or more Failed cases).
  2. Run the same tasks through an architecture that is one step simpler (a single agent or a fixed workflow).
  3. Compare the success rate, tokens per successful task, and average latency of the two architectures in a table.
  4. Based on the results, write an ADR within one page containing the compared alternatives, measured values, reasons for selection and rejection, and review conditions.

Done when: The cost per successful task for both architectures is written as numbers in the ADR, and the review conditions are written as measurable statements (e.g., ratios, thresholds) — it is Completed.