Port old software with AI: recover lost source and rebuild old programs
Updated · 415 projects
By whyamas
Yes, in many cases. Projects here used a language model to disassemble old binaries, document their file formats and logic, and write a new implementation that can be compared with the original. Results run from complete, playable ports to partial rebuilds still in progress, as the authors report them.
Many old programs survive only as executables, with the source lost and no build that runs on a modern system. Some projects rebuilt working C, C++, Rust or TypeScript from DOS, Apple II, Commodore 64 or early Windows binaries. Others reconstructed a game from scripts, manuals and old logs, or recompiled it to run natively on new hardware. The comparison with the original works best when you replay the same input and check the output.
Claude did the work in 375 of them and GPT in 33.
Where should I start?
Start with How to decompile a game with an AI agent, step by step, a 9 minute read. The projects after it show the same steps in practice.
Which old programs have people ported with AI?
Send me the repo or the write-up, and tell me where the model got it wrong.
Guides to read before porting old software
Which tools help with porting old software?
What people ask about porting old software with AI
It can produce new source that behaves like the original. Projects here rebuilt DOS, Apple II, C64 and Windows programs this way. The result is a reconstruction, not the original source, and it needs testing against the real program.
The strongest checks compare behaviour directly. Projects replayed a recorded demo tick for tick, ran behaviour cases against the original code, or compiled functions to matching bytes.
C and C++ are most common for close rebuilds. Some projects ported to TypeScript or JavaScript to run in a browser, and one ported to Rust.











