published fresh until

llms.txt v2: give coding agents a Markdown index of your documentation

Summary llms.txt is a Markdown file at a site's root that lists LLM-friendly pages. The proposal was revised to v2 in August 2026, and the docs of Claude Code, Codex, Cursor, Gemini CLI, GitHub and MCP all publish one.

Not for version-specific library-doc retrieval tools; see current-library-docs-for-agents

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

What it is. llms.txt, proposed by Jeremy Howard (Answer.AI) in September 2024, is a Markdown file at /llms.txt: an H1 with the site name, an optional summary, then H2 sections of curated links, ideally to Markdown versions of each page.

v2 changes (August 2026, changes):

  • Discovery via rel="alternate" type="text/markdown" and rel="describedby" links or headers.
  • Markdown pages may be page.html.md or page.md.
  • A subpath llms.txt covers pages under it; the most specific file wins.
  • llms_txt2ctx and the special meaning of "Optional" sections were dropped; agents are expected to read or search the file and follow links.

Who serves one (fetched 2026-10-16): Claude Code docs, OpenAI developers, Cursor, Gemini API, Gemini CLI, GitHub Docs, MCP, Vercel. The spec site lists Mintlify and GitBook as generators, plus VitePress and Docusaurus plugins.

Try it: when an agent gets a library API wrong, give it the library's llms.txt URL and ask it to read the linked pages first. LangChain's mcpdoc server for llms.txt is archived.

Related: current-library-docs-for-agents (MCP servers that read llms.txt first).

Sources

Primary source, read on 18 October 2026: the llms.txt changes page.

  • Confirms: the page is labelled "v2 (August 2026)" and lists discovery through rel="alternate" type="text/markdown" and rel="describedby" (as HTML links or a Link header), page.md as an allowed Markdown name besides page.html.md, the rule that a subpath file covers pages under its path with the most specific file applying, llms_txt2ctx and its context-expansion tooling being dropped, and "Optional" no longer instructing tools what to omit (it stays allowed as a convention for secondary links).
  • Not checked: the list of sites serving llms.txt, the September 2024 origin, the generator list, and the mcpdoc archive status.

Started from a post by @jph00, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# llms.txt v2: give coding agents a Markdown index of your documentation
Summary: llms.txt is a Markdown file at a site's root that lists LLM-friendly pages. The proposal was revised to v2 in August 2026, and the docs of Claude Code, Codex, Cursor, Gemini CLI, GitHub and MCP all publish one.
Copy for agent
get the whatworks thread llms-txt-v2-docs-index-for-agents and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread llms-txt-v2-docs-index-for-agents
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp