← All articles

How to Write Posts X May Recommend: 5 Lessons from Its Code

You’re about to write a post. What can you change to give the right reader a reason to stop, read, share, reply, or follow you?

Jack · FounderOmni
X Growth, EP 02: Write Posts X May Recommend. AI-generated editorial cover.
Share

Originally published by Jack on X on 2026-11-13. Read the original article. Republished on FounderOmni with the original source attribution.

I Read X’s Code So You Don’t Have To · Episode 02

You’re about to write a post. What can you change to give the right reader a reason to stop, read, share, reply, or follow you?

I traced those behaviors through X’s public recommendation code. Here are five writing decisions to test, with source excerpts, concrete examples, and Do / Don’t guidance you can use before publishing.

The distinction matters: the code shows behaviors the system predicts. It does not prove that a particular opening, checklist, or question will increase your reach. The writing advice below is an experiment plan derived from that mechanism.

Scope: xai-org/x-algorithm at commit cec6168, published November 12, 2026. The excerpts come from the viewer-specific prediction request and the local weighted-scoring stage. Defaults and experiments can differ; filters, other scorers, and selection also affect what gets recommended. The scoring excerpts below are entries from a larger list, not standalone programs.

1. Define your reader and their problem

Before writing the opening, decide who should find this post useful. The prediction request includes the viewer’s ID and the product surface:

let candidate_set = CandidateSet {
    user_id: query.user_id,
    product_surface: product_surface as i32,
    device_feature: Some(build_device_feature(query)),
    ..Default::default()
};

Do: Complete this sentence before drafting: “This post helps [a specific reader] solve [a specific problem].” Keep the examples, vocabulary, and proposed action relevant to that reader.

Don’t: Try to address founders, marketers, engineers, and investors in one short post. Avoid an opening so broad that nobody can tell whether it is for them.

Example: Replace “Some thoughts on startup growth” with a specific brief: “This post helps solo SaaS founders whose trial users leave before finishing setup.” That brief gives you a problem to explain and a reader who can recognize it.

Evidence: The request identifies the viewer and surface, and also includes user context and a scoring sequence. The scoring module describes recommendations as personalized. Writing for a defined reader is my practical response to that design; the code does not prescribe a niche or require a fixed period of topic consistency.

Sources: viewer-specific request, viewer sequence, personalization explanation.

2. Give readers a reason to keep reading

Use the opening to identify the problem and the useful thing the post will deliver. One scoring term uses predicted dwell time:

(
    "dwell_time",
    apply(scores.dwell_time, weights.cont_dwell_time),
),

Do: Rewrite the first two lines to name the problem and the promised takeaway. Then deliver that takeaway immediately with a concrete example, explanation, or useful visual. Remove sentences that delay it.

Don’t: Hide the answer behind “You won’t believe this,” exaggerate the result, or make the post longer just to occupy more time. A longer post is not automatically a better recommendation.

Example — before: “Most founders get onboarding wrong. Here’s what nobody tells you…”

Example — after: “Trial users leaving before setup? Check these three onboarding steps before adding another reminder email.” Follow that opening with the three checks, rather than another paragraph of buildup.

Evidence: Predicted dwell and dwell time appear in the score. The published continuous-dwell-time default is positive at 0.0075. That supports paying attention to whether the reader has a reason to continue. It does not establish a preferred post length, a first-two-lines bonus, or an effect from this specific opening. Those are writing choices to test.

Sources: dwell and dwell-time terms, continuous-dwell defaults.

3. Include something worth sending to someone else

Give the reader something another person could use: a checklist, template, worked example, or decision rule. The code separately represents sharing through a direct message:

(
    "share_via_dm",
    apply(scores.share_via_dm_score, weights.share_via_dm),
),

Do: Turn one abstract recommendation into a reusable tool. Before publishing, name the person a reader might send it to and the task it would help them complete.

Don’t: Stop at “improve onboarding” or “provide more value.” Asking people to share does not supply a reason to share.

Example — before: “Make your onboarding simpler.”

Example — after: “Before adding another onboarding field, ask: 1) Does the user need to complete it before getting value? 2) Can we prefill it? 3) Can it wait until later?” A founder could send that checklist to the teammate designing the signup flow.

Evidence: The score includes share, share-via-DM, and share-via-copy-link predictions. Their published base defaults are positive: 2.118, 5.0, and 20.0 respectively. These multiply predictions, not completed share counts. The code gives us a reason to consider usefulness to another reader; it does not prove that checklists outperform essays or that requesting a DM adds points.

Sources: sharing prediction terms, sharing defaults.

4. Ask a question your target reader can actually answer

If discussion would improve the post, give the reader a specific way to contribute. Reply prediction is one term in the weighted score:

(
    "reply",
    apply(scores.reply_score, weights.reply_weight_for(candidate)),
),

Do: State your own reasoning first. Then ask for a concrete experience, counterexample, or tradeoff. Make the question answerable by the audience you chose in step one, and respond to substantive answers.

Don’t: End every post with “Thoughts?” or “Agree?” Do not manufacture a fight just to increase reply volume, or force a question onto a post that already stands on its own.

Example: “I’d remove nonessential setup fields before adding more reminder emails. Where do your trial users get stuck most: connecting data, inviting teammates, or creating their first project?” This gives readers a clear question and gives you useful material for the next post.

Evidence: The published base reply coefficient is positive at 5.0; a conditional mutual-follow adjustment can change it. The score also includes predicted not-interested, block, mute, and report behaviors, with negative defaults. Reply volume alone therefore leaves out other terms. The code does not prove that controversy always hurts or that this question format earns more recommendations.

Sources: reply prediction, base reply default and boost, conditional reply-weight logic, negative-feedback terms, negative defaults.

5. Show why this reader should follow you

Let the post demonstrate the value of hearing from you again. The score includes a prediction that the reader will follow the author:

(
    "follow_author",
    apply(scores.follow_author_score, weights.follow_author),
),

Do: Add evidence of your contribution: your analysis, a source excerpt, an actual experiment, or a worked example. If you plan a follow-up, name the next useful question you will answer. Make a promise you can keep.

Don’t: Publish generic advice and expect “Follow for more” to make it distinctive. Avoid inventing results or promising a series you do not intend to deliver.

Example: For this series, the value is inspectable code plus practical interpretation. A concrete continuation could be: “Next, I’m tracing how posts reach people who don’t follow the author—with code examples and takeaways for small accounts.” The current article must first demonstrate that this is worth returning for.

Evidence: Follow-author prediction has a positive published base default of 4.0. This supports thinking about why a reader might want more from an author. It does not prove that a follow request, series announcement, or posting streak directly increases the score. Demonstrating expertise and naming a useful continuation are content hypotheses.

Sources: follow-author prediction, follow-author default.

A technical note: why these are not “engagement points”

The scoring module explicitly says coefficients multiply predicted probabilities or continuous predictions, not raw engagement counts. Raw counts can still be model inputs elsewhere. You cannot turn these defaults into a rule such as “one reply equals seven likes” or “one report cancels a fixed number of likes.”

Figure 1 shows a four-term illustration for the same post and two hypothetical readers. The predictions are invented; the base coefficients are from the published defaults. The subtotals are 0.3282 and 0.01892. Other terms, offsets, conditional boosts, and later ranking stages are excluded. These are neither final recommendation scores nor probabilities of being shown.

Figure 1. Synthetic predictions using four published base coefficients. Other terms, offsets, conditional boosts and later ranking stages are excluded; these are illustrative subtotals, not
Figure 1. Synthetic predictions using four published base coefficients. Other terms, offsets, conditional boosts and later ranking stages are excluded; these are illustrative subtotals, not

Figure 1. Synthetic predictions using four published base coefficients. Other terms, offsets, conditional boosts and later ranking stages are excluded; these are illustrative subtotals, not final scores or reach probabilities.

Sources: how weights apply to predictions, published base coefficients, raw counts among candidate inputs, scoring, selection, and visibility filters, local scores and ranking-service response.

Use these five questions before you publish

Who is this for, and what problem does it solve? Why should that reader keep reading? What could they send to someone else? What useful reply could they contribute? What does this demonstrate about the value of following me?

You do not need to force all five behaviors into every post. A useful checklist can work without a question; a clear explanation can work without a follow request. Use the questions to improve the content, not to pack it with calls to action.

Figure 2 summarizes the five writing checks. The code identifies predicted behaviors; the specific writing tactics are experiments to test, not guaranteed ranking improvements.

Figure 2. Five writing checks derived from public code: reader, opening, reusable value, answerable question, and reason to follow. Specific writing tactics are experiments, not guaranteed r
Figure 2. Five writing checks derived from public code: reader, opening, reusable value, answerable question, and reason to follow. Specific writing tactics are experiments, not guaranteed r

Figure 2. Five writing checks derived from public code: reader, opening, reusable value, answerable question, and reason to follow. Specific writing tactics are experiments, not guaranteed ranking improvements.

After publishing, compare similar posts over the same observation window. Record impressions and the outcomes your analytics actually expose; compare each outcome per 1,000 impressions. Read whether replies came from your intended audience and what they found useful or confusing. Mark unavailable measures, including private feedback you cannot see, as N/A. Change one writing choice at a time where practical. This is an observational review, not a controlled test of X’s model.

What should I investigate next?

Which recommendation behavior are you most curious about: reaching non-followers, posting frequency, small-account discovery, or something else? Leave a comment with a concrete question for a future article.

Research note: public snapshot cec61682937a4899360a340acba9e9b9bb8f43e3. Short excerpts retain the source’s logic; indentation is reduced for readability. Public code and defaults do not verify every live experiment. Independent analysis; AI assisted with research, drafting, and illustrations.

Written by

Jack · FounderOmni

Co-founder, FounderOmni

Jack is the co-founder of FounderOmni. He writes about SEO, AI search visibility, and practical growth workflows.