惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
S
Secure Thoughts
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
G
GRAHAM CLULEY
MongoDB | Blog
MongoDB | Blog
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
Martin Fowler
Martin Fowler
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
T
Threatpost
S
Securelist
T
Tenable Blog
博客园_首页
P
Privacy International News Feed
Cisco Talos Blog
Cisco Talos Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
C
CXSECURITY Database RSS Feed - CXSecurity.com
小众软件
小众软件
美团技术团队
Project Zero
Project Zero
The Cloudflare Blog
L
Lohrmann on Cybersecurity
The Register - Security
The Register - Security
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LINUX DO - 热门话题
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
有赞技术团队
有赞技术团队
IT之家
IT之家
A
Arctic Wolf
Scott Helme
Scott Helme
Latest news
Latest news
T
Tailwind CSS Blog
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
Cyberwarzone
Cyberwarzone
宝玉的分享
宝玉的分享
The Hacker News
The Hacker News
S
Schneier on Security
Y
Y Combinator Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
The Public Code Behind xAI's "For You" Feed
Mehmet Aras · 2026-05-20 · via DEV Community

Turkish version: blog.arasmehmet.com


Disclaimer: This post is based on the public
xai-org/x-algorithm repository. It describes what the
released code shows and where that public release stops.


Open X, scroll "For You," and the simple picture is easy: posts go in, the best-looking ones rise.

Look at the repo, and that picture changes. "For You" does not look like a place that only scores posts and sorts them. The code shows viewer guesses, post judgments, reply scores, and items placed into the list after ranking.

That is the interesting shift: the story is not just ranking logic. It is the information carried around the feed.


Not gender knowledge. A gender guess.

The code does not say "X knows your gender." It shows something narrower: a gender-guess step in the Phoenix feed path. Not certainty. A label and a confidence score.

That matters because the value is not about the post. It travels with the request for the person asking for the feed.

The step is not always active. When it runs, a new account gets a fresh prediction if there is no saved result. For an older account, this file only uses the saved guess. Nearby, there is also a slot for demographics. The repo shows the slot, not the full contents.

A viewer signal this close to the feed does not look like decoration. The repo does not show the final use. But it does show the kind of information the feed path is prepared to carry.


Posts carry judgment fields too

The post side is easier to see.

Grox returns fields like quality score, description, tags, topic categories, whether an image is editable by Grok, slop score, and minor-related score.

The names matter. They do not read like private machine internals. They read like judgments attached to a post.

This is where "content understanding" turns into data on the post. The exact prompt Grox receives is not in the repo. The output fields are visible.


Replies get scored too

Replies have their own Grox scorer.

Score: 0, 1, 2, 3. The scorer looks at the surrounding conversation, not just the reply as a standalone sentence.

That does not tell us where the score appears in the product. But it changes the picture: a reply is not only a comment under a post. It is also content to evaluate.


The feed is not just ranked. It is arranged.

A ranked post list is only part of it. The code shows items from other sources being placed into that list.

The For You code lists ads, Who to Follow suggestions, prompts, and push-to-home posts as separate sources. Prompts and Who to Follow suggestions are inserted into the list. A push-to-home item is placed at the very top when present.

The push-to-home path is the cleanest example. When the request names a tweet for push-to-home, the code builds a special feed item for it. If that tweet starts a conversation, the code attaches up to three top repliers.

Ads and prompts come with context too. Ads receive fields like country, language, IP address, user agent, user roles, device id, mobile device id, and mobile ad id. Prompts receive user and device context plus the prompt types supported by the app.

So the feed is not just a scoreboard. It is scored posts plus inserted modules, special items, and context passed to other systems.


What the public repo leaves out

The public repo is useful because it shows the rough shape of the system. It also shows where it stops.

The clearest gap is home-mixer. The code references a shared helper module 18 times across 16 Rust files, including the part that builds the Phoenix request. But that module is not in the released tree. The simple result: home-mixer does not compile as-is.

This does not look like a tiny missing detail. The feed code leans on a shared helper layer, and that layer is not visible in the repo.

Grox has similar edges. Some files refer to prompt, config, or model folders; those folders are not in the repo. Phoenix shows the same pattern: the docs explain how to run a system, but the code needed to run it is not visible in the repo.

So it is better to think about the repo in two parts: what it shows, and what it leaves out. The visible part gives serious clues about the feed. The missing part stops us from proving exactly how everything connects in the live system.


Closing

The repo's real message is this: "For You" does not just pick posts. It carries information.

That information includes viewer guesses, post judgments, reply scores, inserted feed items, and context for ads and prompts. But the repo does not show exactly how all of those pieces are used in the live system.

That is the difference: "For You" looks less like a single ranking rule and more like a wider system carrying context around the feed.

Get in touch: arasmehmet.com


Where this lives in the code

Release frame

  • release note: README.md:L26-L42
  • Grox release description: README.md:L34
  • Phoenix ranking summary: README.md:L53-L56
  • public-release boundary examples:
    • home-mixer/lib.rs:L1-L13
    • grox/classifiers/content/banger_initial_screen.py:L8-L13
    • phoenix/README.md:L210-L238

Viewer context

  • inferred-gender behavior:
    • home-mixer/query_hydrators/user_inferred_gender_query_hydrator.rs:L30-L47
    • "new user" cutoff: home-mixer/query_hydrators/user_inferred_gender_query_hydrator.rs:L56
  • demographics behavior:
    • home-mixer/query_hydrators/user_demographics_query_hydrator.rs:L14-L24
    • query fields: home-mixer/models/query.rs:L72-L77
  • connected in Phoenix:
    • modules declared: home-mixer/query_hydrators/mod.rs:L17-L18
    • added to Phoenix query steps: home-mixer/candidate_pipeline/phoenix_candidate_pipeline.rs:L228-L231

Post judgments

  • Grox result fields:
    • grox/classifiers/content/banger_initial_screen.py:L30-L38
    • parsed into category results: grox/classifiers/content/banger_initial_screen.py:L102-L155
  • connected in Grox:
    • stream includes this check: grox/generators/stream_generator.py:L71-L78
    • plan for this check: grox/plans/plan_initial_banger.py:L14-L37
    • main plan includes it: grox/plans/plan_master.py:L18-L34
    • engine starts the main plan: grox/engine.py:L51-L55
  • saved output:
    • metrics and fields: grox/tasks/task_pub.py:L166-L219, grox/tasks/task_pub.py:L308-L325
    • write call: grox/tasks/task_pub.py:L339-L340
  • missing prompt body:
    • grox/classifiers/content/banger_initial_screen.py:L13
    • no grox/prompts/ directory in this checkout

Reply scoring

  • reply scorer:
    • grox/classifiers/content/reply_ranking.py:L29-L49
    • thread view and signals: grox/classifiers/content/reply_ranking.py:L53-L72
    • fallback sampling: grox/classifiers/content/reply_ranking.py:L74-L88
    • score cleanup: grox/classifiers/content/reply_ranking.py:L103-L158
  • connected in Grox:
    • grox/tasks/task_rank_replies.py:L11-L31
    • stream eligibility: grox/generators/stream_generator.py:L58-L68
    • recovery stream: grox/generators/stream_generator.py:L173-L178
    • plan: grox/plans/plan_reply_ranking.py:L10-L27
    • plan master: grox/plans/plan_master.py:L18-L34

Feed assembly

  • feed sources:
    • home-mixer/candidate_pipeline/for_you_candidate_pipeline.rs:L164-L177
    • selector constructed: home-mixer/candidate_pipeline/for_you_candidate_pipeline.rs:L179-L201
  • mixing and insertion:
    • home-mixer/selectors/blender_selector.rs:L30-L51
    • prompts: home-mixer/selectors/blender_selector.rs:L77-L85
    • Who to Follow: home-mixer/selectors/blender_selector.rs:L89-L100
    • push-to-home pinned at top: home-mixer/selectors/blender_selector.rs:L103-L113
  • push-to-home source:
    • home-mixer/sources/push_to_home_source.rs:L19-L67
    • top repliers: home-mixer/sources/push_to_home_source.rs:L70-L95
  • ad and prompt context:
    • home-mixer/sources/ads_source.rs:L41-L57
    • home-mixer/sources/prompts_source.rs:L18-L46
    • home-mixer/sources/prompts_source.rs:L49-L98

Public boundaries

  • home-mixer missing shared module:
    • module list: home-mixer/lib.rs:L1-L13
    • rg -n "crate::util" home-mixer --glob "*.rs" returns 18 hits across 16 Rust files
    • Phoenix request builder import: home-mixer/scorers/phoenix_scorer.rs:L8
    • Phoenix request builder call: home-mixer/scorers/phoenix_scorer.rs:L84
    • Phoenix request cache helpers: home-mixer/side_effects/phoenix_request_cache_side_effect.rs:L4-L6, home-mixer/side_effects/phoenix_request_cache_side_effect.rs:L77-L85
    • other examples pointing to missing crate::util: home-mixer/server.rs:L3-L9, home-mixer/scorers/ranking_scorer.rs:L3-L4, home-mixer/scorers/vm_ranker.rs:L1-L5, home-mixer/for_you_server.rs:L3-L5
  • Grox missing packages:
    • grox/classifiers/content/banger_initial_screen.py:L8-L13
    • grox/classifiers/content/reply_ranking.py:L9-L13
    • grox/classifiers/content/post_safety_screen_deluxe.py:L9-L14
    • no grox/prompts/, grox/config/, or grox/lm/ directory in this checkout
  • Phoenix README boundary:
    • phoenix/README.md:L210-L238
    • find phoenix -maxdepth 3 -type f returns only phoenix/README.md in this checkout