Source · release

code-modernization plugin 1.2.0: extraction depth and agent approval

Summary

code-modernization is a plugin in Anthropic's official Claude Code marketplace. It reads legacy code with a team of sub-agents and extracts its business rules, each with a citation, as the basis for a rewrite. Version 1.2.0 was merged on 2026-12-02 and mainly controls cost: you choose how deep to extract, and you approve how many agents it may start. This note is based on the commit messages; the plugin's README was not read.

Key points

  • Install: /plugin install code-modernization@claude-plugins-official. The official marketplace is available in Claude Code by default. Run /plugin to browse it if the name has changed.
  • --depth standard|thorough:
    • standard is the default.
    • thorough writes one rule per decision in the code and costs more.
  • Cost estimate first: every run shows the estimated cost of both depths. It never starts more agents than you approved.
  • More reliable runs:
    • Batches are sized by the densest shards of code.
    • Rules with the same name are kept when a referee agent moves their citations.
    • A failed re-run never drops a rule that was already confirmed.
  • Good for: understanding and documenting a legacy codebase (for example before a port to a new language) when you want a bounded, predictable agent bill.
  • In the same marketplace on 2026-12-01: scan-plugins now reviews large plugins in parts, and the convex plugin was removed.

Why it matters

Fan-out sub-agent workflows can get expensive without warning. An estimate shown up front, with an agent cap you approve, is a pattern worth copying in your own multi-agent skills.