Blog / Agent experience (AX)

How AI assistants pick which developer docs to cite: 80 answers from Claude and Codex

If developers ask an AI assistant instead of a search engine, your docs need to be what the assistant cites. We watched two assistants answer the same 20 developer questions, and they read almost entirely different parts of the web.

Leonid Bugaev · Published 21 Oct 2026

What we asked

20 developer questions, such as “How to test an MCP server with AI agents”, “How many tools can an MCP server have before agents get worse?” and “How do I make my API agent-ready?”. Each went to Claude (in Claude Code) and Codex, once without web access and once with web search: 80 answers, all returned. Neither assistant knew who was asking.

Two assistants, two webs

Claude: cited pages
136 pages, 87 sites
Codex: cited pages
83 pages, 47 sites
Shared by both
5 pages, 10 sites

In 11 of 20 questions the two assistants' cited sites didn't overlap at all. Of 124 cited sites, 91 were cited by only one answer. Optimising for “AI search” means optimising for at least two different behaviours.

Want to know where agents and assistants find your product?

We test how AI assistants and coding agents discover, cite and use your product, and show what to publish or fix.

Talk to us

Codex: site-restricted search

To get into a Codex answer, your page has to be on a site Codex already thinks to target: the spec, the big platforms' docs, GitHub.

Claude: cite from the result list

What gets cited

Kind of pageLinks (of 247)
Vendor sites (about half official docs)115
Spec and official project sites36
Small independent blogs29
GitHub27
MCP directories (Claude only)12
Analyst and media8
Package registries / research papers7 / 7
Community (dev.to, Medium)4
Reddit, Hacker News, Stack Overflow, YouTube0

Pages with concrete numbers were picked over opinion: a server's token count, an app's tool limit, “20 of 20 runs”. On “which tool?” questions, vendor-written “best X 2026” roundups shaped the picks.

What to do with your docs

  1. Put a number in the title and first lines. That's what gets quoted from a result snippet.
  2. Date it. Claude adds the year to queries; fresh titles match.
  3. Use the question's words in the title and H1.
  4. Get onto sites Codex targets: contribute to spec docs or examples, framework integration pages, GitHub.
  5. Serve clean Markdown and an llms.txt, for assistants that do open pages. See what agents use: llms.txt, AGENTS.md, MCP.
  6. Re-run the same questions after publishing to see whether anything changed.

Go deeper: Agent experience (AX), Agent-ready tools, Pass rates with ranges.

Back to agent experience (AX).

How we measured

FAQ

How do I get my developer docs cited by AI assistants?

Publish specific, dated pages with concrete numbers in the title and first lines, on a site the assistant already trusts or one that ranks in fresh search results. In our test Codex mostly searched official sites by name, while Claude cited titles straight from search results.

Do Claude and Codex cite the same sources?

Rarely. Across 40 with-search answers they shared 5 cited pages, and in 11 of 20 questions their cited sites didn't overlap at all.

Does Reddit or Stack Overflow matter for AI citations here?

Not in this test: 0 Stack Overflow, Hacker News or YouTube links, and one Reddit result that was never cited. Results may differ for other topics.

Do AI assistants read the pages they cite?

Claude often didn't: 133 of its 144 links came from search results it never opened. So your title and snippet do most of the work.

Want to know where agents and assistants find your product?

We test how AI assistants and coding agents discover, cite and use your product, and show what to publish or fix.

Talk to us