X Algorithm Mastery
Everything you need to know about the X (Twitter) algorithm. Based on X's open-source code, viral post analysis, and real engagement data.
TL;DR - The Golden Rules
- First 2 hours are critical — replies/engagement in this window determine reach
- No external links in main post — X penalizes links that take users off-platform
- Media > Text — videos get 10x engagement, images get 2-3x
- Reply to EVERYTHING — replies are weighted higher than likes/retweets
- Post when audience is awake — 8 AM - 2 PM weekdays optimal
- Controversy drives engagement — but pick battles wisely
- Threads outperform single tweets — for long-form content
How the Algorithm Works
The 4-Step Process
- Candidate Sourcing: Pulls
1,500 tweets from accounts you follow (50%) and similar accounts
- Ranking: ML model scores likelihood you'll reply (highest), retweet, like, or report (negative)
- Filtering: Removes blocked/muted, balances in/out-network, limits single author
- Serving: Final mix with ads, 5B times/day, ~1.5 seconds
Engagement Weight Hierarchy
| Action |
Weight |
| Replies |
Highest |
| Retweets |
High |
| Quote Tweets |
High (2x regular posts) |
| Likes |
Medium |
| Bookmarks |
Medium |
| Views |
Low |
| Reports |
Negative (kills reach) |
Ranking Signals
1. Recency
- Fresh content prioritized
- Peak visibility: first 2-3 hours
2. Engagement Velocity
- Speed matters more than total
- 100 likes in 30 min > 500 likes over 24 hours
3. Account Credibility
- Verified (Premium) gets boost
- Follower-to-following ratio matters
- History of bans/strikes hurts
4. Content Type
- Video: 10x engagement
- Images: 2-3x engagement
- Polls: Drives replies
- Threads: Higher total engagement
5. Link Presence
- Links = REACH PENALTY
- Put links in replies, not main post
- Quote tweeting a link > direct link
What Kills Your Reach
Instant Death
- ❌ External links in main post
- ❌ Getting reported/blocked
- ❌ Posting same content repeatedly
- ❌ Too many hashtags (>2)
Slow Death
- ❌ Posting inconsistently
- ❌ Not replying to comments
- ❌ Off-topic from your niche
- ❌ Corporate/formal tone
Posting Best Practices
Frequency
| Goal |
Posts/Day |
| Minimum |
2-3 |
| Growth |
5-10 |
| Maximum |
15-30 |
Timing (audience timezone)
- Best: 8 AM - 2 PM weekdays
- Good: 4 PM - 6 PM weekdays
- Worst: 11 PM - 7 AM
The No-Link Strategy
❌ Bad: "Check out my article [link]"
✅ Good: "Here's what I learned (thread 🧵)"
→ Link in reply or final thread post
Getting Replies (Most Important)
- Ask questions — open-ended or controversial
- Hot takes — polarizing opinions get "actually..." replies
- Fill in the blank — "The best movie ever is ___"
- Predictions — people love to disagree
- Personal stories — "This happened to me..."
X Article Best Practices
Hook Patterns That Work
Insecurity/FOMO:
"everyone's talking about X... and you're sitting there wondering if you missed the window"
Big Opportunity:
"this is the biggest opportunity of our lifetime"
RIP Pattern:
"RIP [profession]. This AI tool will [action] in seconds."
Article Structure
1. HOOK (insecurity or opportunity)
2. WHAT IT IS (with social proof)
3. WHY MOST WON'T DO IT (address objections)
4. THE [X]-MINUTE GUIDE (step-by-step)
5. YOUR FIRST [N] WINS (immediate value)
6. THE COST (value comparison)
7. THE WINDOW (urgency)
8. CTA
Style Tips
- Clear H2 section headers
- Bullet lists for scanability
- Bold key phrases
- Time estimates for each step
- Copy-paste commands/prompts
Quick Checklist
Before posting:
Growth Hacks
Reply Guy Strategy
Turn on notifications for big accounts → be first with thoughtful reply → their audience discovers you
Thread Takeover
Find viral post in your area → quote tweet with "Let me explain why..." → add genuine value
Personality Posts
Every 5-10 posts, share something personal. Builds connection → higher engagement.
Sources
- X Algorithm GitHub (open source)
- Hootsuite, Sprout Social, SocialBee guides
- Analysis of viral articles (Damian Player, Alex Finn, Dan Koe)
Installation
clawdhub install NextFrontierBuilds/x-algorithm
Built by @NextXFrontier
1---
2name: x-algorithm
3description: X (Twitter) algorithm rules, viral strategies, and article best practices. Boost engagement, avoid reach death, write posts that actually perform.
4version: 1.0.0
5author: NextFrontierBuilds
6keywords: x, twitter, algorithm, viral, engagement, social-media, growth, content-strategy, ai-agent, moltbot, clawdbot
7---
8
9# X Algorithm Mastery
10
11Everything you need to know about the X (Twitter) algorithm. Based on X's open-source code, viral post analysis, and real engagement data.
12
13## TL;DR - The Golden Rules
14
151. **First 2 hours are critical** — replies/engagement in this window determine reach
162. **No external links in main post** — X penalizes links that take users off-platform
173. **Media > Text** — videos get 10x engagement, images get 2-3x
184. **Reply to EVERYTHING** — replies are weighted higher than likes/retweets
195. **Post when audience is awake** — 8 AM - 2 PM weekdays optimal
206. **Controversy drives engagement** — but pick battles wisely
217. **Threads outperform single tweets** — for long-form content
22
23---
24
25## How the Algorithm Works
26
27### The 4-Step Process
28
291. **Candidate Sourcing**: Pulls ~1,500 tweets from accounts you follow (~50%) and similar accounts
302. **Ranking**: ML model scores likelihood you'll reply (highest), retweet, like, or report (negative)
313. **Filtering**: Removes blocked/muted, balances in/out-network, limits single author
324. **Serving**: Final mix with ads, 5B times/day, ~1.5 seconds
33
34### Engagement Weight Hierarchy
35
36| Action | Weight |
37|--------|--------|
38| Replies | Highest |
39| Retweets | High |
40| Quote Tweets | High (2x regular posts) |
41| Likes | Medium |
42| Bookmarks | Medium |
43| Views | Low |
44| Reports | Negative (kills reach) |
45
46---
47
48## Ranking Signals
49
50### 1. Recency
51- Fresh content prioritized
52- Peak visibility: first 2-3 hours
53
54### 2. Engagement Velocity
55- Speed matters more than total
56- 100 likes in 30 min > 500 likes over 24 hours
57
58### 3. Account Credibility
59- Verified (Premium) gets boost
60- Follower-to-following ratio matters
61- History of bans/strikes hurts
62
63### 4. Content Type
64- **Video**: 10x engagement
65- **Images**: 2-3x engagement
66- **Polls**: Drives replies
67- **Threads**: Higher total engagement
68
69### 5. Link Presence
70- **Links = REACH PENALTY**
71- Put links in replies, not main post
72- Quote tweeting a link > direct link
73
74---
75
76## What Kills Your Reach
77
78### Instant Death
79- ❌ External links in main post
80- ❌ Getting reported/blocked
81- ❌ Posting same content repeatedly
82- ❌ Too many hashtags (>2)
83
84### Slow Death
85- ❌ Posting inconsistently
86- ❌ Not replying to comments
87- ❌ Off-topic from your niche
88- ❌ Corporate/formal tone
89
90---
91
92## Posting Best Practices
93
94### Frequency
95| Goal | Posts/Day |
96|------|-----------|
97| Minimum | 2-3 |
98| Growth | 5-10 |
99| Maximum | 15-30 |
100
101### Timing (audience timezone)
102- **Best**: 8 AM - 2 PM weekdays
103- **Good**: 4 PM - 6 PM weekdays
104- **Worst**: 11 PM - 7 AM
105
106### The No-Link Strategy
107```
108❌ Bad: "Check out my article [link]"
109✅ Good: "Here's what I learned (thread 🧵)"
110 → Link in reply or final thread post
111```
112
113---
114
115## Getting Replies (Most Important)
116
117- **Ask questions** — open-ended or controversial
118- **Hot takes** — polarizing opinions get "actually..." replies
119- **Fill in the blank** — "The best movie ever is ___"
120- **Predictions** — people love to disagree
121- **Personal stories** — "This happened to me..."
122
123---
124
125## X Article Best Practices
126
127### Hook Patterns That Work
128
129**Insecurity/FOMO:**
130> "everyone's talking about X... and you're sitting there wondering if you missed the window"
131
132**Big Opportunity:**
133> "this is the biggest opportunity of our lifetime"
134
135**RIP Pattern:**
136> "RIP [profession]. This AI tool will [action] in seconds."
137
138### Article Structure
139
140```
1411. HOOK (insecurity or opportunity)
1422. WHAT IT IS (with social proof)
1433. WHY MOST WON'T DO IT (address objections)
1444. THE [X]-MINUTE GUIDE (step-by-step)
1455. YOUR FIRST [N] WINS (immediate value)
1466. THE COST (value comparison)
1477. THE WINDOW (urgency)
1488. CTA
149```
150
151### Style Tips
152- Clear H2 section headers
153- Bullet lists for scanability
154- Bold key phrases
155- Time estimates for each step
156- Copy-paste commands/prompts
157
158---
159
160## Quick Checklist
161
162Before posting:
163- [ ] Under 280 chars? (If not, thread it)
164- [ ] First line hooks attention?
165- [ ] Reason to reply? (Question, hot take)
166- [ ] Good time to post?
167- [ ] No external links? (Move to reply)
168- [ ] Fits your niche?
169- [ ] Available to reply for 2 hours?
170
171---
172
173## Growth Hacks
174
175### Reply Guy Strategy
176Turn on notifications for big accounts → be first with thoughtful reply → their audience discovers you
177
178### Thread Takeover
179Find viral post in your area → quote tweet with "Let me explain why..." → add genuine value
180
181### Personality Posts
182Every 5-10 posts, share something personal. Builds connection → higher engagement.
183
184---
185
186## Sources
187- X Algorithm GitHub (open source)
188- Hootsuite, Sprout Social, SocialBee guides
189- Analysis of viral articles (Damian Player, Alex Finn, Dan Koe)
190
191---
192
193## Installation
194
195```bash
196clawdhub install NextFrontierBuilds/x-algorithm
197```
198
199Built by [@NextXFrontier](https://x.com/NextXFrontier)