Claude Code Architecture Review: How to Run One and Where It Falls Short

Your pull request moves price calculation into the service that owns it. The boundary looks better. Then someone asks what happens to checkout when that service stops answering.
That's a useful question for Claude Code to investigate. The answer needs more than a clean diff: the reviewer needs your availability requirement, the caller's failure behavior, and enough context to understand the new dependency.
This guide builds a small architecture reviewer, walks through an actual review of a Checkout-to-Pricing call, and shows where system context changes the discussion. The goal is a finding an engineer can validate, not an automated architecture approval.
What is a Claude Code architecture review?
A Claude Code architecture review uses the coding agent to examine a proposed change against a system's design constraints. It looks at boundaries, dependencies, data ownership, and failure behavior, using code and architecture records as evidence. The output is a set of findings and unanswered questions for a human decision.
Architecture review vs. code review
A code review might ask whether a function handles an invalid response. An architecture review also asks whether that service should be on the checkout path at all, and which availability tradeoff the team accepted.
The scopes overlap. Anthropic's managed Code Review examines pull requests and surrounding code, with correctness as its default focus. It can also use project guidance. The custom reviewer below is a separate, deliberately scoped workflow, not a requirement for using that service.
What Claude Code can and can't review
Start with the evidence available to the session. Claude Code isn't inherently limited to one repository; additional files and connected tools can expand its context. But a dependency mentioned in code doesn't reveal everything about the service behind it.
These are questions to investigate, not a promised detection rate. A review that finds no issues may simply lack the evidence needed to ask the next question. That's the coding-agent architecture problem in a practical form.
Set up a reviewer: subagents, skills and CLAUDE.md
For the Checkout change, the reviewer needs to compare a new service call with an explicit availability requirement. That gives it something concrete to investigate. The setup below was exercised against a small example repository using Claude Code; the review result appears later in this guide.
1. Write the constraints in CLAUDE.md.
At the project root, keep the instructions concrete:
The 300 ms budget belongs to this example, not every checkout system. In your project, specify where the deadline is measured and what callers should receive when Pricing is unavailable. CLAUDE.md provides context; it doesn't enforce the requirement for you.
2. Add the custom reviewer.
Create .claude/agents/architecture-reviewer.md:
The subagent's tools field limits it to these file-reading tools. It has no Bash tool to collect a diff, so prepare the patch before handing over the review. This is a tool choice for the reviewer, not a claim that the entire parent session is read-only.
3. Prepare the change and invoke the reviewer.
For an uncommitted change to the example file, save the diff from your terminal:
That command captures unstaged changes to the named file. For a real pull request, prepare the patch from the intended base and proposed revisions instead. Start a new Claude Code session after creating the agent file, then give it the prompt below. Confirm the session actually delegates to architecture-reviewer; a plausible-looking answer alone doesn't establish which agent ran.
Where skills fit. A skill is useful for packaging a checklist you want to reuse. A forked skill can select a custom subagent, while CLAUDE.md holds project-wide guidance. A separate skill is optional for this first review. If you add a skill, its allowed-tools field pre-approves tool use; it doesn't replace the subagent's tool allowlist.
A prompt and checklist for an architecture review
With the constraints, reviewer, and diff in place, the prompt can focus on the handoff: which agent should run, what it should read, and what the engineer needs back. Use this prompt with the example files:
For your own change, replace the file paths and name the relevant architecture decision record. Keep the review small enough that someone can act on its findings.
The Checkout availability requirement is one concern, but a new dependency can also change data ownership or failure handling. Use these questions to guide the review, keeping each one tied to a decision about the proposed change:
- Boundaries and dependencies: Which new calls cross a service boundary? Does the direction match the intended design?
- Data ownership: Which service can change the data, and how does another service get a valid view of it?
- Failure behavior: What happens when the dependency is slow, unavailable or returns an unexpected response?
- Security boundaries: Which identity crosses the interface, and who should validate the request?
- Scalability and operability: What additional load does the call create, and how will an operator identify a failure?
- Decision consistency: Which accepted constraint supports the finding? Is the reviewer proposing to change that constraint?
Ask for a validation step with each finding. “Tight coupling” alone doesn't tell the team what to change or what evidence might make the concern acceptable.
Reviewing the new Checkout-to-Pricing call
Here is the change behind the setup. In the example repository, Checkout originally calculated the total locally. Moving that calculation to Pricing follows the project's ownership rule, but also makes order creation wait for another service. The proposed code adds that synchronous request:
An actual Claude Code run delegated this patch to architecture-reviewer. The receipt records the child agent using Read, Glob, and Grep. It identified the missing timeout at src/checkout.py:7 and connected it to the 300 ms requirement.
That is a useful candidate finding. The patch has no explicit per-call timeout; Python's urlopen otherwise uses the global timeout setting. The code shown doesn't itself enforce the checkout deadline. It also doesn't prove that no deadline exists elsewhere.
The next action is concrete: inspect the service's existing timeout configuration, then test a Pricing endpoint that accepts a connection but stalls. Measure the complete operation against the agreed budget. The review run inspected source; it did not run that failure test or measure checkout latency.
The reviewer also noticed that the request sends only cart_id. It asked how Pricing obtains the cart contents and whether a quote could refer to an older cart version. Pricing's code and contract weren't in the repository, so the run couldn't establish that relationship. It surfaced the missing evidence rather than discovering a verified stale-price defect.
Not every conclusion deserved acceptance. The response inferred that money was stored as a float, although the available code didn't establish the storage type. Reject that inference unless the storage type is verified. Keep the useful timeout finding and ask for the actual Pricing contract.
Where it falls short: the context gap
The missing Pricing contract is a better explanation of the limit than “AI doesn't understand architecture.” A reviewer can reason about a dependency it can inspect. It can't establish how another service behaves from a hostname and a cart ID.
For this change, the owner still needs answers about Pricing's data source, quote validity, and upstream dependencies. An ADR might explain why synchronous pricing was chosen. Deployment context might establish a deadline the example file doesn't show.
This is also why a larger prompt isn't always the next step. If the missing fact lives outside the repository, collect that fact. Our Catio MCP integration brings architecture context into that coding-agent workflow.

The repository shows the proposed Pricing call, not how Pricing behaves. A separately supplied context packet adds evidence to check; it doesn't verify the dependency.
Giving Claude Code architecture context
CLAUDE.md is a good home for concise principles. It isn't a replacement for the architecture records those principles depend on. With a configured Catio workspace, you can retrieve relevant system context through MCP and supply it alongside the patch. The workspace must already contain useful inventory and organizational context.
Follow the Claude Code setup guide to connect the intended workspace. Then ask a focused question: “What depends on Pricing, what does Pricing depend on, and which recorded requirements apply to checkout availability?”
Our MCP tools divide that work into concrete queries:
get_workspace_contextretrieves requirements and architecture context.search_inventory_componentshelps locate the relevant services and data stores.search_inventory_relationshipsretrieves the dependencies and flows recorded between components.
The reviewer we configured can read files, so it needs a file-based handoff from those queries. Collect the relevant results in the parent session and save an approved context packet as files. Include the source, workspace, and capture time, then rerun the review with those file paths. Its file-reading tool list can stay unchanged.
Inventory and Context are read-only over Catio MCP, but the broader server also exposes Blueprint creation and update tools. Don't grant the whole server to this reviewer and describe that configuration as read-only.
Check coverage before drawing conclusions. If Pricing is missing from the inventory, “no relationship returned” doesn't mean it has no dependencies. Catio supplies the architecture information available in the selected workspace; the engineer still needs to resolve missing or outdated evidence.
Making it part of the team process
Use architecture review where a decision is still open. Before implementation, review the proposed boundary and its tradeoffs. On a pull request, compare the actual change with the accepted decision. In periodic reviews, revisit assumptions that deployment changes may have invalidated.
Give each finding a disposition: accept it and name the change, reject it with evidence, or assign someone to answer the open question. Record the reviewed revision so the decision doesn't drift away from the code.
In the Checkout review, that means asking the service owner to establish the Pricing deadline and quote contract before accepting the new dependency. The timeout finding now has a validation step and someone responsible for following it through; the unsupported storage inference can be rejected.
Conclusion
Claude Code can turn a proposed architecture change into specific findings to investigate. The review becomes useful when engineers check those findings against the code, supply missing system context, and record which changes or unanswered questions need an owner. That judgment remains part of the team's engineering work.
Start with one change that adds a dependency. Run the focused reviewer, check its strongest finding, and close the context gaps with the responsible engineer. If those gaps repeatedly sit outside the repository, bring your architecture context into Claude Code with Catio and use it in the next review.
FAQ
Can Claude Code generate architecture diagrams?
Yes. Claude Code can produce HTML and SVG diagrams. Ask it to diagram only the code and architecture records you provide. Check each relationship against its evidence before using the diagram in a design decision. A diagram derived from the Checkout example shouldn't invent Pricing's data source.
Is Claude good for architects?
It can help investigate a bounded change, organize evidence, and propose questions, as the example review shows. Architects still need to judge the trade-off, challenge unsupported findings, and accept responsibility for the decision. Start with a review whose constraints you can state clearly and whose findings you can independently check.

