Opening X fires one For You feed request. The Home Mixer (Rust) runs it through a pipeline: hydrate your context, pull candidates from three sources in parallel, filter, score, pick the top K, then run visibility filtering. A second blending pipeline wraps it all and interleaves the things the model doesn't rank — ads, Who to Follow, prompts. Then side effects: record what was served, refresh caches, log events.
The 2023 open source (twitter/the-algorithm) described three stages: candidate sourcing (~1,500 posts), ranking with a Light Ranker then a Heavy Ranker neural net, and heuristics & filters. The 2026 repo (xai-org/x-algorithm) keeps Home Mixer as the orchestrator but replaces the hand-built machinery: in xAI's words, they “eliminated every single hand-engineered feature and most heuristics from the system.” Four components do the work now: Home Mixer (orchestration, Rust), Thunder (in-memory in-network post store, Rust), Phoenix (the Grok-based transformer that scores, JAX/Python with a Rust serving layer), and the Candidate Pipeline framework (Rust) everything is composed from.