The white X logo on a black background.
The white X logo on a black background. Photo by X Corp / Wikimedia Commons. Image source
B2 · Upper Intermediate
TimelyNewGlobal · Technology

X Opens Its Algorithm and Shows a Government-Required Filter

Created by Brando Oxley · 28 Aug 2026

Key Vocabulary

open-source

made available so other people can inspect and use the source code

X released more of its recommendation system as open-source code.

filter

a system that prevents some content from being shown in a particular place

The election filter changes which posts can enter the For You feed.

legal demand

a formal request based on law or a legal process

A platform may receive a legal demand to restrict content.

censorship

the restriction or suppression of speech or information

Musk described government-required restrictions as censorship.

transparency

openness that makes a process easier for outsiders to understand

Publishing the code is intended to increase transparency.

Article

On 13 and 14 August 2026, X published a much larger portion of the code behind its “For You” recommendation system. The open-source repository now includes ranking weights, filtering systems and the code used to train its Phoenix recommendation model. X says the aim is to let outsiders inspect how posts are selected, ranked and limited.

One of the most discussed additions is a filter connected to Brazil's 2026 election. The repository shows that Brazil2026ElectionFilter removes posts from reported accounts from the For You feed. This applies to accounts reported to Brazil's Electoral Court, unless the viewer already follows them. X says the filter exists to comply with Brazilian electoral law.

Elon Musk responded to the release by saying that censorship required by governments is now clearly visible. The wording is important. The code can reveal government-related filters built into the system. However, this is not the same as publishing every individual legal demand that X receives.

X already has a separate Transparency Center for legal and government requests. Its reports describe formal demands to remove or withhold content. The company says it may challenge demands that are flawed or overly broad. X also says it tries to notify affected users unless the law prevents it.

The release creates two different forms of transparency. The open-source code shows how parts of the feed work, including certain required filters. Meanwhile, the Transparency Center reports on the broader process through which legal groups ask X to limit content.

For users, the change may make some decisions easier to study. Still, reading code is hard and does not explain every choice made by a site. The debate now moves beyond a simple promise of openness. People can examine more of the code themselves and ask what is still missing.

Discussion Questions

  1. Does open-source code provide meaningful transparency for ordinary users, or mainly for experts?
  2. When should a social media company follow a legal demand from a government?
  3. How would you distinguish lawful content regulation from censorship?
  4. Should users be told whenever a government-related filter affects what they can see?
  5. What information would you still want X to publish before deciding whether its recommendation system is fair?

References

  1. xAI, "X For You Feed Algorithm." Source
  2. X Business, "We are committed to setting a new standard for transparency." Source
  3. Elon Musk, "Any censorship required by governments is now clearly visible." Source
  4. X, "2025 Transparency Report." Source

Finished reading? Mark this lesson as done.