IBOV 176,573.35 ▼ 0.13% COLCAP 2,452.46 — — IPC MEX 71,657.88 ▲ 1.85% MERVAL 2,848,945 — — USD/BRL5.56▼ 0.01% USD/MXN19.69▲ 0.19% USD/CLP 1,030 — 0.00% USD/COP3,474▼ 0.64% USD/PEN3.48▲ 0.39% USD/ARS1,605▼ 0.03% USD/UYU 40.69 — 0.00% USD/PYG 6,405 — 0.00% USD/BOB 11.80 — 0.00% USD/DOP59.97▼ 0.78% USD/CRC 440.56 — 0.00% USD/GTQ 7.65 — — USD/HNL 26.89 — 0.00% USD/NIO 36.62 — 0.00% USD/VES926.22▼ 0.13% USD/PAB 1.00 — — USD/BZD 2.00 — — USD/JMD 156.69 — — USD/TTD 6.71 — — EUR/BRL 6.07 — — BRENT 91.74 ▼ 3.88% WTI 83.88 ▲ 0.96% IRON ORE 161.91 — — COPPER 5.63 ▲ 2.07% GOLD 3,689 ▲ 1.35% SILVER 44.46 ▲ 2.98% SOY 1,269 ▲ 0.18% CORN 462.00 ▲ 3.41% WHEAT 599.50 ▲ 5.83% COFFEE 265.65 ▼ 3.63% SUGAR 18.81 ▲ 2.56% ORANGE JUICE 123.50 ▼ 1.40% COTTON 84.69 ▲ 6.33% COCOA 5,191 ▼ 2.09% BEEF 228.13 ▲ 2.15% CATTLE 331.20 ▲ 1.12% LITHIUM 55.27 ▲ 4.56% PETR4 42.14 — 0.00% VALE3 57.19 — 0.00% ITUB4 42.73 — 0.00% BBDC4 16.07 — 0.00% ABEV3 16.26 — 0.00% BBAS3 16.90 — 0.00% B3SA3 17.23 — 0.00% WEGE3 49.87 — 0.00% PRIO3 61.93 — 0.00% SUZB3 51.98 — 0.00% RENT3 34.65 ▲ 2.61% AZZA3 16.47 — 0.00% CSAN3 3.85 — 0.00% RAIZ4 17.03 ▼ 4.59% PCAR3 3.61 ▼ 0.28% GMAT3 4.54 ▲ 5.58% PSSA3 43.65 ▲ 1.37% CVCB3 0.79 ▲ 2.60% POSI3 3.53 ▲ 1.73% SLCE3 16.74 ▼ 2.79% NATU3 4.86 ▼ 6.54% BRKM5 2.03 — 0.00% RANI3 8.18 ▲ 0.49% IBOV 176,573.35 ▼ 0.13% COLCAP 2,452.46 — — IPC MEX 71,657.88 ▲ 1.85% MERVAL 2,848,945 — — USD/BRL 5.56 ▼ 0.01% USD/MXN 19.71 ▲ 0.30% USD/CLP 1,030 — 0.00% USD/COP 3,474 ▼ 0.64% USD/PEN 3.48 ▲ 0.39% USD/ARS 1,605 ▼ 0.03% USD/UYU 40.69 — 0.00% USD/PYG 6,405 — 0.00% USD/BOB 11.80 — 0.00% USD/DOP 59.97 ▼ 0.78% USD/CRC 440.56 — 0.00% USD/GTQ 7.65 — — USD/HNL 26.89 — 0.00% USD/NIO 36.62 — 0.00% USD/VES 926.22 ▼ 0.13% USD/PAB 1.00 — — USD/BZD 2.00 — — USD/JMD 156.69 — — USD/TTD 6.71 — — EUR/BRL 6.07 — — BRENT 91.74 ▼ 3.88% WTI 83.88 ▲ 0.96% IRON ORE 161.91 — — COPPER 5.63 ▲ 2.07% GOLD 3,689 ▲ 1.35% SILVER 44.46 ▲ 2.98% SOY 1,269 ▲ 0.18% CORN 462.00 ▲ 3.41% WHEAT 599.50 ▲ 5.83% COFFEE 265.65 ▼ 3.63% SUGAR 18.81 ▲ 2.56% ORANGE JUICE 123.50 ▼ 1.40% COTTON 84.69 ▲ 6.33% COCOA 5,191 ▼ 2.09% BEEF 228.13 ▲ 2.15% CATTLE 331.20 ▲ 1.12% LITHIUM 55.27 ▲ 4.56% PETR4 42.14 — 0.00% VALE3 57.19 — 0.00% ITUB4 42.73 — 0.00% BBDC4 16.07 — 0.00% ABEV3 16.26 — 0.00% BBAS3 16.90 — 0.00% B3SA3 17.23 — 0.00% WEGE3 49.87 — 0.00% PRIO3 61.93 — 0.00% SUZB3 51.98 — 0.00% RENT3 34.65 ▲ 2.61% AZZA3 16.47 — 0.00% CSAN3 3.85 — 0.00% RAIZ4 17.03 ▼ 4.59% PCAR3 3.61 ▼ 0.28% GMAT3 4.54 ▲ 5.58% PSSA3 43.65 ▲ 1.37% CVCB3 0.79 ▲ 2.60% POSI3 3.53 ▲ 1.73% SLCE3 16.74 ▼ 2.79% NATU3 4.86 ▼ 6.54% BRKM5 2.03 — 0.00% RANI3 8.18 ▲ 0.49%
since 2009
Monday, November 30, 2026

Historic step: Elon Musk made Twitter’s recommendation algorithm public

By · · 4 min read
musk-twitter
Musk completely changed the source code within weeks of taking control of Twitter

Twitter CEO Elon Musk made history this Friday in favor of transparency.

In April, Twitter released some of its source code for public inspection, including its controversial algorithm to recommend tweets on users’ timelines.

On GitHub, Twitter posted two repositories containing much of the company’s code that make many parts of the social network work, including the mechanism Twitter uses to control which tweets users see in the “For You” timeline.

Free daily brief — no card needed
Get every Crypto story in one morning email
We build you a personalized brief around the topics you follow — free for 7 days. Love it? Your first month after that is US$1.
RT
Ask Rio Times
17 years of Latin America reporting, on demand.
Open the full Ask Rio Times →

In the past, this algorithm was heavily criticized by social network users because it suppressed right-wing tweets and trends and promoted left-wing ones.

This was pure speculation until Elon Musk bought the company and confirmed, through the #TwitterFiles, that this was the case.

The LatAm Brief

One email, every weekday morning. What moved in Latin American markets, politics and expat life.

Yesterday’s subject line: “Why Ecuador shut its borders before Sunday's vote”

According to the CEO of Tesla and SpaceX, he completely changed the source code within weeks of taking control of Twitter.

Now, he will make it public to prove that he did it in a historic step towards transparency.

In a Twitter Spaces session this Friday, Musk clarified:

“Our initial release of the so-called algorithm will be pretty embarrassing, and people will find a lot of bugs, but we will fix them very quickly.”

“Even if you disagree with something, at least you’ll know why it’s there and that you’re not being secretly manipulated… ”

“The analog, here, that we’re aiming for is the great example of Linux as an open source operating system…”

“One can, in theory, discover many exploits for Linux.”

“In reality, what happens is that the community identifies and fixes those exploits,” he explained.

He clarified that these publications do not include the code that drives Twitter’s ad recommendations.

This information must be kept confidential due to contractual issues with clients who buy advertising on social networks.

In addition, while showing how the algorithm operates to create the recommendation page, for the time being, Twitter did not publish the data used to train the algorithm, as it could compromise users’ personal information.

“We excluded any code that would compromise user safety and privacy or the ability to protect our platform from bad actors, including undermining our efforts to combat child sexual exploitation and manipulation,” he said.

“We’re going to be looking for suggestions, not just about bugs, but also about how the algorithm should work,” Musk said at the Spaces session.

“It’s going to be an evolving process.”

“I wouldn’t expect it to be a continuous upward movement … but we’re very open to what might improve the user experience,” he concluded.

twitter fluxogram
A diagram showing how Twitter’s recommendation pipeline works

At first glance, the algorithm is quite complex but not necessarily surprising from a technical standpoint.

It is composed of multiple models, including one that detects “Not Safe For Work,” violent or abusive content, then determines the likelihood that a Twitter user will interact with another user based on that tweet and calculates the “reputation” that post will have to appear or not appear among the recommendations one reads on their home page.

The “For You” page is populated by tweets from people you follow, but also by tweets they have liked, retweeted, or even tweets from people who are followed by people you follow. This mass of publications is sorted by this “reputation”.

It was always known that tweets were ranked based on some score, but now we know what it is based on.

The algorithm inspects the content of the tweet and looks for keywords such as “death”, “kill”, “pornography”, and “suicide”, among others.

It also has a sophisticated code that allows it to “read in context” and interpret if the tweet is abusive against another person.

There are no findings of keywords related to extremist issues or vaccines, or Covid-19, something that Elon Musk eliminated because it was previously impossible to post a tweet on these topics without it disappearing from the face of Twitter.

But if there are “tags” that are used to identify a tweet as coming from a “Democrat”, a “Republican”, or an “important” (“power”) user.

There is even a tag indicating whether a tweet came from Elon Musk.

The tycoon mentioned in the space that they are looking for a replacement for this algorithm part.

“I don’t like putting tags on people’s tweets; we’re looking at how not to do that anymore,” he mentioned.

Several neural networks are responsible for ranking tweets and recommending accounts to follow. At the same time, a filtering component hides tweets to, by Twitter’s explanation, “support legal compliance, improve product quality, increase user trust, protect revenue through visible and hard filtered product treatments and coarse-grained top-down ranking.”

As can be seen from the algorithm, Twitter attempts to extract the “best” 1,500 tweets out of the millions that rank to appear on the “For You” page.

In addition, this timeline consists of 50% of tweets from people you follow and 50% from people you don’t follow, emphasizing news, with no preference of which medium; only verified or blue accounts are prioritized.

The classification is achieved with a neural network of almost 48 million parameters continuously trained on tweets’ interactions to optimize positive engagement.

For example, likes, retweets, and replies, but also the time it takes to read a tweet, if, after seeing that tweet, you go to see the user, the time that passes between liking two tweets from the same user, or even the amount of time you spend viewing their images and videos.

With information from La Derecha Diario

This article was produced by The Rio Times’ automated AI newsroom. Editorial responsibility: Matthias Camenzind, Publisher and Editor-in-Chief. The Rio Times also runs Ask Rio Times, which answers from 100,000+ of our own articles, the daily Latin America Power Map, and prediction-market odds on elections and markets.. How we use AI · Report an error

Read More from The Rio Times

Brazil runoff date: Sunday, October 25, poll closing times and when results start · Brazil runoff polls: Flávio 51%, Lula 49% · Kalshi and Polymarket odds

Rotate for Best Experience

This report is optimized for landscape viewing. Rotate your phone for the full experience.