AI Services Market
AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Claude Code Nov 25, 2026

Rewrite legacy scientific software with a code modernization plugin

A write-up on using Claude Code's code modernization plugin to rewrite scientific software with agents, verifying results rather than reading the code. · Nov 25, 2026

Rewrite legacy scientific software with a code modernization plugin preview
What They Did
Stephen Turner describes Claude Code's code modernization plugin. It analyzes a codebase, maps dependencies and extracts behavior into testable rules with source citations. You approve a plan before it writes anything. It then rebuilds the code and compares old and new versions on identical inputs, with set floating-point tolerances. It adds edge cases and deliberate defects to check the tests catch them.
How It Went
The post doesn't report a rewrite he ran himself. It describes the plugin's PROVEN, PARTLY PROVEN or NOT PROVEN verdicts and cites other rewrites, such as RustQC cutting one run from 15 hours to 15 minutes.
Worth Knowing
The plugin also offers an assessment-only mode with no rebuild, which could suit an inherited codebase whose developer has left.
Try it yourself with Claude Code

Help me modernize this legacy code in [folder path], written in [old language, e.g. Fortran], into [target language]. First write tests or capture reference outputs from the existing code on [sample inputs], then rewrite it module by module and compare the new outputs against the references. You're done when all the results match within [tolerance], and give me a short report of any differences. Ask me before deleting any original files.

Read the original ↗