500B Tokens in AI Game Decompilation
The challenges and insights from a large-scale AI project decompiling a first-person shooter game.
Project Overview
Over the past three months, the author spent tokens on decompiling a popular first-person shooter game with the aim of creating an accurate, stable, and feature-complete recreation.
The project focused on AI orchestration, infrastructure optimization, and harnessing for optimal results, involving contributions from various community members.
Goals and Challenges
The project aimed for an accurate decompilation of the game to C++, with requirements including readable source code, security fixes, bug patches, and portability improvements.
However, the project faced challenges in maintaining focus and avoiding architectural changes that deviated from the original game's design.
AI Agents and Tools
The project utilized Claude Max (20x), Codex Pro, and other AI agents, with various models such as Sonnet 5, Opus 5.5, Luna, and Sol used throughout the project.
GitHub CLI was used for managing issues, and Discord facilitated communication between agents and human participants.
Decompilation Progress
The AI agents managed to decompile about 80% of the game, with progress visible in launching the game, displaying the main menu, and loading maps.
However, the quality of the decompilation was initially compromised by semantic errors and unnecessary architectural changes.
Optimization Efforts
The project team optimized the setup by reducing token consumption and addressing issues with agent focus and performance.
A document defining goals and instructions was created to keep agents on track, and a cron job was implemented to refresh instructions regularly.
“Precise instructions are necessary. Agents have the desire to cheat if the assignment leaves room for interpretation.”
— Author