sakutto
Generative AI

X Open-Sources Its For You Algorithm: How to Check Your Visibility Labels

XAlgorithmOpen source
X Open-Sources Its For You Algorithm: How to Check Your Visibility Labels

What was published

The release in brief

Scope
Core code of the For You feed
License
Apache-2.0
Recent updates
August 13 and 14, 2026
Transparency tool
Under the Hood (pilot)

It is published in the xai-org/x-algorithm repository on GitHub.

The core of For You is readable

What was published is the core code that determines which posts a viewer sees in the For You feed. It combines posts from accounts the viewer follows with out-of-network posts discovered through machine-learning retrieval, filters them, and then a transformer model (the mainstream AI architecture today) ranks them. Ranking and the question of whether a post may be shown at all are separate paths; the latter is handled by visibility filtering.

View official source →
"This repository contains the core code that determines which posts a viewer sees in the For You feed on X. It combines in-network content (from accounts the viewer follows) with out-of-network content (discovered through ML-based retrieval and other mechanisms), filters content based on a variety of inputs, and ranks posts using a transformer model."(opening)/"Ranking sets the order. Whether a post can be shown at all is decided separately, by `visibility-filtering/` …"(Overview section)/"Licensed under the Apache License 2.0."(License section) — from the X For You Feed Algorithm README

What the August 13 update added

The August 13 update added key configuration parameters, including the weights used to blend predicted action values into a score, along with code for the systems that affect whether a post is filtered. Alongside that, Phoenix — which handles candidate retrieval and ranking — was replaced with the training code for the models the feed actually uses, and synthetic data generation code was included so a proof-of-concept training run can be done locally.

View official source →
"Adds key configuration parameters (including weights used to blend predicted action values into a score for a post)"/"Adds code for systems that impact whether a post is filtered from the For You feed"/"Replaces the Phoenix demonstration model with the code used to train the models the feed uses, as well as synthetic data generation code so one can run a proof-of-concept training run of Phoenix."(August 13th, 2026 section) — from the X For You Feed Algorithm README

How to read the weights

A common misreading, and the reality

Misreading
Weights apply to the raw counts of reports and likes
Reality
They apply to your own predicted probability of the action

The company added a clarification the next day, in response to a widespread misunderstanding.

Weights scale predicted probabilities, not counts

The documentation states plainly that the weights scale predicted probabilities and do not scale raw engagement counts. So reading it as "a report has 468 times the weight of a like, therefore one report cancels out 468 likes" is incorrect. Predicted probabilities depend on your own behavior, so the same post can work differently for different people.

View official source →
"The weights scale the predicted probabilities of such actions (or predicted continuous values, e.g. dwell time) — they do not scale the raw engagement counts, so e.g. it'd be incorrect to see that a report has 468 times higher weight than a like and conclude that e.g. \"1 report cancels out 468 likes\". The weights are a multiple on your own predicted probability of Liking, Reporting, etc, which is substantially driven by your own behavior."(August 14th, 2026 section) — from the X For You Feed Algorithm README

The filters are readable too

In accordance with Brazilian electoral law, For You runs a filter that removes posts from accounts reported to Brazil's Electoral Court for the 2026 election, unless the viewer explicitly follows the account. X frames this as a benefit of open source: you can see that changes like this exist and exactly how they work.

View official source →
"in accordance with Brazilian electoral law, For You now runs `Brazil2026ElectionFilter`, which removes posts from accounts reported to Brazil's Electoral Court for the 2026 election, unless the viewer explicitly follows the account. A benefit of open-source is that you can see that changes like this exist, and exactly how they work"(August 14th, 2026 section) — from the X For You Feed Algorithm README

What is withheld, and how to check your own account

Where the line is drawn

Withheld
Grox prompts (j2 files) and some botmaker rules
Reason
Reducing the risk of the system being gamed
In its place
Under the Hood lets you check your own labels

Not everything is out in the open.

What is not published

Publishing code that affects distribution invites people to try to outmaneuver it. To reduce that risk, the specific prompt templates used in Grox (X's internal AI processing) and some of the rules in the botmaker rule engine are not published.

View official source →
"One challenge with making code that impacts post distribution public is that people could use it to try to game the system. To reduce the risk of this, there are a limited set of files not currently published in the repository, e.g.:"/"Grox prompts. E.g. the j2 files with the specific LLM prompts used in Grox."/"Some botmaker rules"(What's not in this repo? section) — from the X For You Feed Algorithm README

Checking your labels in Under the Hood

"Under the Hood" opens at x.com/i/under_the_hood and shows aggregate statistics about the visibility-impacting labels on your account and posts. What people commonly call a shadowban can be checked against official aggregates rather than guessed at. It is a pilot, and availability is stated to expand over time. Once you know your labels, you can match them against the published code and follow the effect.

View official source →
"We're piloting a new transparency tool that lets people see aggregate statistics about the visibility-impacting labels on their account and posts."/"The tool is available here — we'll be shaping it based on your feedback and expanding availability over time."(Under the Hood Label Transparency Tool section; the "here" link in the original points to https://x.com/i/under_the_hood )/"… one can match any labels present on their account to the code to understand if or how the visibility of their posts is affected, and critique it if desired"(What's not in this repo? section) — from the X For You Feed Algorithm README

The README is long, and reading it end to end is work. To convert it into markdown with its structure intact, the following tool can help.

Free ToolURL to Markdown ConverterConvert any public web page URL to Markdown. Preserves headings, tables, lists, and links — perfect for LLM and RAG preprocessing, research notes, and archiving web articles.Try it now →

FAQ

Q. What did X release?
The core code that determines which posts appear in the For You feed. It combines in-network content from accounts you follow with out-of-network content found through machine-learning retrieval, filters it, and ranks posts using a transformer model. The license is Apache-2.0.
X For You Feed Algorithm Official Repository (README)
This repository contains the core code that determines which posts a viewer sees in the For You feed on X. It combines in-network content (from accounts the viewer follows) with out-of-network content (discovered through ML-based retrieval and other mechanisms), filters content based on a variety of inputs, and ranks posts using a transformer model. / Licensed under the Apache License 2.0. X For You Feed Algorithm Official Repository (README)
Q. Is it correct that one report cancels out 468 likes?
No. The documentation explains that the weights scale your own predicted probability of taking an action, not the raw counts of reports or likes. Those predicted probabilities are substantially driven by your own behavior.
X For You Feed Algorithm Official Repository (README, August 14th, 2026)
The weights scale the predicted probabilities of such actions (or predicted continuous values, e.g. dwell time) — they do not scale the raw engagement counts, so e.g. it'd be incorrect to see that a report has 468 times higher weight than a like and conclude that e.g. "1 report cancels out 468 likes". X For You Feed Algorithm Official Repository (README, August 14th, 2026)
Q. Is anything left out of the release?
Yes. To reduce the risk of people gaming the system, a limited set of files is not published, such as the j2 files containing the specific LLM prompts used in Grox and some botmaker rules. In their place, a transparency tool that lets you see the labels on your own account is being piloted.
X For You Feed Algorithm Official Repository (README, What's not in this repo?)
One challenge with making code that impacts post distribution public is that people could use it to try to game the system. To reduce the risk of this, there are a limited set of files not currently published in the repository, e.g.: / Grox prompts. E.g. the j2 files with the specific LLM prompts used in Grox. / Some botmaker rules X For You Feed Algorithm Official Repository (README, What's not in this repo?)

Related Tools

Related Tool Categories

Articles