In 2023, the web site then generally known as Twitter partially open sourced its algorithm for the primary time. In these days, Tesla billionaire Elon Musk had solely not too long ago acquired the platform, and he claimed to be on a mission to restructure the social media platform to make it extra clear.
Nevertheless, the algorithm’s code launch was swiftly critiqued for being “transparency theater,” with critics noting that it was “incomplete,” and that it didn’t reveal a lot in regards to the internal workings of the group, or why the code labored the best way that it did.
Now the positioning (rebranded as X) has open sourced its algorithm once more, fulfilling a promise made by Musk final week. “We’ll make the brand new 𝕏 algorithm, together with all code used to find out what natural and promoting posts are beneficial to customers, open supply in 7 days,” he’d mentioned. Musk additionally promised to supply transparency into the algorithm each 4 weeks for the foreseeable future.
In a put up on GitHub on Tuesday, X supplied an accessible write-up about its feed-generating code, together with a diagram of how this system works.
What has been revealed isn’t significantly earth-shattering — but it surely does present a peek behind the algorithmic curtain. The diagram reveals that, when sifting about for content material to feed a specific person, the positioning’s algorithm considers their engagement historical past (what posts they’ve clicked on, and so on.) and surveys latest in-network posts. It additionally conducts a machine-learning-based evaluation of “out-of-network” posts — as in, content material from accounts that the person doesn’t essentially comply with — that it believes the person may additionally discover interesting.

The algorithm then filters out sure sorts of posts, together with ones that come from blocked accounts or which might be related to muted key phrases, in addition to content material that has been deemed too violent or spam-like. The algorithm then ranks this content material based mostly on what it thinks the person will discover most interesting. This course of considers components like relevance and content material variety so customers don’t simply get a bunch of posts which might be all alike. The algorithm additionally considers content material in line with the probability that the person will prefer it, reply to it, repost it, favourite it, or in any other case interact with it ultimately.

This complete system is AI-based, in line with X. The GitHub write-up launched Tuesday notes that the system “depends totally” on the corporate’s “Grok-based transformer” to “study relevance from person engagement sequences.” In different phrases, Grok is taking a look at what you’re clicking and liking and feeding that data into the advice system. The write-up additionally notes that there is no such thing as a “guide function engineering for content material relevance,” which means people don’t manually modify how the algorithm determines what’s related. It provides that the automation “considerably reduces the complexity in our knowledge pipelines and serving infrastructure.”
Techcrunch occasion
San Francisco
|
October 13-15, 2026
Why is X revealing all of this now? It’s not completely clear. Up to now, Musk has claimed that he desires to make the platform an exemplar of company transparency — a theme that continues to at present. In 2023, when the Twitter algorithm was first revealed, Musk mentioned that offering “code transparency” can be “extremely embarrassing at first” however would in the end “result in fast enchancment in advice high quality.” He added: “Most significantly, we hope to earn your belief.” With its first code open sourcing, the platform proclaimed a “new period of transparency” for Twitter.
Although Musk has talked transparency, sure features of the platform have arguably grown much less open since Musk took it over. When the tech billionaire purchased Twitter in 2022, the positioning was notably compelled to transition from a public firm to a non-public one — an evolution that isn’t usually synonymous with openness. Whereas the positioning used to launch a number of transparency studies a 12 months, X didn’t launch its first transparency report till September of 2024. In December, X was additionally fined $140 million by European Union regulators who claimed that the positioning had violated “transparency obligations” beneath the Digital Providers Act (DSA), and argued that the positioning’s verification verify mark system had made it tougher for customers to guage the authenticity of explicit accounts.
X has additionally been beneath stress over the previous month because of the methods by which its chatbot, Grok, have been used to create and distribute sexualized content material. The California Legal professional Normal’s workplace and congressional lawmakers have each scrutinized the platform in latest weeks, citing claims that Grok has been used to create bare pictures of girls and minors. In consequence, some might view this enchantment to openness as simply extra theater.