游侠网

Developer Rebuilds Call of Duty: Modern Warfare 2 Source Code With AI, Burning Over 500 Billion Tokens

Summary

Developer Maurice Heumann spent three months using AI agents to rebuild the source code of Call of Duty: Modern Warfare 2 (2009). The project consumed over 500 billion tokens, with 99% of functions reproduced and 83% matching the original byte-for-byte; the rebuilt game runs perfectly. Heumann used two agent setups, Claude and Codex, reading the original code through an IDA server. The agents scaled from 4 to 17 working in parallel, sharing a Discord channel and receiving notifications via GitHub webhooks. To optimize memory, the auto-compaction threshold was lowered to 42%, and an hourly task re-read instructions to keep agents on track. The models relied mainly on Sonnet 5 and Opus 5.5; he estimates actual consumption at 600 to 700 billion tokens, costing about 1,200 euros via subscriptions, or 200,000 to 250,000 US dollars at API rates. The biggest challenge was verifying correctness: early code was readable but had semantic errors, with agents adding or removing logic unbidden and reviewers failing to stop it. The team ultimately removed all comments to avoid prompt injection and switched to the original compiler for automated validation, comparing rebuilt functions with the original at the byte level, skipping address differences and checking symbol offsets to ensure identical behavior, even reproducing original bugs. After the validation scripts went live, lower-cost…

Steam

Games mentioned

Related on-site stories

  1. Call of Duty: Modern Warfare 4 Beta's First Weekend Numbers Are In, and They're Good - Just Not as High as Modern Warfare 2

    Activision's Call of Duty: Modern Warfare 4 multiplayer beta kicked off on Friday, and its first weekend has just concl…

    Eurogamer
  2. The most profound objective in any Halo series was 'spiritually inspired' by the nuke sequence in Modern Warfare 2

    A player shared a nostalgic reflection on the golden age of FPS games and put forward an intriguing point: the most pro…

    PC Gamer
  3. Inde Navarrette 收到粉丝赠送的稀有密封版《现代战争2》后惊讶不已

    演员 Inde Navarrette 因一名粉丝赠送她一份稀有的密封版《使命召唤:现代战争2》而在网络上走红。这份未拆封的收藏品在二手市场上价值不菲,而 Navarrette 的惊喜反应被拍下并迅速传播。这一事件显示了玩家与明星之间的有趣…

    IGN Games

Read original