xai-org/x-algorithm

Algorithm powering the For You feed on X

View on GitHub ↗Jump to charts ↓Open shareable report →

xai-org/x-algorithm has 33k+ stars and 5k+ forks on GitHub, is written in Rust, and was last pushed on Oct 15, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 49 minutes ago
Added to GitGenius on September 1st, 2026
Created on January 19th, 2026
Open Issues & Pull Requests: 144 (+1)
GitHub issues: Enabled
Number of forks: 5,448
Total Stargazers: 33,646 (+3)
Total Subscribers: 300 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.3 hours
Mean response time: 2.0 days
90th percentile: 5.6 days
Tracked items: 31

How this project is maintained

Roughly one issue in two opened in the past year never receives a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Almost all tracked open issues have seen activity in the last three months. Only 18% of issues opened in the past year have been closed. Three people close 50% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 45
New in 7 days: 4
Closed in 7 days: 0
Avg open age: 9 days
Stale 30+ days: 32
Stale 90+ days: 0

Recent activity

Opened in 7 days: 4
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

X Algorithm is a feed ranking system that determines which posts appear in the For You feed on X by combining in-network and out-of-network content, filtering posts based on various inputs, and ranking them using a transformer model.

The system addresses the problem of selecting and ordering relevant content from a massive pool of posts. It works by retrieving both posts from followed accounts and discovered content through ML-based mechanisms, then applying filters to remove ineligible posts and scoring remaining candidates using predicted probabilities of user actions like likes, shares, and dwell time. The ranking uses a transformer model to produce a final score that determines feed order.

Developers considering adoption should understand that this is the actual production algorithm from X, not a simplified demonstration. The codebase includes the core ranking logic, filtering systems, configuration parameters, and model training code. It is most relevant for those studying large-scale feed ranking systems, building similar recommendation infrastructure, or seeking transparency into how algorithmic feeds operate. The project explicitly notes what it does not contain, helping set expectations about scope.

The project receives active maintenance with documented updates addressing both technical clarifications and regulatory requirements. Recent changes include added code comments explaining how engagement weights function in the ranking system and implementation of region-specific filtering systems. The codebase incorporates systems that impact content filtering decisions, making the mechanisms behind feed visibility explicit and auditable.