As promised earlier, Elon Musk-led Twitter has published the source code of the algorithm today – that’s used to determine how the platform shows tweets in For You feed.

As per it, the company considers certain aspects like the people you follow (and some from their network), ranking, and filtering – before showing up their tweets in your timeline. While this code is officially out, Twitter held back the ad recommendations code and a few other parts to maintain user and advertiser safety.

Opening the Source Code

Most of the recommendation algorithm will be made open source today. The rest will follow. Acid test is that independent third parties should be able to determine, with reasonable accuracy, what will probably be shown to users. No doubt, many embarrassing issues will be… https://t.co/41U4oexIev — Elon Musk (@elonmusk) March 31, 2023