Liveblog: Open-sourcing Twitter's algorithm
We're eager to see Twitter's algorithm go open source. Sourcegraph devs (and our Discord community) will be liveblogging the most interesting things we find.

We're eager to see Twitter's algorithm go open source. Sourcegraph devs (and our Discord community) will be liveblogging the most interesting things we find.
We are signing off for now. Check out the following:
Government requests for intervention on Twitter must have been so pervasive Twitter Engineers even have a class for it in the Twitter Algorithm pic.twitter.com/F05sD5h9Lkβ Alec Sears (@alec_sears) March 31, 2023
=======
Twitter just released source code for "the algorithm" Oh, what file is this? Predicates for tweets on the home timeline? Oh what is that 2nd image? pic.twitter.com/UE3dU8e3Osβ Γlafur Waage (@olafurw) March 31, 2023
What is this? ( "author_is_elon", candidate => candidate .getOrElse(AuthorIdFeature, None).contains(candidate.getOrElse(DDGStatsElonFeature, 0L))),https://t.co/mLdjWWYHrFβ David Mander (@davmander) March 31, 2023
The 4 types of Twitter posters, according to the just open-sourced algorithm π―https://t.co/xTLX77vJ75pic.twitter.com/SaQN03P9eKβ Amjad Masad β (@amasad) March 31, 2023
A quick search in Twitter's Recommendation Algorithm for Ukraine. πΊπ¦ topic is on the same list as: Do not amplify, do not public publish, medical misinformation, NSFW, and violence. What do you think it means? π€ pic.twitter.com/PYqm8pZjI4β Mykhailo (@mxpoliakov) March 31, 2023




Twitter recommendation source code now available to all on GitHub https://t.co/9ozsyZANwaβ Elon Musk (@elonmusk) March 31, 2023
The real magic of Twitter is in our recommendations algorithm, which powers the hit Tweets you see in your For You timeline. We broke down how it all works here: https://t.co/2s5Hk57JPeβ Twitter Engineering (@TwitterEng) March 31, 2023
Blog post TL;DR (thank you Cody)
The code is now live: https://sourcegraph.com/github.com/twitter/the-algorithm
We are digging in!
@sqs: A little under 10 hours to go until it's open source. We'll be back closer to 12pm PDT (unless Twitter unexpectedly releases it early, which might happen!). If you want to start exploring the rest of Twitter's open-source code in the meantime, here's a starting point.

With Sourcegraph, the code understanding platform for enterprise.
Schedule a demo