X For You algorithm decoded from open-source code: score = sum of weight x P(action)

minchoi · x · 2026-11-21

minchoi published a thread walking through xai's open-source For You ranking algorithm (x-algorithm repo, synced from production almost daily). X quietly changed its algorithm three times this month.

Ranking works in four steps: candidate posts come from accounts you follow plus posts the model thinks you'll like; filters drop posts older than 48h, already-seen, or from blocked/muted accounts; the Phoenix model predicts each viewer's odds to like, reply, share, mute, report, etc.; each predicted chance × its weight is summed — highest score ranks first.

Core formula: Final Score = Σ weight × P(action). The author's tip: write for one person's odds, not "the algorithm."

Original post →

More from Companies & People

Companies & People channel →