Guide

How the X algorithm works in 2026, according to its own code

Short answer

The code behind X's For You feed is open source. Its model, Phoenix, predicts how likely you are to like, reply, repost, share, block or report each post, and the code weights and sums them. As of October 2026, it skips posts older than 48 hours and weighs a likely reply to a mutual's original post more heavily.

Where the 2026 algorithm comes from

In January 2026 X published the code behind its For You feed on GitHub as xai-org/x-algorithm, under the Apache 2.0 licence; the first commit is dated 20 January. It follows twitter/the-algorithm, which Twitter released in March 2023. That older system ranked posts with a neural network called the heavy ranker, fed with features describing each post and user. The January 2026 README said X had “eliminated every single hand-engineered feature and most heuristics” and ranked posts with a “Grok-based transformer”.

It is not a one-off release. Since August 2026 the repository has been updated several times a week, and its README says X runs scripts that set the defaults in the code to the primary production values, and aims to show experiments running on a notable share of traffic, such as 10% or more. The weights file read for this guide says it was last synced on 7 October 2026.

How a post reaches your For You feed

The README describes a feed built fresh for every request, in this order:

  1. Your context. The system loads your recent engagements, which the README calls “the main input to the model”, plus who you follow, your blocks and mutes, muted keywords and the posts you have already seen.
  2. Candidates. Thunder holds recent posts from accounts you follow. For accounts you don't follow, Phoenix retrieval returns posts whose embeddings sit nearest yours, SimClusters finds posts through clusters of who engages with what, and a shared list adds popular recent posts.
  3. Filters. Before scoring, the code removes duplicates, posts older than 48 hours, your own posts, accounts you block or mute, posts matching your muted keywords, posts you have already been shown, and reposts and replies from accounts you don't follow.
  4. Scoring. A model called Phoenix scores every remaining post, and the highest scores are kept.
  5. Visibility. A separate system decides whether each kept post may be shown to you at all.
  6. Blending. Ads, Who to Follow and prompts are mixed in, the last two at fixed positions.

What the model predicts, and the weights

For every candidate post, Phoenix predicts how likely you are to like, reply, repost, quote or share it (by DM or by copying the link); to click the post, the profile, a link, a photo or a video; to dwell on it or keep watching; to follow the author; or to react negatively with not interested, mute, block, report or not dwelling on it. The scorer adds them up as Σ (weight × P(action)).

Selected weights in home-mixer/params/param.rs, as synced on 7 October 2026
Predicted actionWeight
Like0.5
Repost1.0
Reply5.0
Reply, when the post is an original post by someone you follow who follows you back5.0 + 15.0
Quote5.0
Share by DM5.0
Share by copying the link20.0
Follow the author4.0
Open a link0.2
Not interested−47.52
Block the author−31.2
Mute the author−58.8
Report−234.0

Read them the way the comments in that file ask. Each weight multiplies a predicted probability, not a count: the comments call “one report cancels 468 likes” incorrect, and note that a report's baseline probability is more than 1,000 times lower than a like's, which is why its weight is larger. A reply weighted ten times a like is not worth ten likes; what each term adds depends on how likely you, the viewer, are to take that action.

Numbers still quoted around the web, such as 13.5 for a reply, 75 for a reply the author engages with or −369 for a report, are the April 2023 weights of the old heavy ranker, published in twitter/the-algorithm-ml. The 2026 list of predicted actions has no “reply engaged by author” at all.

Three adjustments after scoring

  • Author diversity. Each further post from the same author is multiplied by a decaying factor, down to a floor.
  • Out-of-network discount. Posts from accounts you don't follow are multiplied by a factor below 1, and so are replies and reposts from accounts you do follow.
  • New-author boost. In author_cold_start.rs, with the defaults synced on 7 October 2026, a post qualifies when it is an original post (not a reply or repost), less than two hours old, with fewer than 200 views on Home, from an author with 50,000 followers or fewer. At most one qualifying post per ranked batch is lifted to at least the score of the post in 16th place, picked by a random draw that favours posts with more likes per Home view.

A final step, VMRanker, reorders the list so that similar posts don't sit next to each other, giving up a little score to do it.

What changed in 2026

  • January. The For You code goes public as xai-org/x-algorithm, first commit dated 20 January.
  • 15 May. An update adds a runnable end-to-end inference pipeline and new components for content understanding, ads and candidate sourcing.
  • 10 to 24 July. The mutual-follow boost. An A/B test from 10 July gave a small share of users a boost of 5, 10, 15 or 20 on the reply weight for original posts by people they follow who follow them back. On 13 July a value of 20 went out to many users; on 24 July X lowered it to 15 after experiment results and feedback, for example that some people weren't seeing as much World Cup discussion as they wanted (X's write-up of the change). Announcing it, Nikita Bier wrote that it would “boost visibility of your posts to your mutuals (people who you follow back)”. The default synced on 7 October is still 15.
  • 13 August. X publishes the configuration values, including the weights above, plus the visibility-filtering code, the systems that label posts and accounts, Phoenix's training code and SimClusters, and launches a transparency tool called Under the Hood.
  • 14 August. Comments explaining how the weights work, and a filter that removes posts from accounts reported to Brazil's Electoral Court for the 2026 election, unless you follow them.
  • 18 September. Under the Hood reports start showing whether posts were withheld in a country after a legal demand.

Ranking is not visibility

Ranking sets the order; visibility filtering decides whether a post can be shown at all. For each post and viewer it answers allow, notice, interstitial or drop, using your own blocks and mutes and labels that other systems attach to posts and accounts. Some rules apply only when a post is recommended to someone who doesn't follow its author, “spam caught at high recall, for instance”; the same post is still allowed to a follower.

One labelling job, agatha, labels accounts from how others respond to their posts: blocks, reports and spam reports relative to likes. Not everything is published: the README says some labelling rules and the LLM prompts of its post classifiers are held back to make gaming harder. Instead, X is piloting Under the Hood, which shows the visibility-limiting labels on your own account and posts, with availability to expand over time.

Replies under a post are ranked separately

The open-source code covers the For You feed. Inside a conversation, X's help page on the For you timeline says that when ranking a reply higher it considers “if the original post author has replied, if a reply is from someone you follow, or if the person is a X Premium subscriber”. The Premium page adds that people “will see a slight preference for replies from verified accounts”, that X is still testing how much, and lists reply prioritization on every Premium tier, larger on Premium and largest on Premium+.

In the For You code, replies from accounts the viewer doesn't follow are filtered out (OONRetweetReplyFilter; the switch that would let some through was off in the 7 October defaults). People who don't follow you see your replies inside the conversation, not in their For You feed.

What it means for a small account

The code shows what is scored, not what will work for you. The points below are our reading of it, each tied to the code above.

For a worked example, the founder's paid guide Talk First describes how he went from 0 to 2,699 followers in 34 days.

Where xInsightss fits

xInsightss can't change how X ranks your posts, and nothing in it promises reach or followers. It helps with the parts you control:

  • The reply inbox collects every reply to you in one queue, so you can answer while the conversation is fresh.
  • Engage finds fresh original posts on your topics, from the last 24 hours, 3 days or 7 days, and opens X with your reply ready to post.
  • Analytics judges every post over its first 48 hours against your follower count, so you can see which posts travelled beyond your followers.

Questions

Is the X algorithm open source in 2026?

The For You feed is. X published its code on GitHub as xai-org/x-algorithm in January 2026, under the Apache 2.0 licence, and updates it several times a week. Some labelling rules and the LLM prompts of its post classifiers are held back to make gaming harder.

What changed in the X algorithm in 2026?

In January X published the For You code, which ranks posts with a transformer model called Phoenix. In July it added weight to replies on mutual follows' original posts, set to 15 on 24 July. In August it published the weights and the visibility-filtering code and launched the Under the Hood transparency tool.

Do links hurt your reach on X?

The weights file has no negative weight for links: opening a link is a positive action with a weight of 0.2. What the code can't show is whether Phoenix, a trained model, predicts fewer likes or replies for posts with links.

Does X Premium boost your posts?

For replies inside a conversation, X says so: its Premium page describes a slight preference for replies from verified accounts and lists reply prioritization on every Premium tier. The For You weights file lists no weight for Premium or verification; the README mentions subscription status among the data loaded for each post without saying how it is used.

Can you reset the X algorithm?

The README describes no reset switch. The model's main input is your recent engagement history, and the code filters out accounts you block or mute and posts matching your muted keywords. You can also switch to the Following tab, which X says shows posts only from the accounts you follow.

Sources

Checked on . X changes its product, code and help pages often; where a source and this guide disagree, the source wins.

  1. X For You Feed Algorithm, README, GitHub, xai-org/x-algorithm
  2. home-mixer/params/param.rs (weights, synced 7 October 2026), GitHub, xai-org/x-algorithm
  3. home-mixer/scorers/author_cold_start.rs, GitHub, xai-org/x-algorithm
  4. home-mixer/filters/oon_retweet_reply_filter.rs, GitHub, xai-org/x-algorithm
  5. Example algorithm diff: bidirectional follow boost, GitHub, xai-org/x-algorithm
  6. README as first published, January 2026, GitHub, xai-org/x-algorithm
  7. README, update of 15 May 2026, GitHub, xai-org/x-algorithm
  8. Post announcing the mutuals boost, 13 July 2026, Nikita Bier on X
  9. X's Recommendation Algorithm (2023), GitHub, twitter/the-algorithm
  10. Heavy Ranker, weights of 5 April 2023, GitHub, twitter/the-algorithm-ml
  11. About your For you timeline on X, X Help Center
  12. About X Premium, X Help Center
  13. X Premium FAQ, X Help Center
  14. About following on X, X Help Center

Answer every reply, and see what travels.

xInsightss puts every reply to you in one queue, finds fresh posts worth replying to in your niche, and shows which of your posts reached beyond your followers.

xInsightss is a paid app with no free plan. The 7-day Pro trial includes 300 replies or follows; a card is required at checkout and it becomes $49/month unless you cancel before it ends. xInsightss is not affiliated with X Corp.