--- name: agent-readable-website description: Makes a website's pages usable by the agents inside Claude and ChatGPT and by AI agent browsers, from measured and documented fetcher rules - what content type to serve, what robots.txt must not block, where addresses must appear, and how to recognize agent traffic. Use it when an agent cannot open or read a site, or when publishing pages meant for agents. --- # Agent-readable website ## When to use - A site publishes docs, instructions or data that users will hand to Claude or ChatGPT. - An agent says it cannot open a page, reads the wrong thing, or a site owner wants to recognize or block AI traffic. - Not for signed-in app differences, connectors, or whether a vendor actually obeys robots.txt. ## Steps 1. List the pages agents should read and how a user reaches them (pasted address, link on another page, address built from data). 2. Content type: serve text files as `text/plain` (or HTML or PDF). ChatGPT refused a file served as `text/markdown` with `X-Content-Type-Options: nosniff` and read the same bytes as `text/plain`. Claude's web fetch reads only text, HTML and PDF; other types fail with `unsupported_content_type`. 3. No JavaScript rendering: Claude's web fetch does not run JavaScript, so the full content must be in the served HTML or text. 4. Address length: keep every address under 250 characters. Claude's web fetch refuses longer ones with `url_too_long`, wherever the address came from. 5. robots.txt: do not disallow agent pages for `User-agent: *`. ChatGPT refused such a page even when the user pasted the address and a `ChatGPT-User` group allowed it; its copy of robots.txt lagged the site by hours. Claude's web fetch also refuses pages robots.txt blocks (`url_not_allowed`). 6. Where addresses must appear: - Claude's web fetch opens only addresses already in the conversation: in a user message, a client-side tool result, or an earlier web search or web fetch result. A link on a page it fetched counts. An address the model built itself, or one only in the system prompt, or only in code execution, MCP connector or tool search results, fails with `url_not_in_prior_context`. - ChatGPT opens an address the user's message names. Any other address loads automatically only if an independent public web index already knows it; otherwise the user gets a warning or the agent is told to try another site. A link only inside a fetched page that the index did not know was refused. - So: never rely on an agent building an address from the user's data; ask the user to paste each address, and make each page stand alone. 7. Prompt links: `https://claude.ai/new?q=` plus the encoded prompt prefills a Claude chat. `https://chatgpt.com/?q=` sends at once; add `&disable_auto_send=1` to prefill only. 8. Robots.txt timing: OpenAI's OAI-SearchBot and Amazon bots take about 24 hours to apply a change, Perplexity bots up to 24 hours; Amazon bots may use a cached robots.txt up to 30 days old and ignore `Crawl-delay`. 9. Agent browsers have no robots.txt token: ChatGPT's cloud browser signs requests with Web Bot Auth (RFC 9421), header `Signature-Agent: "https://chatgpt.com"` with quotes, keys at `https://chatgpt.com/.well-known/http-message-signatures-directory`. Claude-Agent adds the token `Claude-Agent` (for example `compatible; Claude-Agent/1.0`) to a browser string, IPs at `https://claude.com/.well-known/sail` under `claude-agent`; rules for ClaudeBot, Claude-User and Claude-SearchBot do not control it. Google-Agent uses IPs in `user-triggered-agents.json`, and Google's user-triggered fetchers generally ignore robots.txt. 10. Training opt-outs: a robots.txt rule naming ClaudeBot overrides the general "no AI training" signal Anthropic honors since 2026-10-30. Google-Extended has no crawler of its own and does not control grounding in AI Overviews or AI Mode (use the Search Console control). `MistralAI-Training` is the Mistral name to disallow for training; `MistralAI-User` fetches only on a user's request. Applebot follows Googlebot rules when robots.txt names only Googlebot. 11. Report, page by page: content type, robots.txt result, address length, whether the page works without JavaScript, and how the user will hand over the address. 12. For an app, fetcher or crawler not covered here, say so; do not answer from memory. ## Mistakes this prevents - Serving `.md` as `text/markdown` with `nosniff` and assuming ChatGPT reads it. - Allowing `ChatGPT-User` while `User-agent: *` blocks the path. - Expecting Claude to open an address it built from a template or one only in its system prompt. - Blocking ClaudeBot and expecting Claude-Agent to stop. ## Tell the user - The ChatGPT behaviour was measured signed out on 2026-10-12; signed-in behaviour may differ. - Vendors change fetch rules; the facts were read on the date shown on this page. - When a fetch fails, signed-out ChatGPT sometimes invents the page's content without saying the fetch failed. Asked to quote a line exactly, ChatGPT has dropped clauses, so check any quote against the page itself. Cite as: mysi, Agent-readable website, mysi.dev/agent-readable-website, version 1, changed 2026-12-04. MIT.