cclank / x-algorithm-wiki
PublicArchitecture wiki for the open-sourced X "For You" recommendation algorithm (xai-org/x-algorithm) — 21 source-anchored pages
This is an educational knowledge base that explains how X (formerly Twitter)'s 'For You' recommendation algorithm works. Based on open-source code released by xAI, the wiki contains 34 interconnected pages: 11 beginner-friendly guides written in plain language, plus 23 technical pages with source code references. The project helps regular people understand how social media feeds decide what content to show them—covering topics like how posts get selected, how machine learning ranks content, how ads are mixed in, and common misconceptions about visibility and shadowbans. It's designed to be browsed like a wiki or imported into Obsidian for personal knowledge management.
How It Works
You learn that X (Twitter) released the code behind your 'For You' feed, and you're curious how it decides what to show you.
You discover this wiki with 11 plain-language pages that promise to break down the algorithm without requiring any coding knowledge.
Start with the 'how it works' page to see the whole system at a glance
Jump to topics like 'how posts are picked' or 'visibility' that answer your specific questions
You read how five components work together—how posts are found, scored, ranked, filtered, and mixed with ads—to create your feed.
Every explanation includes actual code snippets and line numbers, so you can trust the information is accurate.
You now know exactly how X's algorithm works—from the moment someone posts to when it appears (or doesn't) in your For You feed.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.