# X open sources its “core recommendation system”, which powers For You, on GitHub, and says the system “ranks everything using a Grok-based transformer model”

X has published its core recommendation system on GitHub, saying the For You feed ranks content with a Grok-based transformer model.

Record as of 21 January 2026. Labels written by Codex, for review. JSON: <https://texxr.com/v3/article/1161812.json>

## X open sources its “core recommendation system”, which powers For You, on GitHub, and says the system “ranks everything using a Grok-based transformer model”

*as of 21 January 2026; judged by one reader, needs review*

**In one line:** The publisher’s headline and the coverage around it.

TechCrunch · Lucas Ropek · [21 January 2026](/2026/01/21) · [Read original](https://techcrunch.com/2026/01/20/x-open-sources-its-algorithm-while-facing-a-transparency-fine-and-grok-controversies/)

In 2023, the website then known as [Twitter](/entity/twitter) partially open sourced its algorithm for the first time.

**Context**

This expands on [Twitter](/entity/twitter)'s [2023 partial release of For You recommendation code](/838637): X now describes the published system as its core recommender and identifies a [Grok](/entity/grok)-based transformer as the ranking layer.

The move also revives the unresolved distinction between publishing code and making a live feed understandable. Earlier coverage warned that [recommendation systems' data and operational complexity can limit transparency](/978016) even when source code is available.

*First-order effects*

- Developers and researchers can inspect the published core recommendation system on [GitHub](/entity/github), including X's stated use of a Grok-based transformer model for ranking.
- Grok becomes more explicitly tied to X's primary distribution mechanism, not only to AI features previously introduced on the platform.

*Second-order effects*

- Scrutiny can shift from broad claims about algorithmic openness to whether the released code reflects live ranking behavior—a gap made consequential by the data and system complexity behind recommendations.
- Creators, researchers, and competing platforms gain a concrete reference point for assessing how a model-led ranking stack is structured, even if the release alone cannot reveal all production inputs.

*Third-order effects*

- If this approach is sustained, recommendation transparency may increasingly mean disclosing model architecture alongside code, while the data, tuning, and deployment controls remain the harder governance questions.
- The release points toward AI models becoming shared infrastructure for both content creation and content distribution, concentrating strategic importance in the model layer.

**The trend:** Social platforms are embedding proprietary AI models deeper into feed distribution while using open-source releases to make parts of that infrastructure inspectable.

Related: [AI Commons as Critical Infrastructure](/concepts#ai-commons-as-critical-infrastructure) · [AI distribution advantage](/concepts#ai-distribution-advantage) · [Grok](/entity/grok) · [GitHub](/entity/github) · [Twitter's 2023 recommendation-code release](/838637) · [Why source code alone may not ensure transparency](/978016)

**Entities**

- [GitHub](/entity/github)
- [Grok](/entity/grok)
- [Twitter](/entity/twitter)

**Related coverage**

- [X For You Feed Algorithm  —  This repository contains the core recommendation system powering the …](https://github.com/xai-org/x-algorithm) · GitHub
- [Elon Musk Makes Part of X Algorithm Open Source, Says It ‘Sucks’](https://gizmodo.com/elon-musk-makes-part-of-x-algorithm-open-source-says-it-sucks-2000712201) · Gizmodo · Mike Pearl
- [X Publishes AI-Powered Algorithm Code](https://www.socialmediatoday.com/news/x-formerly-twitter-publishes-ai-powered-algorithm-code/810015/) · Social Media Today · Andrew Hutchinson
- [X open sources its algorithm: 5 ways businesses can benefit](https://venturebeat.com/data/x-open-sources-its-algorithm-5-ways-businesses-can-benefit) · VentureBeat · Carl Franzen
- [Elon Musk says X's algorithm is ‘dumb’ and ‘needs massive improvements’ as he open-sources recommendation system](https://www.businessinsider.com/elon-musk-x-algorithm-for-you-feed-changes-open-source-2026-1) · Business Insider · Ben Shimkus
- [X breaks precedent by open-sourcing its algorithm](https://www.thedeepview.com/articles/x-breaks-precedent-by-open-sourcing-its-algorithm) · The Deep View · Sabrina Ortiz
- [Elon Musk's X Open-Sources Recommendation Algorithm on GitHub](https://www.webpronews.com/elon-musks-x-open-sources-recommendation-algorithm-on-github/) · WebProNews · Juan Vasquez
- [Elon Musk's X Open-Sources Grok-Powered Algorithm Driving ‘For You’ Feed](https://decrypt.co/355108/elon-musks-x-open-sources-grok-powered-algorithm-driving-for-you-feed) · Decrypt · Vismaya V
- [Elon Musk Open-Sources X Algorithm, Calls It “Dumb” and Invites Public to Watch It Improve](https://www.thehansindia.com/technology/tech-news/elon-musk-open-sources-x-algorithm-calls-it-dumb-and-invites-public-to-watch-it-improve-1040830) · The Hans India · Kahekashan
- [X For You Feed Algorithm](https://news.ycombinator.com/item?id=46688173) · Hacker News
- [Elon Musk's X Open-Sources Its Feed Algorithm Amid Crypto Content Disruptions](https://cryptonews.com/news/elon-musks-x-open-sources-its-feed-algorithm-amid-crypto-content-disruptions/) · Cryptonews · Amin Ayan
- [Decoding X's algorithm: Here's how Grok open-sources and curates the “For You” feed](https://www.businesstoday.in/technology/news/story/decoding-xs-algorithm-heres-how-grok-open-sources-and-curates-the-for-you-feed-511751-2026-01-20) · Business Today · Aishwarya Panda

**Discussion**

- @xeng @xeng x · We have open-sourced our new 𝕏 algorithm, powered by the same transformer architecture as xAI's Grok model. Check it out here: https://github.com/...
- @godsburnt Shibo x · @XEng The code is out. The secrets are gone. Here is how you go viral: Bookmarks are Gold: A “Save” is now a 50x multiplier. If your post isn't worth referencing later, it's invisible. The 75x Rule: A reply + your response is the strongest signal in the code. Ghosting your commen…
- @atmk44 @atmk44 x · @XEng The only things you need to know: Every account has a base score that's applied before a tweet is evaluated. Verified accounts: +100 automatically Unverified accounts: up to +55 That base score is then multiplied by: Your follower-to-following ratio (only meaningful if it's
- @bytebot Colin Charles x · @XEng Cursory review of the algorithm code: - algorithm predicts engagement signals (likes, reposts, replies), and naturally more engagement is higher visibility, so early engagement matters - content from accounts followed is prioritised, out-of-network is ML predicted - transfo…
- @scobleizer Robert Scoble x · @XEng Is the new open source algorithm fair? Or even good? Here Grok analyzes my posting behavior and says that I'm doing everything wrong if my goal is to get reach: https://x.com/... It suggests that I will need to shift toward reply-bait hooks, stronger emotional pattern
- @scottwu46 Scott Wu x · If you're curious to explore the new algorithm: https://deepwiki.com/... Notably there are no new constants (base scores) published in the repo. But doesn't seem to stop people from claiming to know all of them anyway! https://deepwiki.com/...
- @quasimondo Mario Klingemann x · @XEng You left out the most interesting part: what ARE the actual weights used in scoring a post? [image]
- @barkmeta Bark x · I read the code so you don't have to. here's the breakdown: 1. reply to your comments. the algo weighs “reply + author response” 75x higher than a like. ghosting comments = strangling reach. 2. links kill visibility. put them in bio or pinned. never in the post. 3. watch time is …
- @furkangozukara Furkan Gözükara x · @XEng The only thing that matters is account hidden flag system that 100000% determines your reach And of course it is 100% hidden
- @babybeginner @babybeginner x · @XEng So, we have to boring one trick ponies thanks to SimClusters. If we speak outside of whatever lane the AI has put us in then our posts go nowhere. That's boring. That's discouraging. And no matter how hard you work, trolls have full control over this entire platform. [image…
- @joshtaylor Josh Taylor bluesky · All the replies to X's post on this pointing out that links are massively punished if included in posts.  Tapping the sign.  [embedded post]
- @elonmusk Elon Musk x · We know the algorithm is dumb and needs massive improvements, but at least you can see us struggle to make it better in real-time and with transparency. No other social media companies do this.
- @stevestreza @stevestreza x · Assuming this is actually used, these appear to be the parts of a tweet that factor into the algorithm. Grok calculates these through god knows what. There's no transparency there. Note that whether a tweet has a link or says “shop” or anything like that seems to have no effect. …
- @nearcyan Near x · ML diagram of twitter's algorithm overall nothing too surprising. no content features, no follower count, and isolation between potential candidate tweets shame about algos all being out-of-network discovery though. it'd be cool to see tweets from people i like and follow.. [imag…
- @marionawfal Mario Nawfal x · 🚨X JUST DID WHAT NO OTHER PLATFORM HAS THE GUTS TO DO... X released the source code for its new 𝕏 algorithm. Every major platform has hidden behind “proprietary technology” excuses for years. X just opened the black box. The code reveals a sophisticated system powered by [image]
- @zuhaitz_dev Zuhaitz x · Transparency... Maybe the algorithm is open-source, but there are points, like the payout system, which are still a black box. I am not necessarily asking for open sourcing it (among others), but we need clarity at least.
- @matthewbennett Matthew Bennett x · The smartest play would be to switch the algo off. Just go back to human networks. Right now it is engineered for dopamine addiction and exploitation and content creation slavery.
- @dandillondev Dan Dillon x · I feel like the algorithm needs to be 90% posts from those you follow with sporadic similar posts sprinkled in. If you want to see other stuff, search and follow people that tweet about it. That's how most social media started, and any further control makes it feel unnatural.
- @hannahdcox Hannah Cox x · I appreciate the transparency here, I really do. But all we're asking is you go back to whatever the algorithm and platform were doing circa 2020 - without the overt censorship. And keep community notes.
- @jeremarketer Jeremy Goldman x · Transparency is good! Now, if only X could be purchased by someone who had the money to improve the algorithm
- @janrezab Jan Rezab x · Kudos for transparency! But now getting serious: 1. Now can we see the parts that are hidden for “security” reasons? 2. Can we get database parameters for throttling? 3. Does that database itself have a custom algorithm for serving, where an IT Ops person can easily
- @shem_infinite Shem Horne x · I remember Jack would use the algorithm to suppress Trump supporters and then lie to Congress about it so this is a huge improvement. Thank you.

**Relationships**

- X launch core recommendation system, [GitHub](/entity/github) · confirmed · X says it has open sourced its core recommendation system on GitHub.
- X launch Grok-based transformer model, core recommendation system · confirmed · X says the core recommendation system ranks everything using a Grok-based transformer model.
- [Twitter](/entity/twitter) launch algorithm · confirmed · In 2023, the website then known as Twitter partially open sourced its algorithm for the first time.

**Similar stories**

- [Twitter open sources a portion of its code on GitHub, including its algorithm for recommending tweets in For You but excluding its ad recommendation algorithm](https://texxr.com/838637/twitter-open-sources-for-you-recommendation-code) · TechCrunch, 2 April 2023 · [publisher](<https://techcrunch.com/2023/03/31/twitter-reveals-some-of-its-source-code-including-its-recommendation-algorithm/>) · 69%
- [Elon Musk says xAI has open sourced Grok 2.5 and plans to do the same for Grok 3 in about six months, with Grok 2's weights now available on Hugging Face](https://texxr.com/889401/xai-open-sources-grok-2-5-weights) · @elonmusk, 24 August 2025 · [publisher](<https://x.com/elonmusk/status/1959379349322313920>) · 58%
- [X releases its For You algorithm's and core ranking engine's source code on GitHub and adds tools that let users see if X's ranking systems “shadowbanned” them](https://texxr.com/1174978/x-opensources-for-you-ranking-code) · TechCrunch, 14 August 2026 · [publisher](<https://techcrunch.com/2026/08/13/x-open-sources-its-ranking-algorithm-letting-users-see-if-theyve-been-shadowbanned/>) · 58%
- [xAI open sources the base model weights and network architecture of Grok-1, a 314B parameter Mixture-of-Experts model trained in October 2023, under Apache 2.0](https://texxr.com/850495/xai-open-sources-grok-1-model-weights) · xAI, 18 March 2024 · [publisher](<https://x.ai/blog/grok-os>) · 54%
- [Facebook open sources DLRM, a deep learning recommendation model that can be used for benchmarking the speed and accuracy performance of recommendation engines](https://texxr.com/943402/facebook-open-sources-dlrm-recommendation-model) · VentureBeat, 3 July 2019 · [publisher](<https://venturebeat.com/2019/07/02/facebook-open-sources-dlrm-a-deep-learning-recommendation-model/>) · 54%
- [Experts say open sourcing Twitter's algorithm will not increase transparency because recommendation engines are complex and use an immense fire hose of data](https://texxr.com/978016/experts-say-open-sourcing-twitter-algo-wont-help) · Washington Post, 18 April 2022 · [publisher](<https://www.washingtonpost.com/technology/2022/04/16/elon-musk-twitter-algorithm/>) · 52%
- [Microsoft releases its SPTAG algorithm, used to answer questions on Bing, as MIT-licensed open source on GitHub](https://texxr.com/941759/microsoft-opens-sptag-algorithm-as-mit-licensed) · Ars Technica, 16 May 2019 · [publisher](<https://arstechnica.com/?p=1505561>) · 52%
- [xAI begins rolling out an upgraded version of Grok-2 that is “three times faster” to all X users, adds a “Grok button” to X posts, and reduces API pricing](https://texxr.com/880346/xai-rolls-out-faster-grok-and-grok-button) · TechCrunch, 14 December 2024 · [publisher](<https://techcrunch.com/2024/12/13/x-gains-a-faster-grok-model-and-a-new-grok-button/>) · 51%
- [X launches Stories on X, with news curated and summarized by Grok AI, available for Premium subscribers in the Explore tab on iOS and on the web](https://texxr.com/864408/x-launches-stories-summarized-by-grok-ai) · TechCrunch, 4 May 2024 · [publisher](<https://techcrunch.com/2024/05/03/x-launches-stories-on-x-delivering-news-summarized-by-grok-ai/>) · 51%
- [Meta says Community Notes will use the same open-source algorithm that powers X's Community Notes, but it plans to modify the algorithm to better serve its apps](https://texxr.com/883447/meta-adapts-xs-open-source-community-notes-algorithm) · CNBC, 13 March 2025 · [publisher](<https://www.cnbc.com/2025/03/13/meta-community-notes-to-use-open-source-technology-from-elon-musks-x.html>) · 51%
- [Twitter should not only open source its algorithm but also create a marketplace where anyone can build their own algorithms and use the algorithms others create](https://texxr.com/978017/twitter-should-open-algorithm-and-create-marketplace) · Every, 18 April 2022 · [publisher](<https://every.to/divinations/elon-is-right-twitter-should-open-up-the-algorithm>) · 51%
- [SpaceXAI open-sources Grok Build under an Apache 2.0 license, after the tool uploaded user repositories to SpaceXAI's Google Cloud bucket, causing a backlash](https://texxr.com/1173042/xai-open-sources-grok-build) · Simon Willison's Weblog, 16 July 2026 · [publisher](<https://simonwillison.net/2026/Jul/15/grok-build/>) · 51%
- [Bluesky open sources its collaborative moderation tool Ozone and plans to let users run their own independent moderation services later this week](https://texxr.com/850316/bluesky-open-sources-ozone-moderation-tool) · TechCrunch, 13 March 2024 · [publisher](<https://techcrunch.com/2024/03/12/bluesky-launches-ozone-a-tool-that-lets-users-create-and-run-their-own-independent-moderation-services/>) · 50%
- [TikTok describes its video recommendation algorithm, says engagement metrics are strong signals while time of publishing, creator, and device type are weak ones](https://texxr.com/954841/tiktok-explains-for-you-algorithm-signals) · Wired, 19 June 2020 · [publisher](<https://www.wired.com/story/tiktok-finally-explains-for-you-algorithm-works>) · 50%
- [Elon Musk says xAI plans to open source Grok this week; xAI released Grok in November 2023, offering access to “real-time” data via X's $16/month subscription](https://texxr.com/850294/xai-plans-to-open-source-grok-this-week) · TechCrunch, 12 March 2024 · [publisher](<https://techcrunch.com/2024/03/11/elon-musk-says-xai-will-open-source-grok-this-week/>) · 50%
- [X says it has begun a “phased rollout” of its rebuilt ad platform, which it says will have more modern “retrieval and ranking systems” powered by AI](https://texxr.com/1168129/x-rolls-out-rebuilt-ad-platform-powered-by-ai) · TechCrunch, 1 May 2026 · [publisher](<https://techcrunch.com/2026/04/30/x-announces-a-rebuilt-ad-platform-powered-by-ai/>) · 50%
- [Elon Musk's xAI releases Grok, an AI model that the startup says surpasses rivals in its compute class, including ChatGPT-3.5, to a “limited number” of US users](https://texxr.com/1154871/xai-releases-grok-ai-model-limited-us-access) · xAI, 6 November 2023 · [publisher](<https://x.ai/>) · 49%
- [Researchers say Twitter's open sourced For You code is missing context to fully explain the service's recommendations, despite a supposed push for transparency](https://texxr.com/838797/researchers-find-twitter-for-you-code-lacks-context) · The Atlantic, 6 April 2023 · [publisher](<https://www.theatlantic.com/technology/archive/2023/04/elon-musk-twitter-algorithm-code-public/673642/>) · 49%
- [Inside Elon Musk's bet to hook X users that turned Grok into a porn generator; sources say xAI's AI safety team was just two or three people for most of 2025](https://texxr.com/1162623/xai-loosened-grok-guardrails-created-porn-generator) · Washington Post, 2 February 2026 · [publisher](<https://www.washingtonpost.com/technology/2026/02/02/elon-musk-grok-porn-generator/?pwapi_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZWFzb24iOiJnaWZ0IiwibmJmIjoxNzcwMDA4NDAwLCJpc3MiOiJzdWJzY3JpcHRpb25zIiwiZXhwIjoxNzcxMzkwNzk5LCJpYXQiOjE3NzAwMDg0MDAsImp0aSI6ImY5N2NjNDkxLWU4ZDctNDU2Ni1hYzcwLThlZDY4MGRkMTgwZSIsInVybCI6Imh0dHBzOi8vd3d3Lndhc2hpbmd0b25wb3N0LmNvbS90ZWNobm9sb2d5LzIwMjYvMDIvMDIvZWxvbi1tdXNrLWdyb2stcG9ybi1nZW5lcmF0b3IvIn0.J4Q06AhZ2qJ6n0Vs_EWX4vWziAFokhN2NAyisjJt7Cs&itid=gfta>) · 49%
- [YouTube uses Amazon's recommendation algorithm](https://texxr.com/1190037/youtube-uses-amazon-recommendation-algorithm) · Geeking with Greg, 1 February 2011 · [publisher](<http://glinden.blogspot.com/2011/02/youtube-uses-amazons-recommendation.html>) · 49%

- **Judged:** Scribe wrote the corpus context.

## Sources

### The TEXXR article archive

*Section `articles`, as of 21 January 2026; judged by one reader, needs review*

The archive supplies the article and its links. Similar stories use the saved text vectors.

**Method**

- The archive holds the headline, publisher excerpt, coverage and discussion.
- Relationships use the article ID. Similar stories use the archive’s stored text vectors.

**Limits**

- Some articles have no Scribe context, recorded tags or relationships.
