llms.txt vs AGENTS.md
Both formats use Markdown across complementary web and repository surfaces [1][4]: a website serves /llms.txt (or /docs/llms.txt) over HTTP to point external reading agents at clean Markdown documentation pages. [1] Inside a source repository, checked-in AGENTS.md files follow nearest-directory precedence to give coding agents build steps, test commands, and project conventions. [4][6]
Quick facts comparison
| Field | llms.txt | AGENTS.md |
|---|---|---|
| Category | Read | Read |
| Tier & lifecycle | Flagship · Active | Flagship · Active |
| Track | Vendor / Spec-Site Standard (informal community overview) [1] | Foundation / Consortium Specification (Agentic AI Foundation / Linux Foundation) [4] |
| Originated by | Jeremy Howard (Answer.AI / fast.ai), published 2024-09-03 [1][2] | OpenAI Codex (AGENTS.md documented May 16, 2025), Amp (AGENT.md, May 2025), Jules (Google), Cursor, and Factory; described as released by OpenAI in August 2025 in the Linux Foundation AAIF announcement [4][7][8][9] |
| Governed by | Jeremy Howard; open for community input via public GitHub repository [1] | Agentic AI Foundation (AAIF), under the Linux Foundation (donated 2025-12-09) [4][9] |
| Status | v2 proposal (informal overview, open for community input) [1] | Open format; AAIF founding contribution (announced 2025-12-09) [4][9] |
| Latest version | v2 (modified 2026-08-10; v1 published 2024-09-03) [1] | Unversioned open Markdown format (no required fields or version header) [4] |
| Form | Document format | Repository Markdown instruction file |
| Wire / transport | Markdown (required H1 title, optional summary blockquote, and H2 link lists) [1] | Standard Markdown (no required fields or fixed headings) [4] |
| Found at | /llms.txt at the site root or any subpath (e.g., /docs/llms.txt) [1] | Repository-root AGENTS.md and optional nested package/subdirectory AGENTS.md files (nearest file in directory tree wins) [4] |
| Primary specification | The /llms.txt file, v2 (v2 Changes) [1][3] | AGENTS.md [4] |
| Last checked | 2026-11-11 | 2026-11-12 |
Problem, mechanism & scope
- llms.txt problem, mechanism & scope boundary: An HTML page wraps its information in navigation, ads, and JavaScript, so converting it back into clean text is difficult and imprecise, and every wasted token costs time and money while context windows are still too small for most websites.
sitemap.xmllists indexable human-readable URLs, but it often lacks the LLM-readable versions, omits helpful external URLs, and is too large to stand in for a curated overview. [1] The site instead publishes a smallllms.txtthat agents view or search, with links aimed at LLM-friendly Markdown versions of pages. The file stays small enough to fit in context; the detail lives behind the links and is fetched only when needed. [1]/robots.txttells automated tools what access is considered acceptable, such as for search indexing bots, whereasllms.txtis read on demand while an agent assists a user and was expected to help inference rather than training. It is also not a root-only/.well-known/URI under RFC 8615: an author who controls only a path, such as a GitHub Pages project site, can still publish a file there. [1] - AGENTS.md problem, mechanism & scope boundary: Human
README.mdfiles are for quick starts, project descriptions, and contribution guidelines. The extra build steps, tests, and conventions coding agents need can clutter that README. The same guidance is often split again acrossCLAUDE.md, a.github/copilot-instructions.mdfile, deprecated.cursorrules, andGEMINI.md. [4][5][6]AGENTS.mdcollects that agent context in one tool-agnostic Markdown file with no required fields. Nested files follow nearest-directory precedence: the closestAGENTS.mdin the directory tree takes precedence, so each package can ship its own commands and conventions. [4][6]README.mdremains the human guide for quick starts, project descriptions, and contribution guidelines.AGENTS.mdis the checked-in Markdown file coding agents read for repository instructions.SKILL.mdpackages reusable workflows that load only when relevant. The Model Context Protocol connects AI models to tools, data, and applications. [4][9][10]
Overview
llms.txt
llms.txt is a community proposal originated by Jeremy Howard (co-founder of Answer.AI and fast.ai) on September 3, 2024 (2024-09-03) that standardizes a Markdown file named llms.txt at /llms.txt or a subpath such as /docs/llms.txt. The file gives reading agents brief background context, guidance, and curated links to detailed Markdown pages under that path. [1][2] Alongside llms.txt (where agents use the most specific file when multiple paths apply), pages expose a clean Markdown companion at the same URL with .md appended (page.html.md), the extension replaced (page.md), or index.html.md / index.md for directory URLs. Clients discover the Markdown companion via rel="alternate" type="text/markdown" and the covering llms.txt via rel="describedby" in HTML <link> elements or HTTP Link: response headers. [1] Revision v2 (modified August 10, 2026) broadened Markdown companion URLs beyond v1's single appended-extension form and retired the v1 llms_txt2ctx context-expansion tool and mechanical Optional omission semantics. [1][3]
AGENTS.md
AGENTS.md is an open, tool-agnostic Markdown format for guiding coding agents—providing a dedicated, predictable repository location for build steps, test commands, and project conventions that would clutter a human README.md. [4] Maintainers place standard Markdown AGENTS.md files (with no required fields or mandatory frontmatter) at the repository root and optionally inside nested packages. Coding agents automatically read the nearest AGENTS.md in the directory tree so the closest file to the edited path takes precedence, while explicit user chat prompts override everything. [4] First documented in OpenAI's May 16, 2025 Codex launch and consolidated across OpenAI Codex, Amp (which switched from singular AGENT.md to AGENTS.md on August 20, 2025, 2025-08-20), Google Jules, Cursor, and Factory in August 2025, AGENTS.md was contributed as a founding project of the Linux Foundation's Agentic AI Foundation (AAIF) on December 9, 2025 (2025-12-09) alongside Anthropic's Model Context Protocol (MCP) and Block's goose. [4][7][8][9]
Adoption and ecosystem
llms.txt
AGENTS.md
References
- Jeremy Howard, The /llms.txt file, v2, published 2024-09-03; modified 2026-08-10; HTTP last-modified 2026-09-24 — https://llmstxt.org
- Louise Linehan (Ahrefs), We Analyzed 137K Sites: 97% of llms.txt Files Never Get Read, published 2026-06-15; modified 2026-08-27; data: May 2026 — https://ahrefs.com/blog/llmstxt-study/
- Jeremy Howard, Changes, August 2026; HTTP last-modified 2026-09-24 — https://llmstxt.org/changes.html
- AGENTS.md (Agentic AI Foundation), AGENTS.md, checked 2026-10-30 — https://agents.md/
- GitHub, Adding repository custom instructions for GitHub Copilot, checked 2026-10-30 — https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions
- Matthias Galster, Seyedmoein Mohsenimofidi, Jai Lal Lulla, Muhammad Auwal Abubakar, Christoph Treude, and Sebastian Baltes, Harness Engineering for Agentic AI Coding Tools: An Exploratory Study, arXiv:2602.14690v5, revised 2026-06-30 — https://arxiv.org/html/2602.14690v5
- Amp, From AGENT.md to AGENTS.md, published 2025-08-20 — https://ampcode.com/news/AGENTS.md
- OpenAI, Introducing Codex, published 2025-05-16 — https://web.archive.org/web/20261022165127/https://openai.com/index/introducing-codex/
- The Linux Foundation, Linux Foundation Announces the Formation of the Agentic AI Foundation (AAIF), Anchored by New Project Contributions Including Model Context Protocol (MCP), goose and AGENTS.md, published 2025-12-09; modified 2026-02-24 — https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation
- Factory, AGENTS.md, checked 2026-10-30 — https://docs.factory.com/harness/agents-md