Dev used AI agents and more than 500 billion tokens to rebuild Call of Duty: Modern Warfare 2's source code — 83% of the 2009 shooter's functions now match the original byte for byte

A soldier in white snow camouflage and goggles runs across an icy airfield as black smoke rises from a fire behind a parked fighter jet, with more soldiers following.
(Image credit: Activision)
17

Developer Maurice Heumann details in his blog how AI agents were able to decompile Call of Duty: Modern Warfare 2 (2009), which the post calls only “a popular first-person shooter,” in an effort to rebuild its source code in C++, taking three months and over 500 billion tokens. The agents originally attempted to cheat a byte-for-byte check added after the first month of code ran, but it was “semantically wrong,” and now 99% of the game’s functions are present, with 83% matching the original.

Heumann’s goal since the beginning has been to produce an “accurate, stable and feature-complete recreation,” and he wrote on X less than two weeks ago that the game was fully playable. By his estimate, the project consumed 600–700 billion tokens. In another X post, he said he doesn’t pay for his own tokens but put the cost at about €1,200 with subscriptions or $200,000–$250,000 with API tokens.

Latest Videos FromTom's Hardware
Shane Downing
Contributing Writer

Shane Downing is a Contributing Writer for Tom’s Hardware, covering consumer storage, PC hardware, and AI.

  • alrighty_then
    I like the observation that the agents are trying to "cheat." It's true in a human sense but in reality the reason it happens is you didn't give enough guardrails to avoid cheating. So the AIs are just giving the quickest solution they can. Fair play.

    I guess this explains how the single user started recreating the Adobe suite and why people said they'd be sued...pretty sure reverse-engineering the source to recreate it violates something in the EULA.
    Reply
  • King_V
    By his estimate, the project consumed 600–700 billion tokens. In another X post, he said he doesn’t pay for his own tokens but put the cost at about €1,200 with subscriptions or $200,000–$250,000 with API tokens.
    ...
    One takeaway lesson is that you should be willing to move past failures as “Generating code is cheap now. Throw it away if it’s bad” and focus on correctness over productivity.
    I imagine that level of exceeding cost with the subscription vs what the tokens would cost is likely to not be tolerated by the AI provider(s) for very long.

    Kinda reminds me of a guy I knew years ago who was running multiple PCs mining bitcoin. I wondered how much he had to pay in electric costs, and he'd said that, where he was renting, electricity was included. I can't imagine that the landlord put up with that for very long.
    Reply
  • Fomdoo
    So glad they can build more data centers and make GPUs, ram, and ssds cost 10x as much for stupid shit like this.
    Reply
  • Blastomonas
    Another day, another story about some "Dev" wasting resources on pointless stuff.
    Reply
  • PEnns
    Another amazing use for the amazing AI in peoples' empty lives.

    The overlords must be beaming with pride.
    Reply
  • pjmelect
    I have some software abandoned by its developer, reading this I would very much like to decompile it and fix some of its many bugs. I will have to look in to this myself. I wonder how practical it would be to do this for a normal person.
    Reply
  • USAFRet
    pjmelect said:
    I wonder how practical it would be to do this for a normal person.
    As a long term developer, I would say "nearly impossible".

    You can try, but I wouldn't expect coming up with good results.
    Reply
  • alan.campbell99
    Would he have bothered if he had to actually pay the full, unsubsidised cost of all those tokens? I'm pretty sure company IP considerations wouldn't allow for him to recoup anything much less any return on such 'investment'.
    Reply
  • bill001g
    alan.campbell99 said:
    Would he have bothered if he had to actually pay the full, unsubsidised cost of all those tokens? I'm pretty sure company IP considerations wouldn't allow for him to recoup anything much less any return on such 'investment'.
    This is the problem with most AI stuff you see being bragged about. First the project itself must recover the cost of the ai development. Then the AI company selling the tokens must also make a profit or at least break even. Once the AI companies raise the prices so they do not go out of business it becomes harder and harder to justify using it. We already see many companies working to cut their AI cost and the pricing is not even close what is required to pay back all the investment in data centers and power plants.
    Reply
  • das_stig
    All that effort for what? Try using the resources to benefit mankind, maybe cure cancer, dementia, aids etc !!
    Reply