X Releases Core Algorithm Code

January 21, 2026 at 4:47:08 AM

TL;DR Elon Musk published X's AI-driven "For You" feed algorithm code to boost user engagement by personalizing content. The feed combines posts from followed accounts and AI-recommended posts based on recent activity. The algorithm limits repeated posts from the same creators and penalizes excessive posting. While new user time spent is up, Musk admits the algorithm "sucks," and usage is declining amid competition from Meta's Threads.

X Releases Core Algorithm Code

Elon Musk has published the latest version of the X “For You” feed algorithm, aiming to enhance user engagement by showing the most relevant posts. The average X user sees only 20-30 posts daily, making this optimization crucial. Since November, the algorithm has been "purely AI" driven, managed by xAI’s servers to tailor content based on individual preferences. While AI interprets signals, human-set rules now guide the algorithm instead of complex code.

Algorithm Structure and Function

The "For You" feed combines two main streams:

  • Thunder: Ranks posts from accounts you follow based on past engagement, but limits the number of posts from the same creators to promote diversity. This reduces the likelihood followers see all your posts daily unless they switch to the "Following" feed, which is no longer the default.
  • Phoenix: Uses Grok AI to analyze the last 128 posts you engaged with, predicting your interests to keep the feed fresh by adapting to your recent preferences.

The feed ranks posts based on likes, replies, reposts, and now places more emphasis on dwell time and video viewing.

Impact on Content Strategy

To boost presence on X, users should focus on generating likes, replies, and increasing dwell time through videos and long-form content. Posting too frequently is penalized to diversify the feed, and reposting duplicates is discouraged. Engaging with comments is beneficial, while posting external links is penalized. Freshness matters, as older posts receive reduced reach. Negative actions like being muted or blocked also decrease reach, with some users concerned about blocklists affecting visibility.

Transparency and Criticism

X first published its feed algorithm on GitHub in 2023 but did not update it until now, falling short of promised transparency. The new code is available for public viewing, marking a significant step. However, Elon Musk has openly criticized the current algorithm, calling it "dumb" and acknowledging it "sucks," with ongoing efforts to improve it.

Engagement and Competition

X’s head of product reports increased time spent by new users, a positive sign, but overall usage is declining as Meta’s Threads gains popularity. The algorithm plays a critical role in this trend, and despite internal optimism, external feedback suggests X still faces challenges. The hope is that AI advancements, particularly Grok, will eventually make the "For You" feed more compelling and personalized.

Maintaining user engagement is vital for X’s AI projects, and future updates will likely focus on refining the algorithm to better meet user needs and compete in the social media landscape.

Have more questions on this topic? Ask our AI assistant for in-depth insights.

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

Related Tools

Markifact logo

Markifact

Verified Tool

Verified Tool

Markifact is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Marketing Workflows Powered by AI

Featured
Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

Marketing Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
ContentStudio logo

ContentStudio

Streamlined social media management for brands

Organic Social
Planoly logo

Planoly

Plan and auto-post content across all channels

Organic Social
Typefully logo

Typefully

Write, schedule, and analyze Twitter threads easily

Organic Social
Sendible logo

Sendible

Manage social media for agencies and brands

Organic Social
Statusbrew logo

Statusbrew

All-in-one social media management and analytics

Organic Social
Planable logo

Planable

Simplify social media content creation and approval

Organic Social
Tweet Hunter logo

Tweet Hunter

AI-powered Twitter growth and automation tool

Organic Social
PostPortal AI logo

PostPortal AI

Automated AI social media content creation and scheduling

Organic Social

Get Featured Here

Showcase your tool in this list.

Contact Us