Practical Guides · knowledge base from X

llms.txt — the file that makes a website (or a public second brain) readable by AI agents

Jeremy Howard's (Answer.AI, fast.ai) proposal: a markdown /llms.txt file with a title, a summary and lists of links to .md versions of the pages, which an agent reads first to find what it needs. Two years later v2 (August 2026) counts thousands of sites, automatic generation in docs platforms, a Lighthouse check and files published by OpenAI, Anthropic and Gemini. It is a website's "index.md".

✍️ Jeremy Howard · @jeremyphoward
🔗 Read the original on X · X Thread · published 3 Sep 2024
📊 18 likes · 2 bookmarks · 2.7k views
Summary and adaptation in English; content and results belong to the author.

Part of the manual Second Brain — the complete manual (from the PARA method to the wiki the AI writes for you)

Claimed result

  • Proposal published on 3 September 2024; the original post has small numbers (18 likes) but adoption is large. According to v2 of 10 August 2026 (llmstxt.org): thousands of sites publish an llms.txt, documentation platforms generate one automatically, Chrome's Lighthouse checks for it as part of its agentic browsing audits, and OpenAI, Anthropic and Gemini publish one for their developer docs.
  • On X Howard amplified adoptions: llms.txt files for Hugging Face repos (133 likes, post), support from Mintlify and Cursor, an llms.txt behind a paywall for paying customers (66 likes, post).

Proof: medium-high. An open, verifiable standard, adoption documented by the author in v2 and visible on well-known platforms. It remains an informal proposal, not an official standard.

The key idea

Web pages are built for people; agents need concise, expert-level information in a single place. Turning HTML with navigation, ads and JavaScript into clean text is hard and imprecise, and context windows cannot hold a whole site. So: a small file that fits in context, with the detail behind the links, fetched only when needed. It is the same principle as the index.md in Karpathy's wiki, brought to the web.

Step-by-step playbook

1. The format (in this order)

  1. (optional) BOM.
  2. An H1 with the name of the project or site — the only required part.
  3. A blockquote with a short summary and the key information needed to understand the rest.
  4. Zero or more paragraphs or lists (no headings) with details on how to interpret the files.
  5. Zero or more H2 sections with "file lists": each item is [name](url), optionally followed by : notes. - An "Optional" section by convention holds secondary links an agent can skip when a shorter context is needed.

2. Markdown versions of pages

  • For every useful page, a .md version at the same URL: page.html.md or page.md (for URLs without a file name: index.html.md or index.md).
  • Standard link relations (new in v2): rel="alternate" type="text/markdown" to the markdown version and rel="describedby" to the llms.txt that covers it, as an HTML link element or as an HTTP Link: header (which also works for non-HTML files and can be added in server or CDN configuration).

3. Where to put it

  • At the root /llms.txt or at any sub-path (e.g. /docs/llms.txt covers everything in /docs/); where more than one is relevant, the agent uses the most specific one. Howard explains why not /.well-known/: many authors control only a path on a shared host (e.g. a GitHub Pages project site).
  • It does not replace sitemap.xml (which lists everything, without LLM versions, without external links, too large) or robots.txt (which says what is allowed; llms.txt gives context on demand, used mostly at inference time).

4. Writing tips

Concise, clear language; short, informative descriptions for every link; no unexplained jargon; test the file by asking an agent questions about your content, giving it only your llms.txt as a starting point.

5. Uses beyond documentation

A business outlining its structure and policies; a personal site answering questions about someone's CV; a school with course information. Tools: Mintlify, GitBook, Yoast SEO, AIOSEO and Wix generate it; plugins for VitePress, Docusaurus, Drupal; an MCP server (server-llm-txt) that lets agents fetch and search llms.txt files.

6. Why it matters for a second brain

Karpathy in 2025: products an LLM cannot read and manipulate through text are "ngmi"; tools that are "already just all text" (Obsidian, VS Code, Jupyter) are low risk (post). A second brain you want any AI to consult, even from outside, should have an llms.txt as its front door.

Tools and costs

A text file: free. Automatic generators in the platforms listed.

Limitations

  • Informal proposal: no guarantee a given agent reads it; it needs testing.
  • It does not control access: everything you link is readable by anyone.
  • The "thousands of sites" adoption figure is stated by the proposal's author.
← More guides in “Second Brain — knowledge bases that AIs can read too”