How to add the Legacy Analyst 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:legacy-analyst, 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-officialTrace one invoice from import through storage
Ask the analyst to trace the path from an input file through validation and writes. Check its evidence against a sample fixture and mark any branch that could not be exercised or whose source is missing.
Check the output before using it
Separate observed static behavior from runtime assumptions. Give it the actual entry point or scheduled job so it does not start from a similar dead path.