Skip to main content
Blog
Back to Blog

The X algorithm for founders: what the open-source code rewards and how to read Under the Hood

X publishes the code that ranks its For You feed on GitHub, including the weights it gives each predicted action, and since August 2026 it lets many accounts download an Under the Hood report of visibility labels. Most summaries quote numbers from older versions. This guide reads the repository as of October 26, 2026, including what X's October 20 ranking change does and does not alter, for a founder who posts on X to reach buyers: how a post gets into For You, what the current weights reward and penalize, a worked example with the arithmetic shown, how to read your Under the Hood report, which popular claims the code does not support, and a weekly review you can copy. It is useful without a Soloop account.

What X has published, and what it has not

The repository xai-org/x-algorithm holds the code that builds the For You feed: where candidate posts come from, the filters, the model that predicts how a viewer will react to each post and the scorer that turns those predictions into a ranking. X created it in January 2026 and expanded it on August 13, 2026 with the weighting parameters. It is updated often; the version read for this guide is commit 2f25214 from October 26, 2026, and its parameter file says it mirrors X's configuration defaults as of October 26.

On October 20, 2026, Elon Musk announced two changes on X: a new ranking model that predicts probable time spent much better, and a retrieval model trained to surface posts people read all the way through. X has not said how time spent is weighed against replies and shares, or whether every account has the new models. At commit 2f25214 the published weights are unchanged, including dwell at 0.05, so read the announcement as better predictions of attention, not a new reward table. Our reading: it points the same way as the weights, toward posts your buyers stop to read and answer.

The code does not show your own scores, the prediction model's output for any post, the experiments X is running on a given day, or the Grok-based systems that predict rule violations, which X excluded on purpose. Treat it as an accurate description of how ranking is designed, not as a readout of why one post did well.

Repository and license

For You feed code under the Apache 2.0 license; created January 19, 2026; commit 2f25214 on October 26, 2026.

GitHub: xai-org/x-algorithm
August 2026 expansion

Reported as 10 to 15 times larger, adding model configuration, filters and the parameters that weight signals; rule-violation prediction systems excluded.

TechCrunch, Aug 13, 2026
Scoring formula

The README gives Final Score = Σ (weight × P(action)): each weight multiplies a predicted probability, not a raw count of likes or replies.

x-algorithm README
October 20 ranking change

Musk: a new ranking model that predicts probable time spent much better, and a retrieval model trained to surface posts people read all the way through; no weighting or rollout details.

Tom's Guide, Oct 20, 2026 (quoting Musk's post)

How a post reaches someone's For You feed

For each viewer, the system gathers candidate posts, drops ineligible ones, predicts the viewer's reactions, scores and selects the top posts, and runs visibility filtering again before the feed is shown.

  1. Candidates: posts from accounts the viewer follows (in-network) and posts from accounts they do not follow (out-of-network), found by a retrieval model, topic clusters (limited to posts up to 48 hours old) and a shared list of popular posts.
  2. Pre-scoring filters: duplicates, posts the viewer has already seen or been served, muted keywords, blocked or muted authors, posts that are too old and the viewer's own posts, among others.
  3. Budget: when there are more candidates than the model will score, a fair-share filter (switched on by default between the October 20 and October 26 parameter syncs) keeps the same fraction from each candidate source, so posts from followed accounts and recommendations are trimmed evenly.
  4. Prediction: a transformer model estimates the chance that this viewer will like, reply, repost, quote, share, click, dwell, follow you, or say not interested, mute, block or report.
  5. Scoring: each prediction is multiplied by its weight and summed. Posts from accounts the viewer does not follow are scaled down by an out-of-network multiplier below 1.
  6. Selection and visibility: the top posts are kept, a reranking service orders them, and visibility filtering removes or limits posts with certain labels.

The weights as of October 26, 2026

These are the default weights in home-mixer/params/param.rs. A weight only matters together with the predicted probability it multiplies: a like is predicted far more often than a report, so the large negative weights matter most for posts some viewers are likely to dislike.

X For You ranking weights (param.rs defaults, commit 2f25214, October 26, 2026)
DimensionWeightWhat it means for a founder
Share via copy link20.0The highest positive weight. Posts people save and send elsewhere, such as a checklist or a useful table, are rewarded most.
Reply5.0, plus 15.0 for a viewer who mutually follows youA reply is worth about 7.6 likes, and 30 likes for an original post shown to a mutual follower. Questions your buyers can answer matter.
Quote / share via DM5.0 / 5.0Posts worth discussing with someone else rank like replies.
Follow author4.0A post that makes a stranger follow you is worth about six likes.
Share / repost2.0 / 1.0Reposts count, but less than replies or quotes.
Like0.66Likes are the weakest common positive signal.
Click / open link / dwell0.3 / 0.2 / 0.05Small weights. A link is not penalized by a weight, but a link click adds little; the reply or share around it adds more.
Profile click / video quality view0.0 / 0.0Currently given no weight in the score.
Not interested−52.272One predicted "not interested" cancels about 79 predicted likes.
Mute / block author−58.8 / −31.2Signals against you as an author, not just the post.
Report−234.0The largest weight of all. Unwanted tagging, mass replies and spammy offers risk this most.

Three code paths that matter more than any trick

Negative scores rank last. The scorer maps any post whose weighted total is negative into a range below every post with a positive total. For that viewer, a post that enough people would hide or report starts below every post with a positive total, however many likes it is also predicted to get; only the final reranking step can change that order.

Small accounts get an exploration slot. A cold-start scorer can place a post into a slot near position 15 of the feed when its author has at most 50,000 followers, the post is at most two hours old and it has fewer than 200 impressions. It runs as an experiment with control and holdout groups, so not every viewer sees it, and it gives a new post a chance to be seen, not a guaranteed audience.

Out-of-network reach is discounted. A post shown to someone who does not follow you is multiplied by a factor below 1, so strangers see it only when its predicted reactions are strong. For an early founder, your existing followers and mutuals are where a post earns its first replies.

Worked example: scoring two posts

Everything below is fictional: the product, the posts and every probability. Real scores combine about 30 predictions made by X's model for each viewer, which nobody outside X can see. The example uses five of them to show how the weights interact, not to predict reach.

Ledgerline is an invented bookkeeping tool for agencies. Its founder drafts two posts. Post A announces a launch with a link. Post B asks agency owners how they chase late client payments. For one viewer who follows the founder but not mutually, the model might predict the chances below.

Ledgerline: five weighted predictions for one fictional viewer
DimensionPost A: launch linkPost B: customer question
Like (0.66)4.0% → 0.02643.0% → 0.0198
Reply (5.0)0.2% → 0.01001.0% → 0.0500
Open link (0.2)3.0% → 0.0060No link → 0
Repost (1.0)0.3% → 0.00300.2% → 0.0020
Not interested (−52.272)0.2% → −0.10450.05% → −0.0261
Partial total−0.0591 (negative: below every positive post before reranking)+0.0457

Read your Under the Hood report

Under the Hood is X's page for downloading a report of the visibility labels applied to your account and posts in the prior month. Since September 18, 2026 it also shows whether posts were withheld or limited in a country because of a legal demand. X says it is available to accounts at least one year old that posted 10 or more times in the prior month; open x.com/i/under_the_hood or find it in your account settings. If you see only an explanation and no download, your account is not eligible yet.

Read it for what it can tell you: whether a label limited where your posts could appear. It cannot tell you why a post got few impressions, and reviewers report that it gives counts and percentages per label rather than naming each affected post.

Reading an Under the Hood report
DimensionWhat it meansWhat to do
No account or post labelsNothing in the report limited your visibility last month.Look at the posts themselves: who replied, and whether buyers saw them.
A post label on a small share of postsSome posts carried a label, such as one for possible spam, that can limit them.Compare the share with the posts you made that month: mass replies, repeated links or tagging strangers.
An account labelYour account as a whole is limited in some surfaces.Read the label's description and effect, stop the pattern it names and check next month's report.
Legal withholdingA post was limited in a named country after a legal demand.Decide whether that market matters to you; it is not a ranking problem.
Not eligibleThe account is under a year old or posted fewer than 10 times last month.No report is available; use the weekly review below instead.

Claims the current code does not support

Many posts about the X algorithm repeat numbers from the 2023 release or from earlier versions of this repository. Check any claim against the commit it came from.

Common X algorithm claims checked against commit 2f25214
DimensionWhat the code showsStatus
A like is worth 0.5The current default is 0.66.Outdated
Links carry a fixed penaltyNo negative weight for links; opening a link has a small positive weight of 0.2.Not in the weights; X may still run other link experiments
The weights are hiddenDefault weights are published in param.rs.Outdated since August 2026
Every post is judged in its first 30 minutesThe cold-start slot applies to posts up to two hours old; no 30-minute rule appears.Not supported
Engagement pods helpScores are predictions for each viewer; strangers who hide or report a post outweigh many likes.Risky

Copy the weekly review

Copy this review into your own document or spreadsheet; no account is required. It keeps the signals the code weights heavily separate from the outcome you actually need: conversations with people who might buy.

Weekly X review for a founder
DimensionRecordDecision
Posts[Posts this week] / [questions] / [posts with links][Which format to repeat]
Strong signals[Replies] / [quotes] / [shares and saves] / [new followers][Which post earned replies from buyers]
Negative signals[Hides, mutes or blocks you noticed] / [Under the Hood labels, if eligible][The pattern to stop]
Buyer conversations[Replies or DMs from people who match your customer profile][Who to follow up with]
Outcome[Calls booked] / [trials or signups naming X][Keep, change or drop X next week]

Where Soloop fits

Soloop is an AI cofounder that runs individual go-to-market tasks for a founder. According to the Soloop manual, after you connect your X account Soloop can write posts and replies, publish them through the available account controls and track responses. It can also research a market and return the sources it used.

Soloop has no relationship with X, cannot see your Under the Hood report and cannot change how X ranks your posts. A bounded first request: My product is [URL] for [role]. Find recent public X posts where [role] asks about [problem], summarize the questions with sources, and draft two question posts and three replies I could add to those threads. Do not publish until I approve.

Soloop does not promise impressions, replies or followers. Check the current X connection and publishing steps in your workspace, because they can change.

Sources, limitations and refresh

Weights, filters and scoring behavior come from the xai-org/x-algorithm repository at commit 2f25214, read on October 26, 2026. Under the Hood eligibility comes from X Open Source's post on September 18, 2026. Report structure and the August release details are reported by news coverage and third-party guides. The founder meanings, ratios, claim checks, review and fictional example are editorial guidance, not a measured study. Under the Hood eligibility was rechecked on October 26, 2026. The October 20 model change is reported from Musk's post as quoted by Tom's Guide.

The repository mirrors production defaults but not every experiment, and X changes them often. Recheck the weights against the latest commit before relying on them. This guide will be reviewed by January 26, 2027.

Weights and filters

Defaults in home-mixer/params/param.rs (last sync October 26, 2026) and scorer code at commit 2f25214.

GitHub: x-algorithm param.rs
Under the Hood

Labels on your account and posts in the prior month, legal withholding by country; accounts with 10+ posts in the prior month and at least one year old.

X Open Source, Sep 18, 2026
Report structure

Post and account label sections with counts and percentages; does not name each affected post.

Roboin, Sep 27, 2026
Product capability

The Soloop manual describes connecting an X account so Soloop can write posts and replies, publish them through the available account controls and track responses.

Soloop product manual