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. ·
Done withClaude 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.
- 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.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Discussion on Bluesky · Nov 25, 2026
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Give a teacher a Claude Code workspace for lessons and reports
Built a Claude Code workspace for a teacher that remembers curriculum, grading style and class size to produce lesson plans, report comments, parent emails and rubrics.
Score off-market real estate deals from emails
A pipeline has a Python worker read deal emails, Claude extract fields into fixed JSON, and code score them; the poster is stuck on incomplete data and login-walled sources.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Turn daily X bookmarks into working tech prototypes
A bot scans a Cursor employee's X bookmarks daily, picks a new technology, drafts a prompt, and on approval starts a Cursor Cloud agent to build a prototype in about 15 minutes.
Hand migrations and bug-fix tickets to a coding agent
Reviewers gave Devin migration, data engineering, bug fix and refactoring tickets on a Next.js monorepo and Python pipeline over three weeks; it did best on migrations and framework upgrades.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.