X has publicly released the code for its "For You" feed algorithm, marking a significant shift toward transparency in social media curation. The AI-driven system, powered by transformer architecture similar to xAI's Grok model, replaces traditional manual rules with dynamic scoring based entirely on user behavior patterns.
The algorithm analyzes engagement history to predict preferences, prioritizing content likely to drive positive interactions like likes while minimizing triggers for negative actions such as blocks. It sources posts from both followed accounts and broader network recommendations, filtering out blocked accounts and duplicate creators to maintain diversity.
Quality safeguards automatically remove recently viewed content and flag inappropriate material before final selection. Elon Musk acknowledged ongoing improvements needed, stating on X: "We know the algorithm is dumb… at least you can see us struggle to make it better in real-time with transparency."
The GitHub repository will receive biweekly updates throughout 2026, allowing developers and researchers to track evolution of the machine learning models powering modern content discovery.
Reference(s):
X open-sources feed algorithm, with AI-driven scoring at its core
cgtn.com








