The source code for Portal 2 has leaked online, along with folders that appear to belong to Half-Life 2: Episode Three and other Valve projects that never came out. Valve news account Gabe Follower shared the news on X on 30 November, writing that “the full source code for Portal 2 has just leaked”. His post had been viewed more than 700,000 times by Tuesday, and Valve has not commented on the leak.
The files first circulated as an archive on Discord, and a copy was later uploaded to GitHub, where its uploader describes it as an “archival mirror of the leaked Portal 2 / Source engine development tree”. According to that description, it holds 16,768 files and takes up about 2.43 GB once unpacked. TalkEsport is not linking to the files, which contain Valve’s proprietary code.
What the Portal 2 source code leak contains
The leak holds the Portal 2 game code alongside Source engine components, with folders for systems such as rendering, materials, sound and the Hammer level editor. The uploader’s notes also list code folders labelled ep3, sob, cstrike2, dota, infested and swarm. Those names line up with Episode Three, Stars of Blood, Dota and Alien Swarm, although the notes do not explain what cstrike2 holds.
There is an important caveat, because the uploader warns that a folder appearing in the leak does not mean the full source for that game is included. The same notes say the snapshot has not been built or checked for completeness, and that the leak cannot be confirmed as fully genuine. Some reports say people on the Discord server compiled the code to test it, but TalkEsport has not been able to confirm that.
Portal 2 came out on Steam in April 2011, and its store page still lists the game today. Valve has never published the full Portal 2 source code, unlike Alien Swarm, which launched in July 2010 with what Valve called “the complete code base”. That means the swarm and infested folders are probably the least surprising part of the leak, since Alien Swarm’s code has been public for years.
Why Episode Three and Stars of Blood folders matter to Valve fans
Episode Three is the folder fans have seized on, because the game was meant to finish a story that has been left on a cliffhanger since 2007. The Steam page for Episode Two, released on 10 October 2007, still calls it “the second in a trilogy of new games created by Valve”. The third part never arrived, and Valve returned to the series in 2020 with the virtual reality prequel Half-Life: Alyx.
Stars of Blood is a much more obscure name. It was a Valve project about space pirates that was cancelled long ago, and concept art from it spread online in 2021. The leaked folder does not mean a playable version exists, and Gabe Follower described the material only as “some leftovers” from Episode Three and other Source engine games.
Fans are still waiting for any sign of a new Half-Life game. Former Valve writer Chet Faliszek has said that he would never write Half-Life 3, as our report on his comments covered. Leaked code cannot answer that question, but it may show how much of Valve’s Episode Three work survived inside the Portal 2 codebase.
Valve’s history of source code leaks, from Half-Life 2 to CS:GO
This is not the first time Valve’s code has escaped. In 2003, the Half-Life 2 source code was stolen from Valve’s network and posted online, a year before the game was released. In April 2020, code for Counter-Strike: Global Offensive and Team Fortress 2 appeared online, and Valve moved quickly to reassure players who were worried about security.
Valve said at the time that the 2020 code was “a reposting of a limited CS:GO engine code depot” that had been shared with partners in late 2017. It added that it had “not found any reason for players to be alarmed or avoid the current builds”. Valve has not said anything similar about Portal 2, which still has online co-op, although the leaked code is many years old.
Valve’s newer games are also being picked apart by dataminers, through files that ship in public updates. Gabe Follower restored a hidden lever-action rifle from CS2’s files in October, as our LAR weapon leak report explained, and another dataminer has found signs of a PvE mode for Deadlock. Valve also pays researchers who report security problems through its bug bounty programme on HackerOne.
The leak is mostly a piece of history for Source engine fans and modders, and it offers no playable Episode Three. Valve has not said whether it will try to have the copies taken down, and the GitHub mirror was still online when TalkEsport checked on Tuesday. Portal 2 is still on sale on Steam, and Valve had not commented on the leak by Tuesday afternoon.

