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
- X just open-sourced their “For You” recommendation algorithm.linkedin.com
- Analysis of 2025 X Algorithmgist.github.com
- Campbell Easton (@MrCampbell) on Xx.com
- GitHub - igorbrigadir/awesome-twitter-algo: The release of the Twitter algorithm, annotated for recsys · GitHubgithub.com
- Seeing Like an Algorithm - Remains of the Dayeugenewei.com
- Trending Papers - Hugging Facepaperswithcode.com
- actually for youtwitter.vishnu.one
- the-algorithm/src/scala/com/twitter/simclusters_v2/README.md at main · twitter/the-algorithmgithub.com
- GitHub - eleurent/twitter-graph: Fetch and visualize the graph of your Twitter friends and followers.github.com
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- how to optimise twitter for good ML research takes (or anything else)space.ong.ac