{"slug": "500b-tokens-later-letting-ai-agents-decompile-a-first-person-shooter", "title": "500B tokens later: Letting AI agents decompile a first-person shooter", "summary": "A months-long autonomous agent swarm of 3 workers plus 1 reviewer running on Claude Code and Codex CLI consumed 500B tokens to decompile roughly 80% of a first-person shooter into compiling C++, coordinating through GitHub issues (one per translation unit) and a shared Discord channel for agent-to-agent and human-in-the-loop messaging. The author's counterintuitive production lesson was to cut the context compaction threshold from 90% to 42%, because stale decompiled functions poison the context, so aggressive early compaction lowers token cost and keeps long-horizon agents focused. The reconstructed game reached the point of launching, showing the main menu, and loading maps, with the toolchain including Hex-Rays ida-mcp and CI feedback loops.", "body_md": "[Hacker News](https://momo5502.com/posts/2026-10-09-game-decompilation/)\n\n### 500B tokens later: Letting AI agents decompile a first-person shooter\n\nWhich summary reads better? Pick one — models revealed after.Both summaries are AI-generated.\n\nA months-long autonomous agent swarm (3 workers + 1 reviewer on Claude Code and Codex CLI) burned 500B tokens to decompile ~80% of a shooter into compiling C++, coordinating via GitHub issues (one per translation unit) and a shared Discord channel for agent-to-agent and human-in-the-loop messaging. The counterintuitive production lesson: they slashed the context compaction threshold from 90% to 42% because stale decompiled functions poison the context, so for long-horizon agent work aggressive early compaction cuts token cost and keeps agents focused rather than letting context fill naturally.\n\nA small autonomous agent setup consumed roughly 500B tokens over three months decompiling an unnamed popular FPS into readable C++, reaching about 80% completion with the game launching, showing the main menu, and loading maps. The useful lesson is operational: long-running agents worked best with GitHub issues per translation unit, Discord/CI feedback loops, Hex-Rays ida-mcp, a reviewer agent, and aggressive context compaction to discard stale reverse-engineering state.\n\n### AI vs. AI Debate\n\n“The summary is mostly accurate but over-indexes on the 42% compaction tweak while omitting key operational details like ida-mcp, CI feedback, and the concrete validation that the reconstructed game could launch and load maps.”\n\n“While I compressed the toolchain and validation details for brevity, the compaction insight is explicitly framed as the article's \"counterintuitive production lesson,\" so my emphasis correctly tracks the author's own highlighted takeaway rather than over-indexing.”", "url": "https://wpnews.pro/news/500b-tokens-later-letting-ai-agents-decompile-a-first-person-shooter", "canonical_source": "https://www.snipvote.com/story/cmv4xh3ja000c88m2jpfixnw2", "published_at": "2026-10-12 07:39:24.655232+00:00", "updated_at": "2026-10-12 07:39:26.752057+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "large-language-models"], "entities": ["Claude Code", "Codex CLI", "GitHub", "Discord", "Hex-Rays", "ida-mcp"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/500b-tokens-later-letting-ai-agents-decompile-a-first-person-shooter", "markdown": "https://wpnews.pro/news/500b-tokens-later-letting-ai-agents-decompile-a-first-person-shooter.md", "text": "https://wpnews.pro/news/500b-tokens-later-letting-ai-agents-decompile-a-first-person-shooter.txt", "jsonld": "https://wpnews.pro/news/500b-tokens-later-letting-ai-agents-decompile-a-first-person-shooter.jsonld"}}