X has open-sourced the core recommendation system powering its "For You" feed, revealing a profound shift in how the platform determines what users see.
The newly released repository confirms that the feed is now fundamentally driven by a transformer model derived from Elon Musk’s xAI venture, Grok.
This marks the formal end of traditional, heuristic-based social media ranking on one of the world’s largest platforms. The documentation explicitly states that X has "eliminated every single hand-engineered feature and most heuristics from the system." Instead, the Grok-based transformer handles all the heavy lifting, predicting user engagement probabilities based purely on historical action sequences.
The architecture, detailed in the github repository, shows a system orchestrated by the "Home Mixer." This layer pulls content from two primary sources: "Thunder" (in-network posts from followed accounts) and "Phoenix Retrieval" (out-of-network content discovered via ML similarity search).
