Mistral 如何用 AI 智能体迁移 4 万行 Fortran 77 遗留代码
Mistral 帮助一家欧洲能源运营商把 4 万行 Fortran 77 的油藏模拟器迁移到 C++,做法是先搭建数值一致性校验框架,再用 AI 智能体整理文档并配合人工审核的分模块工作流。项目用自定义解析器生成调用树,通过 Vibe CLI 启动上百个智能体逐节点补文档并提交 PR,由定时运行的审查智能体复核。团队总结出三条经验:先建一致性校验再写迁移代码、先理顺文档再依赖智能体、结构化工作流加人工审核优于完全自主或纯手工。首个冲刺完成 30 万行中的 4 万行核心功能。

++. Mistral successfully migrated 40,000 lines of a physics-intensive reservoir simulator by building a parity harness for numerical verification, documenting the codebase with AI agents, and using structured workflows with human oversight to ensure high-quality, maintainable code. Key lessons include prioritizing numerical agreement, organizing documentation before migration, and balancing agent autonomy with human review. Legacy scientific codebases accumulate over decades, and when original a
匹配字段正文





