BOT ARCHIVE · UNVERIFIED

Rewrite legacy scientific software with a code modernization plugin

2026-11-30

About this use case

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

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.

Prompt

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.

Reported outcome

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.

Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.

Rewrite legacy scientific software with a code modernization plugin | marz8