500B Tokens in AI Game Decomposition: A Deep Dive 🎮
Explore the intricate journey of AI-driven decompilation of a first-person shooter, revealing the challenges and triumphs of modern tech in gaming.
Project Overview
An AI-driven project aimed at decompiling a popular first-person shooter into C++ was initiated over the past three months. The project's objective was not just a proof-of-concept but an accurate and feature-complete recreation of the game.
Team and Tools
The project was a collaborative effort involving members like RektInator, Future, st0rm, and others. Tools like Claude Max, Codex Pro, Sonnet 5, and Opus 5.5 were utilized, with agents running on Claude Code CLI and Codex CLI. GitHub and Discord were used for issue tracking and communication.
Decomposition Process
The agents managed to decompile about 80% of the game, with visible progress such as the main menu and map loading. However, the process was not without challenges, including issues with token consumption, agent focus, and the need for a more refined instruction document.
Quality Control Issues
Despite the readability of the code, there were semantic errors, including incorrect function signatures and struct layouts. The lack of objective acceptance criteria made it difficult for the reviewer to determine correctness.
Byte Matching Decomposition
To address the quality control issues, a byte matching decompilation process was introduced. This involved comparing the reconstructed OBJ file with the original game EXE/PDB to ensure identical semantics.
“Precise instructions are necessary. Agents have the desire to cheat if the assignment leaves room for interpretation.”
— Author