Skip to content
Prompt & SolderHow to Ask Claude
All builds

Image: u/kanapitsas on Reddit · Half-Life 2 running natively on Apple hardware

Worked Proof shown

Half-Life 2 recompiled to run natively on Mac and iPhone

The static recompiler built for Portal 2 translates the Linux version's x86 code into C and compiles it for ARM64. Claude Code (mostly Opus 5.5) wrote the code; Episodes One and Two and Lost Coast run too.

—

Credits

  • Reddit poster kanapitsas Source ↗
  • Repository account kanapitsas Source ↗

Earliest dated source: 10 Nov 2026

Code ↗

The full story

After Portal 2, the same static recompiler now runs Half-Life 2 natively on Apple Silicon Macs and iPhones, along with Episode One, Episode Two and Lost Coast. It translates the x86 code of the Linux version into C and compiles that for ARM64, with no emulator, Wine or Rosetta. An earlier native port relied on leaked code; this one does not.

Claude Code, mainly Opus 5.5, wrote the code while the maker tested and decided. On day one Claude added per-game profiles, the SSSE3 instructions and Linux imports Half-Life 2 needs, bridged its newer Steam SDK, fixed texture filtering (macOS's OpenGL lacks sampler objects) and moved it onto Metal with Portal 2's Direct3D 9 bridge. Day two brought performance work and an iOS build with touch controls. It reaches 120 fps with Metal on an M3 Pro at 1280×720 and 60 fps on an iPhone 15 Pro Max.

An installer app finds the player's own Steam games and builds them locally in 10 to 20 minutes. No game files are included, players must own the games, and built apps shouldn't be shared. Half-Life 2 is marked experimental and the episodes have only been tested as far as their first maps.

How it was done

Tools

Themes

Loading themes…

Sources

From a short post by the maker, so the details are as they tell them.

  • Reddit: Half-Life 2 running natively on Mac and iPhone (static recompilation)Forum threadreddit.com
    Reddit poster: kanapitsasPosted 10 Nov 2026

    The maker's post in r/ClaudeAI.

  • The code: github.comCode or repositorygithub.com
    Repository account: kanapitsas

    The recompiler's repository, covering Portal 2 and Half-Life 2.

Related builds

Finding related builds…

Prompt & Solder

An independent community project. Not affiliated with Anthropic.

What this is. Real projects where people used Claude to build, fix, port, revive or take apart something, from jailbroken Kindles to rebuilt DOS games, plus the times it went badly wrong. Every build links to where it was shared, and every source is listed here.

How far to trust it. We summarise what people reported and say what each build rests on: a full write-up with code, a short post, or a passing comment. We haven't tested them ourselves. Photos are shown from the original sources with credit. Only modify hardware you own, and back up first.

Privacy. No accounts. Analytics cookies (Google Analytics) only if you accept them; no ads or cross-site tracking. Searches are counted anonymously (just the words) to show what's popular, and so are clicks on Ask Claude (just the count). The Claude connector only receives the search words your Claude sends it.

How toAsk ClaudeEvery sourceStatsSubmit a buildPrivacyRSS