# X 开源"为你推荐"排名算法源码

- 来源：Rohan Paul (@rohanpaul_ai)
- 发布时间：2026-08-14 05:45
- AIHOT 分数：59
- AIHOT 链接：https://aihot.virxact.com/items/cmss20b4q02smroh6q9i3hxa7
- 原文链接：https://x.com/rohanpaul_ai/status/2088019225520775647

## AI 摘要

X 以 Apache v2 许可证开源其“为你推荐”时间线排名算法源码。该算法基于点赞、回复、点击、停留时长等行为的加权概率预测，而非单纯奖励点赞；已关注用户帖子有优势，新账号可获助推，重复内容会被降权。安全与垃圾规则独立运作，且非完整技术栈，部分执行规则与 Grok 提示词未公开。

## 正文

X just open sourced its ranking algorithm, under the Apache v2 license.

This is the source code for the "For You" timeline, the default feed you see when you open the app.

• Your feed score is literally a weighted prediction of your behavior. It does not simply reward likes. Instead it predicts probabilities for favorites, replies, reposts, clicks, dwell time, follows, mutes, blocks, reports, and more, then X combines those probabilities using explicit positive and negative weights.

• Posts from people you already follow get an advantage over posts from strangers.

• Newer or less-seen accounts can receive an explicit boost, while repeated posts from the same author get pushed down.

• A post can perform well in ranking and still be removed later because safety and spam rules operate separately.

• The exact same post can be visible to followers but blocked from being recommended to non-followers.

• X deliberately reduces similar posts appearing together, even when that means sacrificing some predicted engagement.

Although today's open source release is not the entire stack.
Some enforcement rules and Grok prompts are withheld, some deployment infrastructure is absent, and production configuration can change outside the static code.
