Elon Musk announced that X, the social-media platform formerly known as Twitter, will release the complete source code of its new recommendation algorithm to the public within seven days. The decision comes amid growing pressure from regulators and users for transparency about how posts are ranked and shown.
TL;DR
- X’s full recommendation algorithm will go open-source in seven days.
- The release includes all code used to rank organic and advertising posts.
- Musk said the process will repeat every four weeks with developer notes.
- The move follows EU scrutiny and fines over algorithm transparency.
X To Release Algorithm Source Code
Elon Musk said on X that the platform will open to the public its new algorithm, including all code for organic and advertising post recommendations, in seven days.
“This will be repeated every 4 weeks, with comprehensive developer notes, to help you understand what changed,” he wrote.
The forthcoming release covers the main recommendation engine that determines what content appears in users’ “For You” feeds and how advertisements are prioritized.
Musk said the intent is to make X’s ranking system fully inspectable, allowing anyone to view, study, and comment on how the algorithm functions.
A previous GitHub posting from 2023 contained parts of Twitter’s older “For You” feed logic but was incomplete and no longer maintained, something Musk acknowledged when he promised a full, updated release.
Topics For More Insights
Regulatory And Legal Context
Earlier this week, the European Commission extended a retention order sent to X last year that concerns algorithms and dissemination of illegal content, prolonging it until the end of 2026, spokesperson Thomas Regnier said.
In July 2025, Paris prosecutors opened an investigation into X for suspected algorithmic bias and fraudulent data extraction, which the company called a “politically-motivated criminal investigation” that threatens its users’ free speech.
Last month, the European Union fined X €120 million ($140 million) for breaching transparency obligations under the bloc’s Digital Services Act.
Regulators said the penalty related to the platform’s paid “blue checkmark” subscription, lack of transparency in its advertising repository, and failure to provide researchers access to public data.
Musk responded to the EU announcement by posting an obscenity under the European Commission’s own update on X.
Industry Reaction
Analysts noted that full algorithm transparency by a major social network is unusual and could provide valuable insight into recommendation mechanics and bias handling.
Developers expect the release will allow independent researchers to audit how engagement signals are processed and whether any weighting favors certain types of content.


Join The Discussion