Legacy Analyst subagent for Claude Code

Map the boundaries and observed behavior of a legacy codebase before choosing what to modernize.

How to add the Legacy Analyst subagent to Claude Code

  1. Open Claude Code once to initialize Anthropic’s official marketplace. In a terminal, install the code-modernization plugin with the command below.
  2. Open a fresh Claude Code session. Type @ and select code-modernization:legacy-analyst, or name the agent when you describe the task.
  3. Start with a small repository example you can check yourself.
Claude Code · Install the code-modernization plugin
claude plugin install code-modernization@claude-plugins-official

Trace 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.

Browse Agents