How to add the Architecture Critic subagent to Claude Code
- Open Claude Code once to initialize Anthropic’s official marketplace. In a terminal, install the code-modernization plugin with the command below.
- Open a fresh Claude Code session. Type @ and select code-modernization:architecture-critic, or name the agent when you describe the task.
- Start with a small repository example you can check yourself.
claude plugin install code-modernization@claude-plugins-officialCompare a rewrite proposal with an incremental migration
Give the critic the original dependencies, target deployment environment, and one non-negotiable behavior. Ask for the two riskiest assumptions and the tests or measurements that could settle them.
Check the output before using it
Provide artifacts for both current and target designs. Ask the agent to tie each objection to latency, complexity, portability, or another constraint you can verify.