Σ AI Builder & Researcher. ∇ Focusing on scalable AI systems. Δ Coding & experiments ↴

Global
Joined August 2025
𝕏 just open-sourced the For You algorithm again! Grok Bot read all 370,523 lines of the code. Here’s the summary: Grok does not give your post a “quality” score. For every reader, it guesses what that person will do to your post. Then it multiplies each guess by a weight and adds them up. That total is the value of the post. Highest total goes highest in For You. These are the production weights (last synced 12 Aug 2026). WHAT THE ALGORITHM PAYS FOR If Grok thinks a reader will: • copy the link and share it: +20 • reply, on an original post, and you follow each other: +20 (5 + 15 extra) • quote: +5 • reply (anyone): +5 • share via DM: +5 • follow you from the post: +4 • hit the share button: +2 • repost: +1 • like: +0.5 • click the post: +0.4 • open a link: +0.2 • expand a photo, open a video, or watch a “quality” video: +0.05 each • click a quoted post: +0.05 • keep reading (dwell time): +0.004 • “dwell” as yes/no: +0 • click your profile: +0 A like is 0.5. Copying the link is 20. That is 40 likes. A normal reply is 10 likes. A follow is 8 likes. Clicking your profile is worth nothing. WHAT KILLS A POST If Grok thinks a reader will: • report it: −234 • mute you: −58.8 • hit “not interested”: −43.2 • block you: −31.2 • not dwell: −0.02 A report is about 468 likes in the other direction. A mute hurts more than a block. “Not interested” also hurts more than a block. AFTER THE SCORE, THREE MORE HAIRCUTS 1) Same-author penalty. Your 2nd post in that person’s feed is multiplied by 0.625. 3rd by ~0.44. It never goes below 0.25. Flooding one timeline is coded against. 2) The 25% tax. If they do not follow you: ×0.75. Same tax on replies and reposts even when they DO follow you. Originals from people they follow keep full weight. Replies and reposts are treated as weaker on purpose. 3) Similar-post shuffle. After scoring, a reranker (θ = 0.65) spreads similar posts apart. You can lose a few spots for looking like the post above you. HOW YOUR POST EVEN GETS IN THE ROOM For You is rebuilt every time someone opens it. About 35 posts make the feed. • They follow you: Thunder (a live store of recent posts from accounts they follow). Up to 1,200 candidates. • They don’t: Phoenix retrieval (Grok finds “nearby” posts) + SimClusters (Twitter’s 2020 interest clusters, still on). Up to 1,000 and 800. Then Grok scores all of them together. It does not care which door you came through, except for that ×0.75 tax. Your own posts never appear in your For You. Nothing older than 48 hours gets in. There is no “best of last week.” Small-account bump: under 1,000 followers, under 1,000 impressions, post under 24 hours old. One original can get lifted to position 15 or 16. Not the top. You still have to already be in the top 85% of the pile. Replies and reposts from accounts the reader does not follow are dropped before scoring. You cannot reply-guy your way into a stranger’s For You. FILTERS THAT CAN STILL KILL A HIGH SCORE Ranking and visibility are different machines. A post can score well and then get deleted from the feed. Followers (in-network) is milder: blocks, mutes, suspensions. NSFW often sits behind a warning instead of disappearing. Recommendations (out-of-network) are much harsher. Spam, “Do Not Amplify,” NSFW, compromised accounts, impersonation: followers can still see it, For You recommendations will drop it. Video only gets the tiny “quality view” credit if it is at least 10 seconds. THE LITTLE-KNOWN PARTS (this is the stuff people miss) • Scrolling is not a vote. Yes/no dwell is 0. Time spent barely moves the number (0.004). • Mute damages you more than block (−58.8 vs −31.2). • Copy-link is the single biggest positive. The share button is only +2. A repost is only +1. • The mutual-follow boost is originals only, not your replies. They shipped a bigger version in July and cut it after World Cup complaints (extra reply weight 20 → 15). • The Following tab is not this algorithm. Following is newest-first. • Grok, Gork, and an internal products account are hardcoded out of the in-network store. • Scores are cached for 3 hours because posts inside the model cannot “see” each other. That is why they can rank first and filter later. • Ads, Who to Follow (around slot 7), and prompts are mixed in after ranking. Grok does not score those. • The real Grok ranking model is a 2560-dimension, 8-layer transformer looking at 1,022 items of the reader’s history. They did not ship those model weights. The numbers above are the formula sitting on top of the predictions. • SimClusters is still a 2020 model (20M users, 145k clusters). Old Twitter code, still in the path. • Inferred gender and IP/geo are on as features for the model. Installed apps too. • Who to Follow shows about every 30 hours. Ads try to sit next to “safe” posts, with a minimum gap of 3 organic posts. WHAT TO DO • Write originals people want to reply to, quote, copy, and send to a friend. • Make the post itself worth following you for. • Talk with people who follow you back. A reply on your original from a mutual is 20, not 5. • Stay inside 48 hours. Recycle by posting something new. Old posts do not come back. • If you are small, post originals in the first 24 hours. Don’t expect slot 1. A bump around 15–16 is the actual gift. • Space your posts. The second one in the same feed is already worth 37.5% less. • If you post video, make it at least 10 seconds. WHAT NOT TO DO • Do not farm likes. They are almost decorative. • Do not farm profile visits. Weight is zero. • Do not farm “time on post.” Yes/no dwell is zero. • Do not use replies and reposts as a growth hack for strangers. Those are filtered out. Even for followers they get a 25% haircut. • Do not dump several posts in a row. • Do not bait reports, mutes, or “not interested.” One predicted report can erase a pile of predicted likes. • Do not lean on NSFW or spammy tricks for reach. • Recommendations will drop you even if your followers can still see it. • Do not wait a week and expect For You to revive the post.
🤖 Made with AI
182
218
256
1,261
2,904,186
王小庄 retweeted
Replying to @xrpresso_io
"Hard work" "Supposed to get paid"
315
87
93
2,504
337,180
王小庄 retweeted
1-bit GLM-5.2 GGUF vs. Claude 4.8 Opus vs. GPT-5.5 We gave 3 models the same prompt and compared one-shot outputs. The 1-bit GLM-5.2 GGUF ran locally on a Mac Studio M3 Ultra with 256GB RAM at ~21.6 tok/s. Which output do you like best? GGUF: huggingface.co/unsloth/GLM-5…
GLM-5.2 can now be run locally!🔥 The 2-bit model retains ~82% accuracy after we shrunk it from 1.51TB to 238GB (-84% size). Run on a 256GB Mac or RAM/VRAM setups. GLM-5.2 is the strongest open model to date. Guide: unsloth.ai/docs/models/glm-5… GGUF: huggingface.co/unsloth/GLM-5…
172
400
134
3,538
1,545,718
王小庄 retweeted
RAG vs. CAG, clearly explained! RAG is great, but it has a major problem: Every query hits the vector DB. Even for static information that hasn't changed in months. This is expensive, slow, and unnecessary. Cache-Augmented Generation (CAG) addresses this issue by enabling the model to "remember" static information directly in its key-value (KV) memory. In fact, you can combine RAG and CAG for the best of both worlds. Here's how it works: RAG + CAG splits your knowledge into two layers: ↳ Static data (policies, documentation) gets cached once in the model's KV memory ↳ Dynamic data (recent updates, live documents) gets fetched via retrieval This gives faster inference, lower costs, and less redundancy. The trick is being selective about what you cache. Only cache static, high-value knowledge that rarely changes. If you cache everything, you'll hit context limits. Separating "cold" (cacheable) and "hot" (retrievable) data keeps this system reliable. You can start today. OpenAI and Anthropic already support prompt caching in their APIs. I have shared my recent article on prompt caching below if you want to dive deeper. 👉 Over to you: Have you tried CAG in production yet?
80
424
33
2,785
532,575
王小庄 retweeted
兄弟们,斯坦福这场两小时的讲座,把 ChatGPT、Claude这类大模型的真实构建逻辑拆解得一清二楚。 通透程度甚至超过了很多 AI 领域顶尖从业者日常能接触到的内容。 赶紧收藏好,今天少刷点抖音,匀出两个小时看一看, 它很可能会成为你这一整周最有价值的学习收获。
181
1,750
23
8,458
779,578
一个开发者干了件事——把 Claude Code 将近 52 万行源码,一行行拆开,用可视化图表重新呈现了出来。 1089 个 HN 点赞,评论区老外排队致谢,有人说"比官方文档还清楚",有人说"终于理解它是怎么跑起来的了"。 这个项目叫 Claude Code Unpacked。 Anthropic 一周内两次泄露,把自己的底裤掀了。全世界都在"围观"它的源码,GitHub 上各种复刻项目满天飞。 这个网站把 52 万行代码变成一张张清晰的图表,让任何人都能看懂 Claude Code 内部是怎么运作。 👉 附上链接:ccunpacked.dev/
8
186
7
754
76,215
王小庄 retweeted
opencli 最强更新来袭!!!实现了 operate 能力!🎉 以后可以prompt直接操作浏览器,并且 CLI 无痛生成!!! OpenCLI的目标是星辰大海!!! 装上 SKILL 之后,就可以直接让 AI agent 操作我们的浏览器,然后沉淀为一个 CLI. 下图是CC执行 “opencli 帮我打开 openai.com/form/codex-for-os… 然后填写申请的效果” 另外 OpenCLI 两周生日了,1w star + 100 contributor 感谢大家!现在还在一直持续更新中! github.com/jackwener/opencli
42
90
14
668
95,295