Building a SaaS tool or MCP server? Get listed or sponsor AgentStackList →
Gemini Coding By Carlos Mendoza

Google's agents turned a 174,000-line Fortran ocean model into safe Rust in 59 minutes, and it ran faster

The Antigravity team used Gemini 4 Argon agents to port FVCOM, a coastal ocean model with 174,774 lines of Fortran across 264 files, to safe Rust in 59 minutes. Their write-up says the Rust version matched the original on 100 random seeds to 12 decimal places, uses 54% less memory, runs 1.88 times faster (883 ms down to 469 ms), shipped with 42 tests at 96.8% branch coverage, and caught 6 long-standing bugs on the way. The whole workflow is released as an open-source skill in Google's Skills repo on GitHub, which you run with /migrate-to-rust and a repo URL.

Why it matters

Old Fortran and C still run weather, climate and engineering code, and the people who wrote it are retiring. A repeatable, test-checked migration skill turns 'rewrite it someday' into an afternoon experiment you can actually check.

Who it's for

Research software engineers, scientific computing teams and anyone maintaining legacy Fortran.

How to try it

  1. Open Antigravity and add the migrate-to-rust skill from Google's Skills repo on GitHub.
  2. Run /migrate-to-rust with the GitHub URL of the Fortran project you want to port.
  3. Make the agent compare the Rust output with the original on many random inputs before you trust it, the same way Google's write-up did.
  4. Review the bugs it flags in the old code with someone who knows the science behind it.

Plan & availability: The skill is free and open source in Google's Skills repo on GitHub. Running it needs Antigravity with access to Gemini 4 Argon; model limits depend on your Google AI plan. Google's numbers are for FVCOM, so your own results will vary.

Source: @antigravity on antigravity.google

Written by Carlos Mendoza from the original post. Checked Nov 4, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.

antigravitygemini-4-argonrustfortranlegacy-codeskills

More Gemini tricks

All Gemini tricks →