An interactive blueprint · tap any stage

How the X
algorithm works

Every time you open X, a machine reads your recent behavior, pulls about a thousand candidate posts, and predicts — for you specifically — how likely you are to like, reply, mute, or report each one. This is that machine, stage by stage, built from the code xAI open-sourced.

you openthe app Home Mixerorchestrates Thunderfollows · ≤1,200 Phoenix retrievaldiscovery · ≤1,000 SimClusterscluster picks pre-scoringfilters Phoenixscores Σw·P top-K+ rerank visibilityallow / drop your ForYou feed ≈ half from accounts you follow · ≈ half out-of-network discovery ranking decides the order — visibility decides what may appear at all
The For You request path, per the open-sourced repo: sources → filters → scoring → selection → visibility → feed.