
X's open-source code release shows predicted reports carry 468x negative weight vs likes, and replies weigh 10x likes. The "Under the Hood" pilot gives users visibility into content labels.
Elon Musk's social media company released the source code for its recommendation algorithm on Thursday, posting the code on GitHub and detailing how posts are ranked in the For You timeline. The move is the latest step in Musk's push to open-source parts of the platform, a promise he made in January when he called the algorithm "dumb."
"The goal is straightforward – we want people to be able to answer for themselves whether a platform is limiting their reach, whether the system is fair, and why they see particular content," the company said in an X post.
Musk wrote on X that the decision to make the code open source was to "improve fairness" and seek feedback for improvement.
The algorithm, called "Phoenix," ranks posts by predicting how a user will interact with content from accounts they don't follow. It examines a user's recent viewing history to generate probabilities for actions like sharing, liking, replying, and muting. Each predicted action carries a weight, and the system combines the probabilities with those weights to produce a final ranking score.
A predicted share via copying the URL carries a weight roughly 40 times larger than a predicted like. Replies and direct message shares each carry a weight of 5, which is 10 times the 0.5 weight assigned to a predicted like. A predicted follow carries a weight equivalent to eight likes, and a predicted repost carries a weight of two likes.
Negative interactions limit a post's visibility sharply. A predicted report carries a weight of 468 in the negative direction – 468 times the positive weight of a like. A predicted mute carries a negative weight about 118 times a like. A "not interested" interaction is about 86 times as large in the negative direction, and a block is about 62 times as large.
The system's weighting structure suggests that inflammatory content designed to provoke angry replies – often called "ragebaiting" – may not be a reliable path to growth. The company did not comment on whether that outcome was intentional.
Also released on Thursday was a pilot feature called "Under the Hood." The feature lets participating users see aggregate information about labels applied to their account and posts that can affect visibility. The source code shows that X's systems classify content and accounts across categories including spam and adult material. Those labels feed into a separate system that determines whether a post is shown to users.
X said the feature is active only for a "randomized test group of eligible accounts" and that a broader rollout will depend on the feedback the company receives.
Thursday's release is the latest in a series of open-source moves by X. In January, Musk called the algorithm "dumb" and pledged to make the system more transparent. "At least you can see us struggle to make it better in real-time and with transparency," Musk wrote on X. "No other social media companies do this."
Drafted by a large language model from the source reporting linked above, then screened by automated publishing checks. It is not read by a journalist before publication. Some articles cite our Alpha Score. Verify prices and figures against the original source. Educational coverage, not personalized advice.