Full Portal 2 source code leaks online
The complete source code for Portal 2 has leaked online and can be found on GitHub and other sites.
It includes the game's client, server and gameplay code, reportedly more than 16,000 files and roughly 2.43 GB without compression[1]. The archive also contains leftover directories from other Valve projects, including an "ep3" folder with code from the cancelled Half-Life 2: Episode Three.
A file called "Blob Demo Monster" carries a 1996-2007 Valve copyright header and links to the experimental blob enemy tech seen in a separate Episode Three leak in November 2026. Other folders reference Alien Swarm, Dota and the cancelled sci-fi project Stars of Blood. Community members say the archive first appeared on a Discord server for studying early Portal 2 builds, after circulating privately among collectors for years. The article notes that these leftovers do not mean Half-Life 3 is coming, only that the projects used the same engine. In 2026 Valve also suffered a leak of a 12 TB Steam2 archive, which contained enough material to build a prototype of F-Stop, a Portal prequel.
Sources
-
eTeknix
Full Portal 2 Source Code Leaks Online





