Test catalog
This catalog turns the seven retrieval paths into experiments you can actually run. Each test names what it isolates, how to set it up, the prompt to run, and the signal that answers it. Run them with the methodology, which means canary URLs, nonce phrases, a clean environment and at least five trials per agent. Inside each group the tests go from cheapest to most involved, and the ones we consider most informative per hour of effort are marked priority, so if you only have an afternoon, start there.
A: Can agents read you at all?
Section titled “A: Can agents read you at all?”A1. Agent fingerprint replay (priority). Send requests to your top docs pages with each user agent and Accept header in the user agents reference, from a residential IP and from a cloud IP, and record status code, response size and whether the body is real content. Your WAF, bot manager or CDN may already be returning 403, 429 or a challenge page to Claude-User, curl or python-requests, and you’d never know from your dashboards. Re-run this before every WAF rule change, because a rule tuned against scrapers is the most common way a docs site silently drops out of agent answers.
A2. Challenge pages that return 200. Bot walls and cookie-consent interstitials often return status 200, so status-code monitoring misses them and the agent happily ingests the wall as if it were your docs. Fingerprint the body (look for challenge scripts, “verify you are human”, consent framework markers) on responses to agent user agents, and alert on any match.
A3. No-JavaScript content diff (priority). For every docs page, compare the text in the raw HTML with the text in the rendered DOM. Pages where the raw HTML holds less than about 80% of the rendered text will be partly or wholly empty for every local fetch tool. Make this a check in your deploy pipeline so a front-end change can’t silently remove your docs from agents.
A4. Truncation survival. Put a nonce near the end of your longest reference page and ask each agent a question only that nonce answers. If the agent fetches but can’t answer, the page is being cut by a byte or character limit before the model sees it. Repeat with the nonce at 10%, 30% and 60% depth to find where each agent stops reading.
A5. Summariser survival. Claude Code, Qwen Code and Crush pass fetched pages through a second model. Put a precise fact (a default value, a flag name) in the second half of a section, ask a question that needs it, and compare answers against a version of the page where the fact is in the first sentence. The difference tells you how much your page structure costs you in summarised paths.
A6. Markdown negotiation A/B. Serve the same URL as HTML and, for requests with Accept: text/markdown, as markdown with Vary: Accept. Log which variant each agent received and compare answer quality. Claude Code and OpenCode request markdown, while Gemini’s URL Context, Codex’s shell and Pi don’t (lab). For agents that don’t negotiate, a .md URL suffix tests the same thing.
B: Are you in the indexes agents use?
Section titled “B: Are you in the indexes agents use?”B1. Per-backend canary (priority). Publish one new, indexable page with a unique phrase and submit it through your sitemap. Then, weekly, ask each agent’s search tool a question only that page answers: Claude Code (Brave), Gemini CLI (Google), Codex (OpenAI index), OpenCode (Exa or Parallel), Copilot (Bing). Record the week each backend first surfaces it, and you end up with a measured crawl-to-answer lag per vendor, which tells you where to focus when discovery drops.
B2. Route-exclusive sentinels. Create pages that only one channel can reach: one linked only from your npm README, one only from llms.txt, one only from a GitHub discussion, one only submitted to Context7. The first request for each tells you which channel each agent or indexer actually traverses.
B3. Index-only failure. Repeat our Codex observation on your own domain: give default Codex a new URL on your site and see whether it can read it. If it can’t, your content depends on OpenAI’s crawler having visited, which makes OAI-SearchBot access in robots.txt and your CDN a priority.
B4. Doc MCP freshness. Change an API default in your docs and record how long Context7, DeepWiki and GitMCP take to return the new value. Context7 refreshes more often for popular libraries and supports a refresh API and a GitHub Action (doc MCP servers).
B5. Training-data probe. Ask each agent about your product with all tools disabled. Whatever it says comes from memory, and the version numbers it quotes tell you how old its knowledge of you is, so repeat this with each new model release.
C: Do agents choose you?
Section titled “C: Do agents choose you?”C1. Dilution ladder (priority). Write a ladder of prompts from fully specific to fully generic: “use YourLib to stream parse X”, “use a streaming parser library for X”, “parse this 2 GB X file without loading it into memory”, “make this import faster”. Run each rung across agents and record the rung where your product stops appearing. That rung is a comparable score per agent and per month, and I think it’s the closest thing coding agents have to a ranking position.
C2. Brandless capability prompts. Strip every brand name from a set of realistic tasks and measure how often each agent arrives at your package unprompted. This isolates training memory and registry search from anything the developer typed.
C3. Incumbency. Prepare a fixture repository where your package is already installed and another where a competitor is. Ask for a new feature in your category with network disabled and record whether the agent keeps, adds or replaces the existing dependency, which measures how sticky you are once you’ve been chosen.
C4. Instruction-file sensitivity. Add a single line to AGENTS.md or CLAUDE.md preferring a competitor, then preferring you, and measure how far each flips the choice. If one line overrides everything else, the contest for that customer happens inside their repository, not out on the web.
C5. Context bisection. When an agent chooses you in a real project, copy the repository’s dependency files, instruction files and README into a clean fixture and remove them one at a time to find which one carries the choice.
C6. Second-pass survival. Give a second agent only the first agent’s diff and ask it to review the dependencies it added. Record whether your package survives review, and why it’s removed when it doesn’t, because planners and reviewers increasingly filter choices made by other agents.
D: Unconventional channels
Section titled “D: Unconventional channels”D1. Error messages as signposts (priority). Agents read stderr carefully and act on it immediately. Make your library’s common error messages include the fix and a docs URL, then trigger those errors in a fixture and measure how often the agent fetches the URL or applies the fix without searching. In my view this is the cheapest high-trust channel you own.
D2. 404 recovery. Agents often guess URLs, so fetch plausible wrong paths (/docs/api, /docs/latest/quickstart) through each agent and check whether your 404 page gives a short, text-only pointer to the right place, then measure recovery rate.
D3. Repository front door. Compare agent success when it starts from your bare GitHub URL versus your docs URL. Shell-oriented agents use gh repo view and raw files and never render your website, so the first lines of the README and the repository description decide what they learn (GitHub as a front door).
D4. Hallucinated-name check. Ask agents to install your package across many prompts and collect the names they try. If a plausible wrong name recurs, decide whether to register it as a clearly labelled pointer to the real package, which some registries allow, and to document the correct name prominently. Don’t register names that imitate other projects.
D5. Version skew. After each release, ask every agent path for your current install command and main API signature, and alert when answers cite a version more than one or two releases old. Stale answers come from indexes, doc MCPs and training memory, and they fail silently.
D6. Content-form comparison. Serve the same document as an HTML page, a .md file, an llms.txt entry and a Context7 library, then ask each agent the same question with only one form reachable at a time. Whichever form produces the most accurate answers is where to invest.
D7. robots.txt honesty check. Disallow a single canary path for one user agent token at a time and log which agents still fetch it. Most user-triggered fetchers will, which tells you robots.txt isn’t your control surface for coding agents (your CDN rules are).
Tests we decided against
Section titled “Tests we decided against”Some tempting experiments are harmful or invalid, and I want to be explicit about them. Publishing look-alike packages to see whether agents install them breaks registry policies and is indistinguishable from a supply-chain attack. Seeding misleading content about competitors into indexes or doc servers is unethical and pollutes your own measurements. Posting canary phrases in other projects’ issues or Stack Overflow answers is spam. None of these belong in a measurement programme.
Last reviewed 2026-12-02. This site is re-reviewed monthly; see maintenance.