X's open-source algorithm dissected: 552K lines, 70 of 72 updates pushed by a bot, report scoring at -234

ThePeterMick · x · 2026-11-18

A developer pulled a fresh copy of X's open-source recommendation algorithm and counted everything: 552,399 lines across 2,400 files (49% Rust, 26% Python), 72 updates since Jan 20 — 70 pushed by a bot account called "CI agent", mostly at 1-4am UK time, Fridays busiest, Sundays never. Key mechanics: posts scored on 30 dimensions (bookmarks excluded); replies between mutuals worth 20, likes 0.708 and climbing, won-follow +4, boost for originals from <50K-follower accounts in their first 2 hours. Penalties: "not interested" -53.07, mute -58.8, block -31.2, report -234; AI-sounding replies, duplicate text, engagement bait and sketchy links are suppressed. Also: 248 tunable feed settings, 115 hide/blur rules, Grok appears in 92 files, and the bot-detection model is named BDSM (Behavioral Detection Sequence Model).

Original post →

More from coding & agent

coding & agent channel →