Architect
Caution
The architect agent never writes code. Write, Edit, and NotebookEdit are disallowed — it can only read, grep, search, and run read-only bash commands. If you need implementation, hand off to the developer agent after the architect produces its recommendations.
Tip
Trigger with natural language. Phrases like “review the architecture”, “design this service”, “what are the scaling limits here”, or “suggest a pattern for X” all invoke the architect automatically. No slash command needed.
Quick reference
| Field | Value |
|---|---|
| Trigger | ”review architecture”, “design service”, “performance limits”, “scaling strategy” |
| Model | opus |
| Tools | Read, Glob, Grep, Bash, WebFetch, WebSearch |
| Disallowed | Write, Edit, NotebookEdit |
When to use
- Design review — assess an existing module, service, or system before a major change
- Pattern selection — choose between architecture styles (monolith vs microservices, CQRS, hexagonal)
- Trade-off analysis — document the gains and costs of a decision before committing
- Scaling strategy — identify bottlenecks, quality dimensions, anti-patterns in the current design
- Pre-implementation — set boundaries and contracts before handing off to
developer
Examples
"review the architecture of the payment module"
"design a service for async order processing"
"what are the performance limits of the current data layer?"
"scaling strategy for high-traffic checkout"
Flow
- Pre-analysis
Reads all rules files (`.claude/rules/*-best-practice.md`, `*-avoid.md`), checks
CLAUDE.mdfor stack and conventions, searches.claude/anddocs/for existing architecture decisions. - Discovery
Uses
grepai_searchfirst to find similar functionality, patterns, and boundaries. Falls back to Grep for specific deps and Glob for config and schema files. Runsgit logvia Bash to understand change history. - Reuse check
Explicitly checks for existing utilities, base classes, and established patterns before recommending new abstractions. Prefers battle-tested libraries (JDK → Apache Commons → Guava) over custom code.
- Assessment
Evaluates quality dimensions — performance, scalability, reliability, maintainability, security, testability — and identifies anti-patterns (God Service, Distributed Monolith, Circular Deps, Leaky Abstraction).
- Recommendations
Produces a structured report: components table, findings ranked by severity (H/M/L), recommendations with effort estimate (S/M/L) and explicit trade-offs. Ends with a concrete next action.
Internals
Analysis workflow: Scope → Discover → Assess → Identify → Recommend → Prioritize
Output format:
## Architecture Analysis: [Component]
### Context
**Scope:** [analyzed] | **Constraints:** [limits]
| Component | Pattern | Quality | Issues |
|-----------|---------|---------|--------|
| [Name] | [Style] | ⚠️/✅/❌ | [Brief] |
| # | Finding | Severity | Impact |
|---|---------|----------|--------|
| 1 | [Issue] | H/M/L | [Effect] |
| # | Recommendation | Effort | Benefit | Trade-off |
|---|----------------|--------|---------|-----------|
| 1 | [Action] | S/M/L | [Gain] | [Cost] |
**Next:** [action]Scope boundaries:
| In scope | Out of scope |
|---|---|
| Architecture analysis | Implementation (→ developer) |
| Pattern recommendations | Tests (→ tester) |
| Trade-off evaluation | Code review (→ reviewer) |
| Scaling strategies | Deployment execution |
Good vs bad patterns (quick ref):
| Area | Avoid | Prefer |
|---|---|---|
| Naming | DataManager, Helper | OrderRepository, PriceCalculator |
| State | Mutable shared state | Immutable, stateless |
| Coupling | Direct deps everywhere | Interfaces, DI |
| Inheritance | Deep hierarchy (>3 levels) | Composition, delegation |
| Errors | Swallow exceptions | Fail fast, explicit types |
Reviewer agent
Code review, security, performance — read-only like architect, but focused on existing code quality.
Developer agent
Implementation — the natural next step after architect produces recommendations.
GitHub source
Agent definition, allowed tools, and full prompt.
Brewcode overview
All brewcode agents and skills in one place.
Updating plugins
/brewtools:plugin-update to check and update the brewcode plugin suite in one command.
See the FAQ for details.