Claude Code ports Half-Life 2 natively to Mac and iPhone in two days
kanapitsas · reddit · 2026-11-10
Developer kanapitsas used Claude Code (mostly Opus 5.5) to statically recompile Half-Life 2 (plus Episode One/Two and Lost Coast) to run natively on Apple Silicon, going from first commit to playable on iPhone in under two days.
The recompiler from his Portal 2 port translates the Linux x86 code to C, then compiles for ARM64. Day 1: Claude added per-game profiles, SSSE3 instructions, missing Linux imports, bridged the newer Steam SDK, fixed unfiltered textures (macOS OpenGL lacks sampler objects), and got HL2 running on Metal via the Portal 2 Direct3D 9 bridge. Day 2: performance, Metal by default, and an iOS build with touch controls.
The project is open source (source-recomp) with an installer app that finds your Steam games and builds them on your Mac (10-20 min per game). Requires owning the games on Steam; no game files included; unofficial and unaffiliated with Valve.
More from coding & agent
- Paid agents vs open-source clones: self-hosting shifts machines, model bills and data to you — femke_plantinga · 2026-11-10
- Slite Agent adds MCP sources: Granola, Miro, Box, monday.com in one minute — femke_plantinga · 2026-11-10
- Dev open-sources Grok bot that turns top X long-form posts into a Chinese news site — vista8 · 2026-11-10
- InfraRSI Applies Recursive Self-Improvement to Training Infra: 2.75x Speedup, MFU Lifted from 17.4% to 30% — TokenRhythm · 2026-11-10
- H3 Editor: open-source timeline editor lets you write text shots for MiniMax H3 in ComfyUI — igorls1 · 2026-11-10
- MCP server security hinged on $HOME — and the agent controls the environment — Relevant_Mousse_9117 · 2026-11-10