Global AI, Malaysia Angle / AI news for Malaysia
AI agents migrated 40,000 lines of Fortran, with humans at every gate
Mistral has published how it moved a physics-heavy reservoir simulator off Fortran 77. The useful part is not the success. It is the two attempts that did not work.

In brief
- Mistral published an account on 9 September 2026 of migrating 40,000 lines of Fortran 77 to C++ for a European energy operator, a physics-heavy reservoir simulator with no test suite and no centralised documentation.[1]
- Fully autonomous agents produced working code that was not modernised. A structured planner, coder, tester and reviewer crew did better, then stalled on hard bugs with nobody to unblock them.[1]
- What shipped was a human operating agent workflows module by module, behind a parity harness that checked the new code matched the old one numerically.[1]
A documented migration, including the parts that failed
Every organisation with a core system older than most of its staff asks the same question about AI: can it finally move the thing? Mistral has published a detailed answer, and its failures are more useful than its success.[1]
The French lab says it helped a European energy operator migrate 40,000 lines of Fortran 77 to C++. The code is a reservoir simulator, with no test suite and no central documentation. The first sprint covered 40,000 of 300,000 lines.[1]

Why this is not a translation job
Translating syntax between languages is largely solved, Mistral says. Migrating a full procedural system into object-oriented C++ is not, because it forces architectural refactors. Fortran 77 was standardised in 1977 and has no modules, no namespaces and no structured types.[1]
State lives in COMMON blocks, global memory shared across the entire program. Variables are implicitly typed by their first letter, so a misspelt name silently creates a new variable instead of raising a compiler error. Names are capped at six characters.[1]

Prove the numbers first, then move the code
Before any agent touched the code, the team built a parity harness. Agreement meant numerical equality of outputs: the final results and critical intermediate points flagged by the client's own reservoir engineers.[1]
They added subroutines to export the Fortran program's state, a C++ test framework to load those checkpoints, and instruction files to steer agents into using them. Mistral calls this a net-positive investment that should come first in any modernisation job.[1]

Documenting a codebase nobody could read
The documentation sat in old PDFs and in comments buried inside the Fortran itself. The team parsed the codebase into a caller-callee tree, then used Mistral's Vibe command line tool to spawn more than a hundred agents to document it.[1][2]
Work started at the leaves of the tree and moved upward. Each node spawned a subagent that documented it and opened a pull request. A reviewer agent ran on a schedule, checking those requests and scheduling fixes. Mistral calls that documentation pass one of the largest side wins.[1]
Full autonomy failed, twice
The first attempt gave one agent per Fortran subroutine a week of full autonomy. The result was functional, but COMMON blocks became global structs one for one and GOTO control flow stayed intact. Mistral calls it Fortran retyped in C++ syntax.[1]
The second attempt added structure: a planner, a coder, a tester and a code quality reviewer on each module. Quality improved, then the agents hit bugs, tried a few fixes and stalled with nobody to intervene. The version that shipped puts a human in that gap.[1]
Why Malaysia should care
Malaysian banks, insurers, utilities and agencies run core systems written decades ago, and many of the people who wrote them have retired. This account says the binding cost is not the model. It is the harness that proves the new code is correct, the documentation nobody wrote, and the engineer who signs off.
Malaysian banks, insurers and GLCs with legacy cores
A migration of this shape needs a runnable baseline and a way to prove the new output matches the old.[1]
Practical move: Check whether your core system can still be built and compared before budgeting a migration.
Public sector technology teams
The Ministry of Digital's own agentic AI plan for MyGOV Malaysia is phased, with human-in-the-loop oversight under the Public Sector AI Adoption Guidelines.[3][1]
Practical move: Write the human review gate into the procurement, not into the pilot report.
Malaysian software houses and SMEs
The expensive parts were not model calls. They were the parity harness, the documentation pass and the engineer reviewing every change.[1]
Practical move: Price the reviewer and the test harness before quoting an AI modernisation job.
What Malaysians can do now
- Find out whether your oldest system can still be built and run today. That answer sets the price.
- Insist on an equality test between old and new output before any migration code is written.
- Do not buy full agent autonomy for a legacy migration. Buy the review gate that makes it safe.
What we still do not know
One vendor's account of one codebase, not an audited benchmark
- Mistral publishes no timeline, cost, headcount or token spend for the migration, so the price of repeating it is unknown.
- The remaining 260,000 lines are not covered, and the post says harder starting conditions bring challenges it does not discuss.
- Nothing in the post names Malaysia, a Malaysian organisation or a local partner, and no independent party has verified the result.
Sources
- 1.Modernizing complex legacy code with AI agents Mistral AI, 9 September 2026
- 2.Mistral Vibe (formerly Le Chat) - AI chat and coding agent Mistral AI
- 3.MyGOV Malaysia: Embarking On A New Era With Agentic AI Ministry of Digital Malaysia, 10 August 2026
- 4.File:Dept of Agriculture Computer Room.jpg Wikimedia Commons, 29 October 1969
- 5.File:Oseberg feltsenter, Nordsjøen (27945050314).jpg Wikimedia Commons, 20 July 2016
- 6.File:Petronas Towers (18790222549).jpg Wikimedia Commons, 22 April 2014
- 7.File:Kuala Lumpur Malaysia Skyline-of-Kuala-Lumpur-Sentral-01.jpg Wikimedia Commons, 1 November 2014


