GuideAlgorithm and reach
How the X algorithm works in 2026, from the code
X publishes its For You ranking code. We read the current weights, filters and new-author rules and explain what they change about how you post.
Short answer: X scores every candidate post in your For You feed by predicting what you will do with it (like, reply, share, mute and about 20 other actions), multiplying each prediction by a fixed weight and adding them up. In the current code, sharing a post by copying its link carries the biggest positive weight (20), a reply, a quote or a share by DM carry 5, and a like carries 0.708. Posts older than 48 hours never reach the feed, and a young post from an account with 50,000 followers or fewer can get one reserved slot. Everything below comes from the public repository at the commit of November 25, 2026, checked again on November 28.
On this page
Sharing a post by copying its link has the biggest positive weight, 20 (param.rs).
Source: xai-org/x-algorithm/
For You drops every post older than 48 hours (config.rs).
Source: xai-org/x-algorithm/
A young post from an account with 50,000 followers or fewer can get one reserved slot (param.rs).
Source: xai-org/x-algorithm/
X's feed code lives on GitHub at xai-org/x-algorithm. The first version went up on January 20, 2026, and the repository has been updated many times since. We read the main branch at commit 52d4598 of November 25, 2026. X says it will keep publishing there:
Going forward, you'll see future algorithm updates published to this open source repository, and you should be able to understand what changed by checking the diffs.
Source: xai-org/x-algorithm/
The README is open about its limits. Many values are read from a configuration system at run time, and X runs scripts that copy the main production values back into param.rs. Experiments on a small share of traffic run all the time, and X only aims to show the ones on 10% of traffic or more. Some files are withheld, and so are the trained model's full weights. Treat the numbers as a good description of the default system on one date.
Numbers from 2023 no longer apply
Many guides still quote the 2023 Twitter code: a reply weighted 13.5 against 0.5 for a like (27 to 1), 75 for a reply the author engages with, and -369 for a report (the 2023 README). That code was replaced in January 2026. Today a reply weighs 5 and a like 0.708, about 7 to 1, and a report -234.
The feed is put together each time you open it. Posts come from two places: the accounts you follow, and accounts you don't follow that X's retrieval models pick for you. Both kinds are ranked together by the same model, which X calls Phoenix.
- Candidate sourcesaccounts you follow and accounts picked for you
- Filterstoo old, blocked or muted, already seen
- Rankingthe chance of each action, times its weight
- Final checksspam labels, one post per conversation
- Your feed35 ranked posts
The request path in X's README, stage by stage: posts are found, filtered, scored and checked again before 35 of them reach you.
Phoenix looks at you, your history and the candidate post, and predicts the probability of each action. The README gives the formula plainly:
Final Score = Σ (weight_i × P(action_i))
The weights multiply predicted probabilities, not raw counts. The code says so in a comment right above the weights:
Each weight multiplies the predicted probability of that action (P(favorite), P(repost), …) … the weights do not multiply raw engagement counts.
Source: xai-org/x-algorithm/
So it is wrong to read the report weight (-234) against the like weight and conclude that one report cancels a few hundred likes. A report is predicted to be more than 1,000 times rarer than a like, so it needs a large weight to move the score at all. The same comment adds that engagement only counts toward ranking when it happens on a post served in the Home timeline. A group chat sending people straight to your post does not move it.
Every number below is read from param.rs at the November 25, 2026 commit. The charts on this page are drawn from those values, so they change when the file does.
- Share by copying the link20
- Reply5
- Quote5
- Share by DM5
- Follow the author4
- Share another way2.118
- Repost1
- Like0.708
- Time spent after a click0.385
- Click into the post0.274
- Open a link0.2
- Stop on the post0.05
- Open a photo0.05
- Click the quoted post0.05
- Not yet seen (followed accounts)0.015
- Dwell time0.0075
A bar twice as long is not worth two of the shorter action: each weight multiplies the predicted chance of its action.
Source: xai-org/x-algorithm/
- Report the post-234
- Mute the author-58.8
- Not interested-53.07
- Block the author-31.2
- Scroll past-0.02
Source: xai-org/x-algorithm/
Several weights are 0 in this version, including profile clicks, video views and opening a video. They are in the file, but they do not count right now.
How to read the charts:
- The strongest positive signal is someone copying your post's link to send it somewhere else. Posts that get copied are usually ones a reader wants to show one specific person: a checklist, a number they did not know, a good explanation of something annoying.
- A reply, a quote and a DM share are worth the same. Each means the reader did something with your post beyond tapping a heart.
- A like is worth less than one. A post that collects likes and nothing else is ranked mostly on a light signal.
- The negative weights are large. A reader who taps "Not interested" or mutes you after an off-topic post costs far more than a like earns. Staying on the topic your followers came for protects you here.
In July 2026 X added a boost for mutual follows and documented the change in BIDIRECTIONAL_BOOST_CHANGE.md.
- Your original post
- Mutual followa reply weighs 20
- Mutual followa reply weighs 20
- You follow them onlya reply weighs 5
- They follow you onlya reply weighs 5
The boost counts only when the viewer and the author follow each other, and only on an original post (not a reply, not a repost).
When the viewer and the author follow each other, the weight on the predicted reply to an original post goes from 5 to 5 + 15 = 20 (BidirectionalFollowReplyWeightBoost in param.rs).
Source: xai-org/x-algorithm/
X tested values of 5 to 20 from July 10, rolled out 20 on July 13, and settled on 15 on July 24 after people said they were missing posts from accounts they did not follow.
In practice, a small circle of people in your niche who follow you back and talk with you lifts your posts in their feeds. Building it is slow: reply with something useful under their posts, follow back the people you keep talking with, and answer the replies you get. A follow-for-follow list is unlikely to help: the boost multiplies the predicted chance of a reply, and strangers who followed you as a trade rarely reply.
- 0 hyou post
- 2 hthe new-author slot closes
- 48 hout of For You for good
The For You pipeline runs an AgeFilter with MAX_POST_AGE = 48 * 60 * 60 seconds (config.rs). A post has two days to be recommended, and then it is out of the feed for good.
Source: xai-org/x-algorithm/
Old posts can still be found through your profile, search and links, but the feed will not bring them back. An evergreen post that did well last month will not return by itself, so the way to reuse a good idea is a new post on it. And if your audience sleeps through a big part of those 48 hours, the post loses that part of its window.
The scorer in author_cold_start.rs reserves a place for one post that has not had a chance yet. With the defaults in param.rs, a post can be picked only when it passes every step below:
- Original postsnot replies, not reposts
- Authors with 50,000 followers or fewer
- At most 2 hours old
- Fewer than 200 Home views
- One post, lifted to place 15 or 16
The checks are ColdStartFollowerCap, ColdStartMaxPostAgeSecs = 7200 and ColdStartImpressionThreshold, and the place is set by ColdStartSlotMin 15 and ColdStartSlotMax 16.
Among the posts that qualify, the code samples by like rate (likes divided by Home views) and lifts the chosen post to place 15 or 16 of the viewer's ranked list. A For You response holds 35 ranked posts (RESULT_SIZE in config.rs).
What this means for a smaller account
The first two hours of a post matter, and the way its first readers react decides whether it gets the extra place. Schedule posts for when your readers are awake instead of posting the moment you finish writing. Our guide to the best time to post on X shows how to find that time from your own numbers. Put the point in the first line, because those first readers are judging it in the feed.
Two filters shape how threads and replies travel:
OONRetweetReplyFilter drops reposts and replies from accounts the viewer does not follow (oon_retweet_reply_filter.rs). Every post after the first in a thread is a reply to your own post, so to a non-follower only the first post can be recommended.
Source: xai-org/x-algorithm/
DedupConversationFilter keeps one post per conversation in a feed response, the one with the best score (dedup_conversation_filter.rs).
Source: xai-org/x-algorithm/
The README adds that replies and reposts from accounts you do follow are scaled down too. On screen, X Help says a thread of 2 or 3 posts appears connected in timelines, a thread of 4 or more is cut off behind "Show this thread", and on your profile the posts of a thread appear as separate posts.
If you write threads, the first post has to earn the click on its own. We cover that in how to write a thread on X.
The README describes an author diversity step: each post after an author's first in a response is multiplied by a factor that shrinks toward a floor. In the home-mixer scoring code we read, that step is switched off (enable_author_diversity: false in value_model.rs), and a separate re-ranking service reorders the final list with a model that spreads out posts that look alike. The code gives no fixed penalty you can plan around, so be wary of guides that quote one.
Spacing your posts still makes sense for a simpler reason: two posts from you in the same follower's feed load compete for the same attention. For daily schedules that leave room between posts, see how often to post on X.
The repository also includes some of X's spam rules (the botmaker-rules folder). The README explains that one set of rules runs only when a post is recommended to someone who does not follow the author, and that those rules can only remove posts, for example spam caught by broad filters. Two rules matter to ordinary accounts:
- A post whose link resolves, through any redirects, to a domain X rates
LOW_QUALITYgets a spam label (LQ_Tweets_With_LQ_URL_Verdict_At_Mention_To_NonFollower_v2.bot). - Clusters of posts with the same text are labeled
COPYPASTA_SPAMand ranked lower (BBQDuplicateTextProd.bot).
Check the link in your pinned post
Pinning a post whose link resolves to a BAD or LOW_QUALITY domain labels the whole account for one week (PinnedLowQualityOrBadUrl.bot).
X's domain ratings are not public, so you cannot check a domain in advance. The link rule checks every hop of a redirect chain and skips links whose final destination X rates good, so a direct link to a normal site is the safe choice and a chain of shorteners is the risky one.
Copied text also breaks X's authenticity policy, which does not allow repeatedly posting identical or nearly identical posts, or cross-posting substantially similar content across several accounts. A version localized into another language is allowed.
Effects in the code at commit 52d4598
| What happens | Effect in the code | Where |
|---|---|---|
| A reader copies your post's link | The biggest positive weight: 20 | param.rs |
| A reply, a quote or a DM share | 5 each; a reply between mutual follows 20 | param.rs |
| A like | 0.708 | param.rs |
| A link in the post | No penalty in ranking; opening it adds 0.2 | param.rs |
| A link to a domain X rates low quality | A spam label when shown to non-followers | botmaker-rules |
| The same text in many posts | Labeled COPYPASTA_SPAM and ranked lower | botmaker-rules |
| Hashtags | No ranking rule counts them | home-mixer filters |
| Not interested, mute, block, report | -53.07, -58.8, -31.2 and -234 | param.rs |
| The post turns 48 hours old | Dropped from For You | config.rs |
- How the ranking model predicts. The weights are public; the model that produces the probabilities is not fully public, so you cannot compute a score for your own post.
- Whether links in general hurt reach. The ranking weights have no penalty for a link, and opening one has a small positive weight (0.2). If link posts get less reach, a likely cause is that readers reply to them and share them less, which the model predicts. We cannot confirm that from the code.
- What any single experiment is doing to your account today.
- Write one post a reader would send to one specific person: a checklist, a number they did not know, a clear explanation. Copy-link and DM shares carry the most weight.
- Give people a reason to reply: end a post on a concrete claim they can agree or argue with, or a question only your readers can answer.
- Reply under the posts of the people in your niche you want to know, and follow back the ones who talk with you. Mutual follows raise the reply weight to 20.
- Find the hours your readers are awake and schedule for them. The first 2 hours and the first 200 Home views decide whether a smaller account gets the extra slot.
- Open your pinned post and check its link: your own site or a site people know, with no chain of shorteners.
- Plan new posts on your best old ideas and write each one fresh. A post lives 48 hours in For You, and pasted text gets labeled.
If replying every day is what you keep skipping, PlumeIO's reply assistant, a Chrome extension, adds a button under posts on x.com that drafts a reply in your own writing style. You edit it and post it yourself; it never sends anything for you. To see when your own readers are awake, Plume's analytics maps your best weekday and hour once about 10 of your posts have been measured.
Is the X algorithm open source?
Yes, the For You ranking code is public on GitHub at xai-org/x-algorithm under the Apache 2.0 license. The full trained model weights and some files are not published, so the code shows how scores are combined but not how each prediction is made.
Does X penalize posts with links?
The ranking weights have no link penalty, and opening a link has a small positive weight (0.2). X's spam rules do act on link quality: a link that resolves to a domain X rates low quality can get the post a spam label, and pinning such a post labels the account for a week. The link rule skips links whose final destination X rates good.
Do likes still matter on X?
They count, with a weight of 0.708 in the current code. A reply, a quote or a DM share counts 5, and a copy-link share counts 20, so a post that only collects likes is ranked on one of the lighter signals.
What changed since the 2023 Twitter code?
The 2023 code weighted a reply 13.5 and a like 0.5, so a reply counted 27 likes; it also had 75 for a reply the author engages with. That code was replaced in January 2026. The current code weighs a reply 5 and a like 0.708, has no bookmark weight, and gives its biggest positive weight, 20, to sharing a post by copying its link.