How the X Algorithm Works in 2026 (What We Learned From 100M+ Views)
What X's open-source code says about how the For You feed ranks posts in 2026, how links, replies and the Following tab work, and the launch lessons behind our 100M+ organic views.
Most advice about the X algorithm is folklore. "Links kill reach." "Replies are worth 75 likes." Some of it was true once, and a lot of it is out of date, because X has rebuilt its ranking system and published the code. You can now read how the For You feed works instead of guessing.
We've also spent the last two years launching products on X. Our launches have done more than 100 million organic views with no agency and no ad spend, and the launches that flopped taught us as much as the ones that worked.
This post has two halves. First, what is publicly known about X's ranking in 2026, from X's own code and statements, with the uncertain parts labeled. Second, what we've learned in practice and how it lines up with the code.
Quick answer: X's For You feed pulls recent posts (under 48 hours old) from accounts you follow and from accounts you don't, then a transformer model called Phoenix predicts how likely you are to like, reply, repost, quote, share, click, dwell, follow, or react negatively. Each prediction is multiplied by a weight and summed. In the published 2026 weights, a predicted reply or quote counts 10 times a predicted like, sharing a post's link counts 40 times, and reports, mutes and "not interested" carry large negative weights. X says it no longer penalizes posts with links. To go viral, you need a strong hook and concentrated, genuine replies and quotes in the first hour.
What X has published about its algorithm
A short timeline of what's public, with sources:
| Date | What happened | Source |
|---|---|---|
| March 2023 | Twitter open-sourced parts of its recommendation code | twitter/the-algorithm on GitHub |
| January 2026 | X published the code for its new For You algorithm, ranked by a transformer model (Phoenix) that the first release described as "Grok-based" | xai-org/x-algorithm |
| March 2026 | X's then head of product Nikita Bier said "the full power of Grok on the algorithm" would launch the following week | ETCIO report |
| July 2026 | X rolled out a boost for replies to original posts from people you mutually follow | Repo change log |
| July 2026 | Bier and Elon Musk said X stopped penalizing posts with direct links over a year earlier | Free Press Journal report |
| August 2026 | X expanded the repo with the ranking weights, filters and visibility systems, and piloted the Under the Hood transparency report | TechCrunch |
| September 2026 | Under the Hood started showing when posts are limited because of legal demands, and in which country | Repo README |
Two caveats. X says the repo's defaults are synced to "primary production values," but it also runs experiments on slices of traffic, and some parts are withheld (including the Grok prompts used to classify posts and some anti-spam rules). The code tells you how the system is designed, not the exact score of any post.
How the For You feed is built
Every time you open For You, X assembles a feed just for you in a few stages.
- Gather candidates. In-network posts come from accounts you follow (a system X calls Thunder). Out-of-network posts come from Phoenix retrieval, which matches your interests to posts, and SimClusters, which groups accounts by who engages with what.
- Filter. X drops posts older than 48 hours, posts you've already seen, posts from accounts you block or mute, posts matching muted keywords, and replies and reposts from accounts you don't follow.
- Score. Phoenix predicts how likely you are to take each action below, using your recent engagement history.
- Adjust. Each extra post from the same author gets a decaying multiplier. 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. Authors with few impressions can get a lift (the code runs this as an experiment). A reranker then trades a little score for variety.
- Visibility filtering. A separate system decides whether a post is shown, shown behind a warning, or dropped, based on spam, safety and account-quality labels plus your settings. Some rules only apply to recommendations, so a post can reach followers while being kept out of wider distribution.
The 48-hour cutoff matters: a post has two days to find its For You audience, and most of the action happens in the first few hours. These are the actions Phoenix predicts:
Engagement like, reply, repost, quote, share, share via DM, share via copy link
Clicks post, profile, link, photo expand, video open, quoted post
Attention video quality view, dwell, dwell time, active seconds
Author follow author
Negative not interested, mute author, block author, report, not dwelled
Each prediction is multiplied by a weight and the results are added up into one score.
The 2026 ranking weights
These are the default weights in the public repo as of September 2026 (param.rs).
| Predicted action | Weight |
|---|---|
| Share via copy link | 20 |
| Reply | 5 (plus 15 on original posts from mutual follows) |
| Quote | 5 |
| Share via DM | 5 |
| Follow the author | 4 |
| Share | 2 |
| Repost | 1 |
| Like | 0.5 |
| Click into the post | 0.4 |
| Open a link | 0.2 |
| Video open | 0.07 |
| Photo expand, dwell | 0.05 |
| Not dwelled | -0.02 |
| Block author | -31.2 |
| Not interested | -43.2 |
| Mute author | -58.8 |
| Report | -234 |
X added a warning to the code about reading this table. The weights multiply your predicted probability of each action, not raw counts, so a report weight of -234 does not mean "one report cancels 468 likes." Reports are more than 1,000 times rarer than likes, so they need a large weight to matter at all. X also notes that mass reports and blocks only affect ranking when they happen on a post served in the home timeline, not when people navigate to it directly.
What the table tells a creator:
- Conversation beats applause. A likely reply or quote is worth 10 likes. A likely share via copy link (someone grabbing the URL to send elsewhere) is worth 40.
- Negative feedback is expensive. Content that makes people tap "not interested" or mute you drags your score down far more than a like lifts it.
- Mutual follows matter. Since July 2026, original posts from people you mutually follow get an extra reply weight of 15. X launched at 20, then cut it to 15 after feedback that people were missing World Cup discussion from accounts they didn't follow.
How links, replies and Premium are treated
Links
For years, creators put links in the first reply because they believed X suppressed link posts. In July 2026, Nikita Bier told Mark Zuckerberg he no longer needed to do that, and Musk replied that X hadn't penalized links "for over a year." In the current code, opening a link is a small positive signal (weight 0.2), not a penalty. Musk had said earlier that a bare link with little context still gets weak distribution, which fits the code: a post nobody replies to, quotes or dwells on scores low either way.
Replies
Replies carry a high weight when X predicts a viewer will reply to a post. Your own replies on other people's posts are different: For You drops replies from accounts a viewer doesn't follow and discounts replies from accounts they do. So replying mostly reaches your followers and people reading that conversation. It's still worth it, because good replies earn profile visits and follows, and follows put your future posts in-network.
Premium
X's Premium help page lists "reply prioritization" as a paid feature, with larger prioritization on higher tiers. In the published For You code, subscription data is used to handle subscriber-only posts, and verification status appears in some anti-spam rules. We didn't find a general For You ranking boost for Premium accounts, but we can't rule out effects in parts X hasn't published.
For You vs Following
- For You mixes in-network and out-of-network posts and ranks them with the system above.
- Following shows posts from accounts you follow. In November 2025, X added a Grok-ranked version of the Following tab, and reports at the time noted you can still switch back to chronological order.
- Custom timelines: since April 2026, Premium subscribers on iOS can add Grok-powered topic timelines.
For You is where new people find you. Following is where your existing audience sees you.
If you think you're shadowbanned
X's Under the Hood report shows labels on your account and posts that can limit visibility, as a downloadable file. TechCrunch reported it launched as a pilot for accounts at least a year old that had posted 10 or more times in the past month. Since September 2026 it also shows posts withheld in a country after a legal demand.
What we learned from 100M+ organic views
Everything below comes from our own launches, documented in The Anatomy of a Viral Launch and our $2K launch case study.
Views are not users
When we launched Okara on March 16, 2026, the launch post did 14 million views in a day and we got over 3 million visitors during the launch. Three weeks earlier, another launch did 70 million views in three weeks, all organic. Six weeks before the Okara launch, another did 1 million organic views. And our most viral launch, at 70 million organic views, brought no product users.
The algorithm can deliver reach for a product people don't want. If visitors can't see value in 30 seconds and reach the "aha" within 60, the views are wasted.
The first hour decides the trajectory
For our launches we line up about 50 supporters (friends, power users, investors, former colleagues and creators) to engage in the first 30 minutes. To close about 50 paid creators, we typically reach out to about 500. Everyone who says yes gets a calendar invite for the launch minute, because people want to help but forget.
This fits the code. Posts only compete in For You for 48 hours, and your followers see your post in-network, without the out-of-network discount, so their early replies and quotes are the first real signal the system gets. Keep it genuine: we coordinate real supporters who like the product, within X's rules, and we don't buy engagement.
Replies and quotes are the fuel
Our hook rule is that a launch post should be emotional, divisive or a hot take. If nobody could disagree with it, nobody replies, and the weights show why that hurts: a reply or quote is worth 10 likes. We've also noticed that quote posts with memes and brief one-line comments increase reach.
Our earlier case study grouped saves with replies and quotes. The action list X published in 2026 doesn't name bookmarks as a scored action, so we'd now put replies, quotes and shares first.
The hook is most of the work
We study the first lines of the biggest launches of the past year, notice the patterns (an impossible-sounding claim, a number, a villain, a before and after), then write about 20 hooks and cut 19. Formats that worked for us include "We are introducing the world's first..." and "Today we kill...". A flat launch is usually a hook problem, and you can relaunch with a new one.
Video format matters less than you'd think
We've launched with high production, animation and plain screen recordings, and format barely mattered. What mattered was showing the product or the problem in the first three seconds and keeping it under two minutes. On one high-production launch, the comments talked more about the video than the product.
Creators: pay for views, not followers
For our 1.8 million view launch, which cost under $2,000, we lined up 100 creators three to four days early (our acceptance window is 48 hours), started negotiations around a $5 CPM on their typical views, and only paid more when a creator's numbers justified it. We look for creators with 10,000+ followers who post consistently in our niche and get at least 3,000 views per post. Every paid post follows X's rules for sponsored content.
Keep the link out of the launch post (for ads, not the algorithm)
We still put the link in a reply on launch posts, but not because of a link penalty. If your first post includes a link, you generally can't run X ads on it later. Keeping it clean lets us amplify the video with ads after 24 to 48 hours if we want more reach.
Virality decays in 48 hours, so keep launching
Reach falls off within two days, which lines up with the 48-hour filter in the code. We follow up with everyone who engaged, and we treat every feature, milestone and integration as another launch. The full sequence is in the launch handbook.
A practical checklist for reach on X in 2026
- Write for replies. Take a side, share a number, or say what people think but won't post.
- Front-load genuine engagement. Tell your network when you're posting. For a US audience, we like Tuesday around 9am EST for launches.
- Avoid what triggers "not interested" and mutes. Bait, repetition and off-topic posts cost more than a like earns.
- Links are fine, context is required. Give the post a takeaway that earns engagement on its own.
- Build mutual follows in your niche. Replies between mutuals now carry extra weight.
- Reply to others to earn follows, not For You reach.
- Check Under the Hood if reach drops suddenly, and relaunch with a new hook if a post flops.
Where Okara fits
The hardest part of X growth is posting good material every day so you have an audience when you launch. Okara's X Agent drafts at least 30 posts and threads a month based on your website and goals, and you can edit, schedule or post them to X from the dashboard. It's included in AI CMO Lite ($129/month, or $108/month billed annually). It doesn't guarantee reach, and you still choose the angles and approve every post. For creator campaigns, the Influencer Agent is also in Lite, with campaigns at 10% of spend and no retainer.
For the strategy side, read X marketing for founders.
Common questions
Is the X algorithm open source?
Yes. X publishes its For You code at github.com/xai-org/x-algorithm, including ranking weights since August 2026. Some pieces, such as Grok classification prompts and some anti-spam rules, are withheld.
Does X penalize links in 2026?
X says no. In July 2026, Nikita Bier and Elon Musk said X stopped penalizing posts with links more than a year earlier. In the code, a link click is a small positive signal. Link posts with no context still struggle because they earn few replies.
How long does a post stay in For You?
The code filters out posts older than 48 hours from For You, so a post has about two days to find its audience.
How do I go viral on X?
Write a hook people will reply to, line up genuine early engagement from your network in the first hour, and give people a reason to share. Reach doesn't guarantee users, so make sure your product shows value fast.
Does Grok decide what I see on X?
Partly. X's first 2026 release described its ranking model, Phoenix, as a Grok-based transformer, and X says some classification systems use Grok to spot rule-breaking posts. Your own engagement history is the main input to the predictions.


