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
20082026
-
The names reminded me of https://github.com/twitter/the-algorithm/pull/1027
comment by hmokiguess · 2026-08-20 · in Stwipe Acquires OpenWouter -
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'…
comment by observationist · 2026-04-10 · in HBO Obtains DMCA Subpoena to Unmask 'Euphoria' Spoiler Account on X -
…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 -
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 -
This is not believable. It's not syntactically valid Python. https://github.com/twitter/the-algorithm/blob/c54bec0d4e029f...
comment by 3np · 2025-09-09 · in Source code for the X recommendation algorithm -
…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 -
…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 -
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…
comment by uyzstvqs · 2025-09-09 · in Source code for the X recommendation algorithm -
Already posted above: https://github.com/twitter/the-algorithm/blob/c54bec0d4e029f... It's redacted.
comment by viraptor · 2025-09-09 · in Source code for the X recommendation algorithm -
…[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...
comment by barbazoo · 2025-09-09 · in Source code for the X recommendation algorithm -
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…
comment by frabcus · 2025-09-09 · in Source code for the X recommendation algorithm -
RIP author_is_elon, we hardly knew ye. https://github.com/twitter/the-algorithm/issues/236
comment by jsheard · 2025-09-09 · in Source code for the X recommendation algorithm -
…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…
comment by SilverElfin · 2025-09-02 · in Twitter Shadow Bans Turkish Presidential Candidate -
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.
comment by thrance · 2025-08-29 · in John Carmack's arguments against building a custom XR OS at Meta -
…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…
comment by aredox · 2025-07-22 · in France launches criminal probe of X over alleged algorithm ‘manipulation’ -
Just like they are "publishing" their algorithm? https://github.com/twitter/the-algorithm hasn't been updated for two years
comment by troupo · 2025-05-16 · in Grok's white genocide fixation caused by 'unauthorized modification' -
…forgot to update it after his grand gesture of transparency? Pepperidge Farm remembers: https://github.com/twitter/the-algorithm
comment by bigyabai · 2025-05-16 · in Update on an incident that happened with our Grok response bot on X yesterday -
It's not been updated in over a year. It was a ruse: https://github.com/twitter/the-algorithm
comment by philjohn · 2024-12-03 · in Brits are scrolling away from X and aren't that interested in AI -
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? -
…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
comment by pms · 2024-11-17 · in X's algorithm was changed in mid-July 2024 to boost right-leaning accounts -
…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
comment by jacoblambda · 2024-11-17 · in X's algorithm was changed in mid-July 2024 to boost right-leaning accounts -
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…
comment by jsheard · 2024-11-17 · in X's algorithm was changed in mid-July 2024 to boost right-leaning accounts -
- https://github.com/twitter/the-algorithm?tab=readme-ov-file
comment by Bluestein · 2024-07-25 · in Twitter's Recommendation Algorithm (2023) -
You can look at Twitter's recommendation system [here]( https://github.com/twitter/the-algorithm ) to get an idea.
comment by farhanhubble · 2024-07-25 · in Ask HN: How technically complex are social media algorithms? -
TIL: https://github.com/twitter/the-algorithm https://blog.x.com/engineering/en_us/topics/open-source/2023...
comment by ElijahLynn · 2024-05-16 · in Winamp has announced that it is "opening up" its source code -
…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 -
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 -
AGPL https://github.com/twitter/the-algorithm
comment by mavhc · 2024-03-11 · in This week, xAI will open source Grok -
It's been OSS for a while - https://github.com/twitter/the-algorithm
comment by rco8786 · 2023-11-14 · in X is changing its algorithm to highlight smaller accounts -
https://github.com/twitter/the-algorithm
comment by yreg · 2023-11-14 · in X is changing its algorithm to highlight smaller accounts -
…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 -
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? -
…I submitted this feature request that was highly ranked, but certainly will never be implemented. https://github.com/twitter/the-algorithm/issues/1363
comment by 13years · 2023-08-18 · in Elon Musk's Latest Big Idea for X Is Removing the Block Button -
Who closed 656 issues? They seem to be actively commenting: https://github.com/twitter/the-algorithm/issues?q=commenter%...
comment by jameslk · 2023-07-26 · in The new X button doesn't close the website -
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’ -
…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
comment by msravi · 2023-07-08 · in I am drowning in mutes: The current Threads experience -
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…
comment by losthubble · 2023-07-06 · in Twitter is threatening to sue Meta over Threads -
Never forget https://github.com/twitter/the-algorithm/pull/447
comment by appleaday1 · 2023-07-06 · in Backend of Meta Threads is built with Python 3.10 -
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…
comment by Alexanfa · 2023-05-28 · in Show HN: Tzap – Simple contextual code generation -
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 -
…recommendation algorithm has long since been completely open sourced. It's available right here: https://github.com/twitter/the-algorithm
comment by somenameforme · 2023-05-04 · in State-controlled media gain Twitter followers after quiet platform policy change -
…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
comment by 13years · 2023-04-12 · in Twitter showed us its algorithm – what does it tell us? -
…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 -
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…
comment by ghostoftiber · 2023-04-10 · in Twitter allows “GovernmentRequested” classifications of “misinformation” -
…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…
comment by salawat · 2023-04-02 · in Analysis of Twitter algorithm reveals Twitter down-ranks tweets about Ukraine -
…entity for misinformation, PolicyInViolation.AbusePolicyUkraineCrisisMisinformation ; source: https://github.com/twitter/the-algorithm/blob/7f90d0ca342b92... .
comment by thih9 · 2023-04-02 · in Analysis of Twitter algorithm reveals Twitter down-ranks tweets about Ukraine -
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.
comment by rjh29 · 2023-04-02 · in Analysis of Twitter algorithm reveals Twitter down-ranks tweets about Ukraine -
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:…
comment by SXX · 2023-04-02 · in Analysis of Twitter algorithm reveals Twitter down-ranks tweets about Ukraine