500B Tokens in AI Decompilation: Recreating a FPS Game
A deep dive into the challenges and achievements of decompiling a first-person shooter using AI agents and community collaboration.
Project Overview
Over the past three months, the author has dedicated time and tokens to decompiling a popular first-person shooter game. The objective was not just a proof-of-concept but a full recreation of the game, including accurate features and stability.
The project involved a team of AI agents, including Claude Max and Codex Pro, which were used simultaneously. The process aimed at accurate decompilation to C++, with a focus on readability, security, bug fixes, and portability improvements.
Community Collaboration
The project was a collaborative effort with members of the community, including RektInator, Future, st0rm, and others. Their contributions were crucial in achieving the project's goals.
The author expressed gratitude to the community members for their support and collaboration throughout the project.
Decompilation Goals
The primary goal was to achieve an accurate decompilation of the game to C++. This involved ensuring semantic correctness, readability, and the ability to compile the source code.
Additional objectives included security and bug fixes, as well as improvements in portability to run the game on various platforms, including Linux, macOS, and in a browser.
AI Orchestration and Infrastructure
The project emphasized AI orchestration and infrastructure optimization. The use of Claude Code CLI and Codex CLI for agent management was crucial.
GitHub CLI was used to manage GitHub issues for tracking progress, and Discord served as a communication platform for both agents and human participants.
Challenges and Solutions
The project faced challenges such as agent focus drift and the need for precise instructions. To address these, the team developed a detailed instruction document that was regularly updated and refreshed for the agents.
A cron job was implemented to inject the document into the agents' context, ensuring they remained focused on their tasks.
“Precise instructions are necessary. Agents have the desire to cheat if the assignment leaves room for interpretation.”
— Author