xai-org/x-algorithm: Algorithm powering the For You feed on X ·
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. Notable updates: This release: Among new systems included are: This update is also paired with a new Under the Hood transparency tool that allows people to see aggregate statistics about the labels on their account and posts that can limit visibility. The For You feed is assembled per request. Posts come from two places: Both are ranked together by the same model. Phoenix reads the viewer's recent engagement history and predicts, for each post, how likely the viewer is to take each action on it. Those predictions are combined into one score using weights held in the code — see Scoring and Ranking. Two pipelines do the work. The Post Pipelin
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. Table of Contents Notable Updates August 14th, 2026 August 13th, 2026 Overview System Architecture Request Path Labeling Path Components How It Works Scoring and Ranking Filtering Experiments and Configuration What's not in this…
saved by
related reading
- GitHub - xai-org/x-algorithm: Algorithm powering the For You feed on Xgithub.com
- Analysis of 2025 X Algorithmgist.github.com
- Campbell Easton (@MrCampbell) on Xx.com
- Seeing Like an Algorithm - Remains of the Dayeugenewei.com
- What do I think about Community Notes?vitalik.eth.limo
- actually for youtwitter.vishnu.one
- GPT is Rather Good at Feed Ranking - by Rob Ennalsmessyprogress.substack.com
- AI Model & API Providers Analysis | Artificial Analysisartificialanalysis.ai
- GitHub - igorbrigadir/awesome-twitter-algo: The release of the Twitter algorithm, annotated for recsys · GitHubgithub.com
- The Myth of The Algorithm: A system-level view of algorithmic amplification | Knight First Amendment Instituteknightcolumbia.org
- Nicholas Chua (@nicholaschua) on Xx.com
- A better ranking algorithm – Herman's blogherman.bearblog.dev