Twitter’s open source code reveals US government can ‘intervene’ with recommendation algorithm
“When needed, the government can intervene with the Twitter algorithm.”
“When needed, the government can intervene with the Twitter algorithm.”

On Friday, Twitter released the recommendation algorithm portion of its code by publishing it on GitHub, where developers post open source software data. Developer Steven Tey dug into the code and found that there is a mechanism through which the US government can "intervene" with the code.
"When needed, the government can intervene with the Twitter algorithm," Tey wrote. "In fact, @TwitterEng (Twitter Engineering) even has a class for it – 'GovernmentRequested.'"
Loading this lets X set cookies and collect data.
View on XTey linked directly to the code on GitHub.
On March 17, Musk announced he was going to make the algorithm open source later in the month and said, "Our 'algorithm' is overly complex & not fully understood internally. People will discover many silly things , but we’ll patch issues as soon as they’re found!"
Loading this lets X set cookies and collect data.
View on XTey also found that a Twitter user's "following-to-follower ratio matters and that page rankings get reduced for users who have "a low number of followers but a high number of followings."
Loading this lets X set cookies and collect data.
View on XThe algorithm gives a boost to Twitter Blue subscribers. Twitter also categorizes four user groups, "power users," "Democrat users," "Republican users," and "@elonmusk to "track and compare" the frequency of tweet impressions on other users.
Loading this lets X set cookies and collect data.
View on XTey identified factors that impact whether or not a user will make the "For You" recommendation and some factors that could have a negative impact on one's "reputation score" such as getting blocked or muted."
Loading this lets X set cookies and collect data.
View on XPresidential elections also impact the algorithm and how a candidate would appear for a user to follow.
Loading this lets X set cookies and collect data.
View on XTwitter announced their release of the code on Friday and in March of last year, directly before his $44 billion purchase of the platform, Elon Musk said that Twitter's algorithm should be open source.
Loading this lets X set cookies and collect data.
View on XTey's discovery of the "GovernmentRequested' intervention option in the code follows revelations from the Twitter files, a series of reports detailing internal discussions at Twitter under its previous management.
The files detailed the company's censorship efforts and collusion with government agencies towards those goals. One batch of the files by Michael Shellenberger showed that there were many former FBI agents on staff at Twitter while then-FBI Supervisory Special Agent Elvis Chan served as the lead operative in requesting Twitter censor many stories, including those around Hunter Biden's "laptop from hell."
Another batch of the files showed that federal agencies, including the FBI and Department of Homeland Security, partnered with contractors to "pressure Twitter to moderate content" and would use information portals to send constant information to Twitter on what accounts to restrict.
Libby’s Desk
Commentary and must-reads from Libby’s desk, straight to your inbox.
TPM Newsletter
The Post Millennial’s top stories, delivered to your inbox.


