flâneur

xai-org/x-algorithm: Algorithm powering the For You feed on X ·

github.com · 3,455 words · saved by 1 readers

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