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."
More from Companies & People
- X algorithm decoded: no link penalty, opening a link scores +0.2 — minchoi · 2026-11-21
- X feed rules: posts expire after 48 hours, only post #1 reaches non-followers — minchoi · 2026-11-21
- X algorithm: mutual follows get 4x reply weight boost, from 5 to 20 — minchoi · 2026-11-21
- X's Nov 5 retune: dwell time and likes up, clicks down, video opens zeroed — minchoi · 2026-11-21
- Copy link is X's top ranking signal at weight 20, 28x a like — minchoi · 2026-11-21
- Creator shows $1,960.67 payout from X's Original Content Rewards Program — ThePeterMick · 2026-11-21