AI game decompilation: games decompiled, recompiled and ported with AI
AI game decompilation means using a language model to turn a game's compiled machine code back into source code that people can read, build and change. The projects on this page did that for PC, console and home computer games, from small 6502 ROMs to PlayStation and Nintendo 64 titles. Most used an agent such as Claude Code or Codex, often connected to Ghidra or IDA through an MCP server, so the model could read the disassembly, rename functions and check its own work against the original. Some aimed for a matching decompilation, where the rebuilt code compiles to the same bytes as the game. Others recompiled a game to run natively on new hardware, ported it to the web, or patched one behaviour for a mod. Each entry links the author's own writeup or repo and lists the model, tools and reported outcome. Results vary: some games are fully playable, others are partial and still in progress.
- Projects
- 19
- Outcomes
- Works14Partial5
- Models used
- Claude14GPT5
The projects
Share the writeup or repo, and what the AI got right and wrong.
Related guides
Common questions
Yes, with limits. The projects here show models turning game binaries into readable C, C++ or new ports, but nearly all of them used a human to set goals, check results and fix mistakes. Matching decompilations also need a build setup that compares the output with the original bytes.
It is a decompilation where the rebuilt source compiles to exactly the same machine code as the original game. Tools such as objdiff and decomp-permuter measure how close each function is, which gives the model a clear signal for whether its guess is right.
Most pair an agent such as Claude Code or Codex with a disassembler. Ghidra is the most common, usually through an MCP server like GhidraMCP or REA. Some add an emulator so the model can test behaviour while it works.
It depends on where you live and what you do with the result. Many projects keep game assets out of the repo and require a legal copy of the original. This is not legal advice; read the site policy and check the law that applies to you.










