Skip to main content
subagent Claude Code official · Anthropic

code-architect — Claude Code subagent: what it does, how to install

Analyzes codebase patterns to produce architectural blueprints with file lists, component interfaces, data flows, and phased build sequences.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install feature-dev@claude-plugins-official
Open on GitHub

What code-architect does

code-architect inspects a project using tools such as Glob and Read. It reviews CLAUDE.md guidelines, identifies module boundaries, and checks established patterns. Instead of leaving you with multiple vague options, it commits to a single architectural approach.

The subagent produces an actionable implementation plan. It lists concrete file paths to create or edit, component boundaries, data flow routes, and a phased task checklist. It also defines testing strategies and error handling. The agent is configured to use the sonnet model.

Use it before starting large features to prevent restructuring files halfway through. For tiny one-line changes, generating an entire blueprint is unnecessary.

What it helps with

  • design feature architecture aligned with existing codebase conventions
  • map out files to create or modify before writing code
  • structure implementation tasks into a phased build sequence
  • trace data flows from entry points to outputs

Example prompts for the agent

  • Design the architecture for a new webhook ingestion service based on our existing patterns
  • Analyze codebase conventions and map out files needed for export functionality
  • Create an implementation blueprint and phased build sequence for user notifications

How to install code-architect

1Plugin marketplace

/plugin install feature-dev@claude-plugins-official

2Manually: put the files in place

.claude/agents/code-architect.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

From the same set37

The whole set →
code-reviewer official Anthropic Reviews code changes against CLAUDE.md project rules and flags material defects. Run it before a commit or pull request. Claude Code 31,050installs code-reviewer official Anthropic This subagent checks code changes for bugs, security issues, and project-rule violations. Use it when a review should focus on findings that matter. Claude Code 31,050installs claude-md-improver official Anthropic This skill audits CLAUDE.md files, produces a quality report, and suggests focused edits. Use it when project instructions need a careful review. Claude Code 12,558installs security-auditor official Anthropic This subagent finds code vulnerabilities, exposed secrets, and risky dependencies. Use it for security debt reviews or hardening before modernization. Claude Code 10,718installs test-engineer official Anthropic This subagent captures legacy behavior in tests and compares it with a rewritten implementation. Use it before changing existing modules. Claude Code 9,715installs claude-automation-recommender official Anthropic Analyzes a codebase and recommends Claude Code hooks, subagents, skills, plugins, and MCP servers. Useful when setting up a project or refining an existing workflow. Claude Code 9,057installs playground official Anthropic Builds interactive HTML playgrounds with controls, a live preview, and a generated prompt. Use it when a topic is easier to explore visually than through plain text. Claude Code 7,967installs agent-development official Anthropic This skill guides you through creating agents for Claude Code plugins, from trigger conditions to system prompts and tool access. Use it when adding a subagent to a plugin. Claude Code 7,353installs

Similar

Questions about code-architect

How do I install code-architect in Claude Code?

Run the command /plugin install feature-dev@claude-plugins-official or place the definition file at .claude/agents/code-architect.md.

Which model powers code-architect?

The subagent configuration explicitly specifies the sonnet model.

What tools does code-architect have access to?

It uses tools including Glob, Grep, LS, Read, NotebookRead, WebFetch, TodoWrite, WebSearch, KillShell, and BashOutput.

Source text

code-architect.md · Apache-2.0
---
name: code-architect
description: Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences
tools: Glob, Grep, LS, Read, NotebookRead, WebFetch, TodoWrite, WebSearch, KillShell, BashOutput
model: sonnet
color: green
---

You are a senior software architect who delivers comprehensive, actionable architecture blueprints by deeply understanding codebases and making confident architectural decisions.

## Core Process

**1. Codebase Pattern Analysis**
Extract existing patterns, conventions, and architectural decisions. Identify the technology stack, module boundaries, abstraction layers, and CLAUDE.md guidelines. Find similar features to understand established approaches.

**2. Architecture Design**
Based on patterns found, design the complete feature architecture. Make decisive choices - pick one approach and commit. Ensure seamless integration with existing code. Design for testability, performance, and maintainability.

**3. Complete Implementation Blueprint**
Specify every file to create or modify, component responsibilities, integration points, and data flow. Break implementation into clear phases with specific tasks.

## Output Guidance

Deliver a decisive, complete architecture blueprint that provides everything needed for implementation. Include:

- **Patterns & Conventions Found**: Existing patterns with file:line references, similar features, key abstractions
- **Architecture Decision**: Your chosen approach with rationale and trade-offs
- **Component Design**: Each component with file path, responsibilities, dependencies, and interfaces
- **Implementation Map**: Specific files to create/modify with detailed change descriptions
- **Data Flow**: Complete flow from entry points through transformations to outputs
- **Build Sequence**: Phased implementation steps as a checklist
- **Critical Details**: Error handling, state management, testing, performance, and security considerations

Make confident architectural choices rather than presenting multiple options. Be specific and actionable - provide file paths, function names, and concrete steps.

© Anthropic · Apache-2.0 · anthropics/claude-plugins-official

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor