Hacker GitHub

← All repos

twitter/the-algorithm

View on GitHub ↗ ★ 73,994 Scala

Source code for the X Recommendation Algorithm

116 mentions on Hacker News by 104 people: 20 stories, 96 comments · first 2022-04-25 · latest 2026-10-19

Mentions per year 116 mentions · busiest year 2023 (78)
20082026
  1. You missed this internet classic https://github.com/twitter/the-algorithm/issues/1999
    comment by greenavocado · 2026-10-19 · in Linux 7.3
  2. The names reminded me of https://github.com/twitter/the-algorithm/pull/1027
    comment by hmokiguess · 2026-08-20 · in Stwipe Acquires OpenWouter
  3. https://github.com/twitter/the-algorithm If it catches engagement, the main firehose feed will show it. They've begun using Grok and AI processes, which is hit and miss, but definitely improving. Having Japanese, French, other countries'…
  4. …time they published their algorithm to great fanfare, and then didn't bother to ever update it: https://github.com/twitter/the-algorithm
    comment by roryirvine · 2026-01-20 · in X For You Feed Algorithm
  5. what is the difference between this and https://github.com/twitter/the-algorithm
    comment by internetter · 2026-01-20 · in X For You Feed Algorithm
  6. This is not believable. It's not syntactically valid Python. https://github.com/twitter/the-algorithm/blob/c54bec0d4e029f...
  7. …of himself and the people he supports. This did not happen in the old twitter - not even close. [0] https://github.com/twitter/the-algorithm/issues/236
    comment by jordanscales · 2025-09-09 · in Source code for the X recommendation algorithm
  8. …This is a question I've pondered in the past but haven't gotten around to researching deeply. [0] https://github.com/twitter/the-algorithm/blob/c54bec0d4e029f...
    comment by TheAceOfHearts · 2025-09-09 · in Source code for the X recommendation algorithm
  9. The file in question is now here: https://github.com/twitter/the-algorithm/blob/main/home-mixe... author_is_elon, author_is_democrat, and author_is_republican are in fact gone. Now there is grok_politics_neutral, grok_politics_left, and…
  10. Already posted above: https://github.com/twitter/the-algorithm/blob/c54bec0d4e029f... It's redacted.
  11. …[1]. I'm confused as to who this is for, this surely isn't the repo they're working on, is it? [1] https://github.com/twitter/the-algorithm/blob/main/trust_and...
  12. Looks pretty real: https://github.com/twitter/the-algorithm/blob/7f90d0ca342b92... When this started it really put me off X - I'd have tolerated, and almost liked the idea, of a freedom of speeech place. But a place that boosts its owners…
  13. RIP author_is_elon, we hardly knew ye. https://github.com/twitter/the-algorithm/issues/236
  14. …with the algorithm until he gets his political goals. Twitter/X has open sourced their algorithm ( https://github.com/twitter/the-algorithm ). So what do you mean by “mess with the algorithm”? And how do you characterize the extreme…
  15. https://github.com/twitter/the-algorithm Not updated in two years. > Go to Bluesky... At least people are not fantasizing about "race wars" or discussing the "jewsish question" there. Two subjects I saw multiple times on X's front page.
  16. …X algorithm? Ah yes, Musk promised to make it public, and... it hasn't been updated in two years. https://github.com/twitter/the-algorithm And clearly, the promotion of Musk's tweets on everyone's timeline is completely organic. >This is…
  17. Just like they are "publishing" their algorithm? https://github.com/twitter/the-algorithm hasn't been updated for two years
  18. …forgot to update it after his grand gesture of transparency? Pepperidge Farm remembers: https://github.com/twitter/the-algorithm
  19. It's not been updated in over a year. It was a ruse: https://github.com/twitter/the-algorithm
  20. The algorithm that has been open sourced hasn’t been updated in over a year https://github.com/twitter/the-algorithm/commits/main/ You’re the conspiracy theorist. Conspiracies go hand in hand with your ideologies.
    comment by dom96 · 2024-11-29 · in Who Is Jay Graber, the CEO of Bluesky?
  21. …News feed algorithms are updated regularly, especially around the time of US elections [2]. [1] https://github.com/twitter/the-algorithm [2] https://www.science.org/doi/10.1126/science.adt2983
  22. …the few months after the repos were published and they haven't been updated in well over a year. https://github.com/twitter/the-algorithm https://github.com/twitter/the-algorithm-ml
  23. https://github.com/twitter/the-algorithm - Last commit: July 13th, 2023 https://github.com/twitter/the-algorithm-ml - Last commit: April 6th, 2023 Either the algorithm hasn't been updated for over a year (unlikely) or the public version is…
  24. - https://github.com/twitter/the-algorithm?tab=readme-ov-file
    comment by Bluestein · 2024-07-25 · in Twitter's Recommendation Algorithm (2023)
  25. You can look at Twitter's recommendation system [here]( https://github.com/twitter/the-algorithm ) to get an idea.
  26. TIL: https://github.com/twitter/the-algorithm https://blog.x.com/engineering/en_us/topics/open-source/2023...
  27. X algorithm Github project hasn't been updated in 8 months: https://github.com/twitter/the-algorithm So clearly they aren't running it in production. Also they didn't open source the list of people who are being artificially boosted e.g.…
    comment by threeseed · 2024-03-18 · in Grok
  28. …and either some product does satisfy it, or it doesn't. As far as I am aware > https://github.com/twitter/the-algorithm does satisfy the open source definition, so your sarcasm looks demagogical to me, but I am very willing to learn some
    comment by aleph_minus_one · 2024-03-11 · in This week, xAI will open source Grok
  29. Yes, and it's here: https://github.com/twitter/the-algorithm If e.g. Amazon open sources some part of its software infrastructure should they also open source the data it uses or their configuration files?
    comment by coldtea · 2024-03-11 · in This week, xAI will open source Grok
  30. AGPL https://github.com/twitter/the-algorithm
    comment by mavhc · 2024-03-11 · in This week, xAI will open source Grok
  31. It's been OSS for a while - https://github.com/twitter/the-algorithm
  32. https://github.com/twitter/the-algorithm
  33. …like a pretty serious allegation. How do you know this is true? Is it in the source code?[1] [1]: https://github.com/twitter/the-algorithm
    comment by freedomben · 2023-10-23 · in Leaving Twitter
  34. Twitter's algorithm code is canonical good Scala - https://github.com/twitter/the-algorithm
    comment by steno132 · 2023-08-24 · in Ask HN: Where do I find good code to read?
  35. …I submitted this feature request that was highly ranked, but certainly will never be implemented. https://github.com/twitter/the-algorithm/issues/1363
  36. Who closed 656 issues? They seem to be actively commenting: https://github.com/twitter/the-algorithm/issues?q=commenter%...
  37. There is already a bug report for this: https://github.com/twitter/the-algorithm/issues/1876
    comment by SocketAcc133123 · 2023-07-24 · in Twitter has officially changed its logo to ‘X’
  38. …used when you open a new session. Plus, the algorithm for the "For you" feed is open source[0] 0. https://github.com/twitter/the-algorithm
  39. Well they open sourced part of it, https://github.com/twitter/the-algorithm and then I'm pretty sure Elon had a whiteboard session during his first days before firing everyone and had people explain it to him. Which he then posted on his…
  40. Never forget https://github.com/twitter/the-algorithm/pull/447
  41. Hey! We did some texting on https://github.com/twitter/the-algorithm without issues(*), that was around 150K lines of code. And it works great, I wish I knew more domain details about twitter to be able to really leverage it, but it…
  42. There's another 100 joke PRs where this comes from https://github.com/twitter/the-algorithm/pulls?q=is%3Apr+is%...
    comment by mtmail · 2023-05-22
  43. …recommendation algorithm has long since been completely open sourced. It's available right here: https://github.com/twitter/the-algorithm
  44. …what they want the system to show them? For example, this suggestion I posted on the Twitter algo https://github.com/twitter/the-algorithm/issues/1363
  45. …this suggestion to Twitter, I doubt they will use it, but it is currently ranked 4th by up votes. https://github.com/twitter/the-algorithm/issues/1363
    comment by 13years · 2023-04-11 · in Substack Notes Launched
  46. For the folks not logged into Github (who won't be able to search): https://github.com/twitter/the-algorithm/blob/138bb519975407... https://github.com/twitter/the-algorithm/blob/138bb519975407... https://github.com/twitter/the-algorithm/blo…
  47. …in the actual techniques being employed: Twitter repo + relevant visibility tweaking code at: https://github.com/twitter/the-algorithm/tree/main/visibilit... Still reading through it myself, but if I'm properly distilling the gist out of…
  48. …entity for misinformation, PolicyInViolation.AbusePolicyUkraineCrisisMisinformation ; source: https://github.com/twitter/the-algorithm/blob/7f90d0ca342b92... .
  49. It is in the original repo: https://github.com/twitter/the-algorithm/blob/main/visibilit... The problem is, the branch 'main' and its contents will change over time, so GP linked to a 'permalink' of the exact commit hash instead.
  50. If someone curious here is the line on GitHub: https://github.com/twitter/the-algorithm/blob/7f90d0ca342b92... UPD: here is link to main branch without specific commit. Line is still there, it's not some fake or something:…