Twitter Reveals Parts of Source Code Behind the Microsite's Algorithm

Elon Musk also said Twitter will update its recommendation algorithm based on user suggestions every 24 to 48 hours.

Advertisement
By Reuters | Updated: 1 April 2023 10:49 IST
Highlights
  • The move comes at the behest of its billionaire owner Elon Musk
  • He said code transparency would lead to higher trust among users
  • Third parties should be able to analyze the open-sourced code

Elon Musk acquired Twitter for $44 billion last year

Photo Credit: Reuters

Twitter on Friday made public parts of the computer code that decides how the social media site recommends content, allowing users and programmers a peek into its workings and the ability to suggest modifications to the algorithm.

The company said in a blog post it uploaded the code in two repositories on code-sharing platform Github. They include the source code for many parts of Twitter, including the recommendations algorithm which controls the tweets that users see on their timeline.

Advertisement

The move comes at the behest of its billionaire owner Elon Musk, who has said code transparency would lead to higher trust among users and rapid improvements to the product.

It also serves to address common concerns from users and lawmakers, who are increasingly scrutinizing social media platforms over how algorithms select the content that users see.

Advertisement

Musk tweeted on Friday that third parties should be able to analyze the open-sourced code and "determine, with reasonable accuracy, what will probably be shown to users."

"No doubt, many embarrassing issues will be discovered, but we will fix them fast!" he tweeted.

Advertisement

Musk also said Twitter will update its recommendation algorithm based on user suggestions every 24 to 48 hours.

On Friday, Musk and some Twitter employees held a session on Spaces, Twitter's audio chat feature, asking users to bring recommendations and questions about how the platform's code works.

Advertisement

One person questioned why Twitter's code appeared to classify users as Republicans or Democrats. A Twitter employee responded that it was an old feature that was not important to the platform's recommendation system, and the company was looking to remove it.

The repositories on Github do not include the code that powers Twitter's ad recommendations, the company said.

It also said it excluded code that would compromise user safety or privacy, as well as details that would undermine efforts to prevent child sexual abuse material on the platform.

The news also comes after parts of Twitter's source code were leaked on Github, which took down the code last week at Twitter's request.

Twitter asked the US District Court for the Northern District of California to order Github to produce "all identifying information" associated with the Github account that had posted the leaked code, according to a legal filing.

© Thomson Reuters 2023
 


The newly launched Oppo Find N2 Flip is the first foldable from the company to debut in India. But does it have what it takes to compete with the Samsung Galaxy Z Flip 4? We discuss this on Orbital, the Gadgets 360 podcast. Orbital is available on Spotify, Gaana, JioSaavn, Google Podcasts, Apple Podcasts, Amazon Music and wherever you get your podcasts.
Affiliate links may be automatically generated - see our ethics statement for details.
 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement

Related Stories

Popular Mobile Brands
  1. These Vivo Smartphones Will Cost More in India Due to the Latest Price Hike
  2. Poco M8s 5G Debuts Globally With 7,000mAh Battery: See Price, Features
  3. Redmi A7 Pro 4G and Redmi A7 4G Launched in India With These Features
  4. Vivo Y600 Pro Could Launch Soon With This MediaTek Dimensity Chip
  5. iPhone 18 May Not Arrive With Hardware Upgrades as Apple Cuts Costs: Report
  6. Tim Cook to Step Down as Apple CEO as John Ternus Named Successor
  7. Apple's iOS 27 Update Might Drop Support for These iPhone Models
  8. Dyson Launches Supersonic Travel as Smaller, Lighter Hair Dryer
  9. Samsung Galaxy S27 Ultra Might Arrive With This Battery Upgrade
  1. Vivo Y600 Pro Listings on Geekbench, Regulatory Databases Reveal Key Specifications, Features
  2. Redmi Buds 8 Launched With Up to 50dB ANC, Up to 44 Hours Total Battery Life: Price, Features
  3. Redmi Pad 2 SE 4G Launched With Snapdragon 6s 4G Gen 2 SoC, 7,600mAh Battery: Price, Specifications
  4. Motorola Razr 2026 Launch Date Teased Alongside Design and Colour Options
  5. Redmi A7 Pro 4G Launched in India With Unisoc T7250 Chip Alongside Redmi A7 4G: Price, Specifications
  6. Google DeepMind Has Reportedly Assembled an A-Team to Take on Anthropic’s AI Coding Prowess
  7. Samsung Galaxy S27 Ultra Could Launch With Silicon-Carbon Battery Upgrade: Report
  8. Bitcoin Steadies Around $75,800 as Institutional Buying Supports Recovery
  9. iOS 27 Leak Suggests Four Models Might Not Receive Apple's Next iPhone OS Upgrade
  10. Poco M8s 5G Launched With 7,000mAh Battery, 50-Megapixel Camera: Price, Specifications
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.