Ross ROSS = Recommend OSS · open-source software intelligence for agents

X Recommendation Algorithm

Source code for the X Recommendation Algorithm observed · 2026-08-28

github.com/twitter/the-algorithm · homepage · Scala · AGPL-3.0 (copyleft) observed · 2026-08-28

Health v2 · maintenance only

48/100

  • Activity 41
  • Release rhythm 35
  • Longevity 89

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 1255
  • days_rel: n/a
  • days_push: 359
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

73868 stars · 13286 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

The open-source source code for X's (formerly Twitter) recommendation algorithm, a set of services and jobs that serve personalized feeds of posts across X product surfaces like the For You timeline, search, and notifications. It includes data pipelines, embedding models (SimClusters, TwHIN), trust-and-safety models, and serving frameworks such as product-mixer and navi.

Use cases

  • understand how the X For You feed ranking works
  • study large-scale recommendation systems in production
  • learn how social media feeds are personalized
  • research community detection and graph embeddings at scale
  • build a recommendation service for a social feed
  • study ML model serving architecture in Scala and Rust

When to choose

  • you want to inspect or research a real production-scale recommendation algorithm
  • you need reference implementations of candidate sourcing, ranking, and feed mixing
  • you are studying social graph embeddings or user interaction prediction

When to avoid

  • you want a plug-and-play recommendation library for your own app
  • you need a small, self-contained project that runs without X's infrastructure
  • you require a permissive license since it is AGPL-3.0

Facets

service · maturity active

machine-learning search-engine streaming data-science machine-learning social-media analytics large-language-models jvm rust cloud recommendation-system feed-ranking scala social-graph embeddings content-ranking docker

1 source

Member repositories

RepositoryRoleHealth v2
twitter/the-algorithmmain48
twitter/the-algorithm-mlbackend30

For agents

markdown · JSON · MCP: product_card(name="twitter/the-algorithm")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem