500+ Billion Tokens Later: Letting AI Agents Decompile A First-Person Shooter
Web page · https://momo5502.com/posts/2026-10-09-game-decompilation
First seen by Oriel on .
AI summary
The author describes using autonomous AI agents to decompile a first-person shooter into C++, finding that byte-matching verification was key to improving correctness and scaling work.
- The project used Claude Code CLI and Codex CLI agents, tracked one GitHub issue per translation unit, and coordinated through Discord.
- Initially, agents produced readable but semantically incorrect code; reviewers struggled because correctness lacked objective acceptance criteria.
- A verification script compared compiled object code with the original executable, accounting for relocations, and CI checked recorded functions for regressions.
- After rules against assembly and verification-script tampering were added, 99% of functions were present and 83% were byte-exact; the game ran with all original features.
- Strict machine-checkable feedback made cheaper models useful, while exact matching increased effort and could fail on compiler or linker nondeterminism; estimated usage was 600-700 billion tokens.
#ai agents #software decompilation #compiler verification #agent orchestration
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | fdxjtr | https://momo5502.com/posts/2026-10-09-game-decompilation/ Read discussion |