What you will be able to do
- List the components, data flows, models, tools and boundaries an architecture description must pin down
- Recommend where an agent runs (Agent SDK in your own process or Managed Agents) and how its tools connect
- Record why each architectural layer exists so later teams neither strip it out nor duplicate it
- Name the configuration, error-handling and deployment changes that turn a prototype into a service
Key concept
Architecture description — The document that tells engineers what the major pieces of a Claude solution are, how they communicate, which model and tools each piece uses, and where the boundaries sit. It also records why each piece exists, so engineers can build and run the system without reverse-engineering a prototype.
1.What an architecture description must pin down
An architecture description exists to answer the questions an engineer has before writing any code. Which components are there? How does a request travel between them? Which model handles each call? Which tools can that model use? Where are the boundaries between what runs in your process and what runs somewhere else? A diagram that shows boxes but leaves out the model per call, or the tool list per component, sends engineers back to the prototype to work it out for themselves.
A customer support agent shows why each of these needs its own entry. As the bot grows, one design sends every query to an intent classifier first. The classifier routes the query to a specialised conversation, and each conversation has its own tools and system prompt. That one sentence holds a component (the classifier), a data flow (query to classifier to conversation), a model call per step, and a tool set per conversation. An engineer needs every one of them written down.
| Element | What the document states | Support-agent example |
|---|---|---|
| Components | Each service and what it owns | Intent classifier, specialized conversations, API wrapper, web interface |
| Data flows | How a request moves end to end | Customer query → classifier → specialized conversation → streamed reply over Server-Sent Events |
| Models | Which call goes to Claude, and how many calls a request makes | The classifier adds an additional call to Claude before the conversation starts |
| Tools | Which tools each component may call | Each specialized conversation has its own set of tools and system prompts |
| Boundaries | What the team operates versus what an external API provides | The HTTP service the team runs versus the Claude API it calls |
Checkpoint 1 of 8· Match them up
An architecture description for the support agent with an intent classifier must cover five elements. Match each element to what the document records for this system.
Tap a term, then the definition that fits it.
The one-sentence classifier design contains several separate facts: what the pieces are, how a query moves between them, how many Claude calls it costs, which tools each conversation gets, and what the team runs versus calls externally. A diagram that leaves any of these out sends engineers back to the prototype to work it out.
“route customer queries through the classifier and then to specialized conversations (with their own set of tools and system prompts)”Source: platform.claude.com
2.Where the agent loop runs
For an agent, the most important boundary is the process the agent loop runs in. The Claude Agent SDK and Managed Agents use the same concepts (agents, tools, sessions) but run them in different places. The SDK runs in a process you operate. Managed Agents runs in Anthropic's infrastructure. The document has to name one, because the choice decides who holds the filesystem, who executes the tools, and what the service exchanges over the network.
Take a platform team that needs an agent to run entirely on its own servers, work on git checkouts there, and call in-process functions as tools. That team should embed the Agent SDK as a library in its service. Functions decorated with @tool are dispatched by the SDK automatically, and built-in tools act on the local filesystem, so nothing about the team's requirements leaves its process. Managed Agents fails the first requirement, because Anthropic hosts the sandbox: custom tools become agent.custom_tool_use events that the client answers. A hand-written tool loop on top of the Messages API would work, but it rebuilds dispatch the SDK already does.
| Concern | Agent SDK | Managed Agents |
|---|---|---|
| Where it runs | A process you operate | Anthropic's infrastructure |
| Agent configuration | ClaudeAgentOptions(...) constructed per run | client.beta.agents.create(...) once, persisted and versioned server-side |
| Custom tools | Functions defined with @tool, dispatched automatically by the SDK | Declared on the Agent; your client handles agent.custom_tool_use events |
| Built-in tools | Run in your process against your filesystem | Run in the sandbox Anthropic operates |
Checkpoint 2 of 8· Exam question
A platform team is documenting the architecture for a new production agent that must run entirely on their own infrastructure, operate directly on files and git repositories checked out on their servers, and call custom in-process functions as tools. Which implementation approach should the architecture document recommend?
Correct answer: B — Use the Agent SDK as a library embedded in the service so the agent loop, filesystem access, and custom tools all run inside the team's own process.
- A. Incorrect. The Client SDK requires the team to implement the tool-execution loop themselves, which adds unnecessary engineering work when the Agent SDK already provides that loop.
- B. Correct. The Agent SDK runs as a library inside the team's own process, giving direct access to the local filesystem and git repositories along with in-process custom tools, matching every stated requirement.
- C. Incorrect. Managed Agents runs the agent in an Anthropic-managed sandbox rather than the team's own infrastructure, which conflicts with the requirement to operate directly on locally checked-out files.
- D. Incorrect. The MCP connector only provides remote tool connectivity to the Messages API; it does not supply the agent loop, filesystem access, or in-process custom tool execution the scenario requires.
Sources3
3.Documenting how tools connect
Implementation guidance also has to say how each external system reaches the agent. In Claude Code the usual answer is an MCP server, and the guidance should give the exact command that registers it. MCP servers are what let Claude Code act on issue trackers, monitoring tools and databases. The broader question of which integration mechanism to pick is covered in connection protocols. This page is about writing the chosen one down so engineers can reproduce it.
Write down the transport, because it decides who runs the server. A hosted server is a URL, added with --transport http. A local server is a program the agent launches on its own machine. It needs no transport flag, because local servers use stdio by default. So an existing open-source Confluence or Jira connector that the agent should start itself gets documented as a stdio MCP server. Re-implementing its API calls as custom tools inside the agent just throws that connector away.
claude mcp add playwright -- npx -y @playwright/mcp@latestAlso state the scope you chose. local keeps the server to one person on one project, user gives it to one person across all projects, and project writes it to .mcp.json in the repository root so everyone who clones the repo gets the same server. Guidance meant for a whole team usually needs the project scope.
Checkpoint 3 of 8· Check yourself
A team's Claude Code agent needs to work with their Jira issue tracker, and an open-source Jira connector already exists. What should the implementation guidance tell engineers to do?
In Claude Code, MCP servers are how the agent works with issue trackers, monitoring tools and databases, so the guidance should give the command that registers the server. Rewriting the connector's API calls as custom tools throws away a connector that already works.
“Tell Claude to pull context itself using Bash commands, MCP tools, or by reading files.”Source: code.claude.com
Checkpoint 4 of 8· Exam question
An implementation guide must describe how to let Claude Code browse a company's Confluence and Jira instances using an existing open-source connector, launched locally by the agent process rather than hosted as a network service. Which pattern should the guide document?
Correct answer: A — Deploy an MCP server that exposes Confluence and Jira operations as tools, and configure the agent to launch it locally over stdio.
- A. Correct. MCP servers can be launched locally over the stdio transport, letting the agent connect to the existing Confluence and Jira server without exposing a network endpoint, exactly matching the requirement.
- B. Incorrect. Reimplementing the integrations as client-side tools discards the existing MCP server and duplicates work the connector already does.
- C. Incorrect. Extended thinking blocks are for reasoning transparency, not for routing external API calls; the Messages API has no mechanism to invoke REST endpoints through them.
- D. Incorrect. The Files API manages uploaded documents for reference, not live, interactive access to ticket and page data through tool calls.
4.Recording the model choice
Each model call in the architecture should name its model and the reason for it, because the reason is what later lets someone check whether the choice still holds. Model trade-offs teaches how to make the choice. The document records the result. Take a high-volume ticket-triage classifier with a tight latency and cost budget that still needs real reasoning. The recommendation is Claude Haiku 4.5, which Anthropic launched as ideal for real-time, high-volume, cost-sensitive work that needs strong reasoning. Haiku is the lowest-cost and fastest model class. Opus is the class for reasoning-intensive enterprise tasks, which is more than per-ticket classification needs.
Checkpoint 5 of 8· Check yourself
Every customer query now goes through the intent classifier before it reaches a specialized conversation. The team wants this extra step to add as little latency and cost as possible, but the classifier still needs real reasoning. What should the architecture document record for the classifier's model call?
The classifier adds a Claude call to every request, so its latency and cost budget decides the model. For that budget you pick a smaller model class, Haiku, and write the reason down. Changing the effort level only trades thoroughness against efficiency, and Opus is more than per-query classification needs.
“Note, this method requires an additional call to Claude that can increase latency.”Source: platform.claude.com
Checkpoint 6 of 8· Exam question
A support-tooling architect is writing implementation guidance for a high-volume ticket triage service that classifies incoming tickets, needs strong reasoning, and must stay within a tight latency and cost budget. Which model recommendation should the guidance document?
Correct answer: A — Recommend Claude Haiku 4.5, noting its near-frontier reasoning at the most economical price point suits high-volume, latency-sensitive classification.
- A. Correct. Claude Haiku 4.5 is described as delivering near-frontier performance with strong reasoning at the most economical price point, which directly fits high-volume, cost-sensitive, latency-sensitive classification.
- B. Incorrect. Opus 4.8 is positioned for complex agentic coding and enterprise engineering work, not lightweight high-volume classification, and its cost profile does not fit a tight budget.
- C. Incorrect. Raising the effort parameter trades latency and cost for additional intelligence; it increases response time rather than cutting it, so it does not serve a latency-sensitive requirement.
- D. Incorrect. Fast mode is a research preview at premium pricing, not a generally available, cost-reducing feature, so it does not fit a tight cost budget.
5.Recording why each layer exists
Every layer should go into the document with its reason and the cheaper options that were tried first. Without that record, the next team sees an intent classifier, a prompt chain and a set of tools, and can't tell which parts carry weight. They might remove the classifier as an apparent waste of a call and break routing for varied tasks. Or they might add a second router because they never knew the first one existed.
The support-agent design shows what a good entry looks like. Before adding layers, the recommended order is to get the most out of the prompt first, then try more tools or prompt chains, and only then add a classifier. The classifier earns its place when the bot handles very varied tasks. It costs an extra call to Claude, which can add latency. Each of those facts belongs in the record.
The problem it solves (queries too varied for one prompt and tool set). The alternatives tried first (prompt engineering, then extra tools or prompt chains) and why they fell short. The cost it adds (one extra Claude call, so more latency). The condition under which it could be removed (if a single conversation can again handle the full range of queries).
Checkpoint 7 of 8· Put it in order
Your design record must show that cheaper options were tried before the support bot got a new layer. Put the options in the order the guidance recommends trying them.
- 1.Add more tools to the prompt, which can include prompt chains
- 2.Add a separate intent classifier that routes each query to specialized conversations with their own tools and system prompts
- 3.Get the most out of the existing prompt through prompt engineering
The less exhaustive options come first: improve the prompt, then add tools or prompt chains. A classifier comes last because it costs an extra Claude call that can add latency, and it pays off only when the bot handles very varied tasks. Writing this order into the record shows the next team which layers carry weight.
“Before you add further layers to your architecture, consider the following less exhaustive options:”Source: platform.claude.com
Sources1
6.From prototype to deployable service
A prototype shows that the idea works. A service is something other engineers can deploy, configure and keep running. The support-agent example starts life as Python functions in Streamlit, and a real-time chatbot needs an API service instead. The guidance has to cover three changes: how the code is served, how it is configured, and how it handles failure.
For serving, wrap the core function in an HTTP service such as Flask or FastAPI. Stream responses with Server-Sent Events, cache responses to avoid unnecessary API calls, and keep conversation context when a user leaves and comes back. For configuration, list every setup step a fresh checkout needs. An instruction like copying .env.example to .env, without which tests and the dev server fail, is exactly what a new engineer can't guess. Network routing is configuration too. HTTPS_PROXY sends traffic through a corporate proxy, and the ANTHROPIC_BASE_URL family points at an LLM gateway for central usage tracking, rate limits or budgets.
Error handling is where prototypes cut the most corners. Every response from the Messages API reports why generation stopped in its stop_reason field, and a tool loop reads it: end_turn means the model finished normally. refusal is a different value, and a service must branch on it rather than assume every response is usable. It must also tell configuration errors apart from passing failures. On Claude Haiku 4.5, setting both temperature and top_p returns a 400 error, and retrying that request will never fix it. Deployment guidance closes with the rule to test in a development environment before production.
Checkpoint 8 of 8· Check yourself
The support-agent service is ready to go to production. Finance wants Claude usage tracked across all teams, with custom rate limits and budgets enforced in one place. Which setting should the deployment guidance tell engineers to configure?
Central usage tracking, rate limits and budgets are what an LLM gateway provides, and the ANTHROPIC_BASE_URL family of variables points traffic at it. A corporate proxy routes traffic for security monitoring and network policy, not budgets. Caching and effort settings change individual calls but give no central tracking or limits.
“Use this if you need centralized usage tracking across teams, custom rate limiting or budgets, or centralized authentication management.”Source: code.claude.com
Sources
(11)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“route customer queries through the classifier and then to specialized conversations (with their own set of tools and system prompts)”
↩︎ What an architecture description must pin down“Before you add further layers to your architecture, consider the following less exhaustive options”
↩︎ Recording why each layer exists“Note, this method requires an additional call to Claude that can increase latency.”
↩︎ Recording why each layer exists“deploying Claude for real-time support chatbot requires an API service”
↩︎ From prototype to deployable service“Note, this method requires an additional call to Claude that can increase latency.”
↩︎ Checkpoint“Before you add further layers to your architecture, consider the following less exhaustive options:”
↩︎ Checkpoint - 2.https://support.claude.com/en/articles/14553240-give-claude-context-claude-md-and-better-promptsOfficial docs
“Architecture in three sentences — what the major pieces are and how they communicate.”
↩︎ What an architecture description must pin down“Architecture in three sentences — what the major pieces are and how they communicate.”
↩︎ Key concept - 3.
“the SDK runs in a process you operate, while Managed Agents runs in Anthropic's infrastructure”
↩︎ Where the agent loop runs“Functions defined with @tool, dispatched automatically by the SDK”
↩︎ Where the agent loop runs“Execution moves from inline handling to responding to agent.custom_tool_use events.”
↩︎ Where the agent loop runs“if response.stop_reason == "end_turn":”
↩︎ From prototype to deployable service“the SDK runs in a process you operate, while Managed Agents runs in Anthropic's infrastructure”
↩︎ Exam trap 1“Built-in tools run in your process against your filesystem”
↩︎ Prediction - 4.https://code.claude.com/docs/en/mcp-quickstartOfficial docs
“There’s no --transport flag, because local servers use the default stdio transport.”
↩︎ Documenting how tools connect“Add a local server: run a program on your machine instead of connecting to a URL.”
↩︎ Documenting how tools connect“.mcp.json in your project root | Everyone who clones the project”
↩︎ Documenting how tools connect - 5.https://code.claude.com/docs/en/mcpOfficial docs
“Implement features from issue trackers”
↩︎ Documenting how tools connect - 6.
“Ideal for real-time applications, high-volume processing, and cost-sensitive deployments requiring strong reasoning.”
↩︎ Recording the model choice“allowing you to control token usage by trading off between response thoroughness and efficiency”
↩︎ Recording the model choice“allowing you to control token usage by trading off between response thoroughness and efficiency”
↩︎ Exam trap 2 - 7.https://claude.com/blog/claude-models-explained-choosing-the-best-model-for-your-use-caseSecondary source
“Haiku is our lowest cost and fastest model class.”
↩︎ Recording the model choice“Opus is our powerful model class for reasoning-intensive enterprise tasks.”
↩︎ Recording the model choice - 8.https://code.claude.com/docs/en/large-codebasesOfficial docs
“Copy `.env.example` to `.env` before running anything. Tests and the dev server fail without it.”
↩︎ From prototype to deployable service - 9.
“Use this if you need centralized usage tracking across teams, custom rate limiting or budgets, or centralized authentication management.”
↩︎ From prototype to deployable service - 10.
“Update your application to handle refusal stop reasons.”
↩︎ From prototype to deployable service“Setting both returns a 400 error on Claude Haiku 4.5.”
↩︎ From prototype to deployable service“Test in development environment before production deployment”
↩︎ From prototype to deployable service
Also cited
- https://code.claude.com/docs/en/best-practicesOfficial docs
“Tell Claude to pull context itself using Bash commands, MCP tools, or by reading files.”
↩︎ Checkpoint