{
 "url": "https://agenticweb.wiki/compare/agents-md-vs-agents-txt/",
 "title": "AGENTS.md vs agents.txt: differences & adoption",
 "description": "AGENTS.md vs agents.txt: disambiguation of distinct specifications, scope boundaries, governance, and verified adoption.",
 "markdown_url": "https://agenticweb.wiki/compare/agents-md-vs-agents-txt/index.md",
 "markdown": "# AGENTS.md vs agents.txt\n\n**Domains:** Agent Harnesses, RPC Transports & UI Protocols × Web Discovery & Content Negotiation · **Relationship:** Separate layers · Filename similarity\n\nDespite similar names, `AGENTS.md` and `agents.txt` serve unrelated layers: `AGENTS.md` is a checked-in repository Markdown file giving coding agents build steps, test commands, and project instructions. [1][3] By contrast, `agents.txt` (`/agents.txt` or `/.well-known/agents.txt`) is an origin web declaration routing external agents to sanctioned endpoints, protocols, auth, and rate limits. [8][9]\n\n## Quick facts comparison\n\n| Field | AGENTS.md | agents.txt |\n| --- | --- | --- |\n| **Category** | [Read](/category/read/) | [Discover](/category/discover/) |\n| **Tier & lifecycle** | Flagship · Active | Spec Brief · Active Draft |\n| **Track** | Foundation / Consortium Specification (Agentic AI Foundation / Linux Foundation) [1] | Community draft standard (`agents-txt.com` v1.0 Draft) and individual IETF Internet-Drafts (Informational) [8][9][13] |\n| **Originated by** | 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 [1][4][5][6] | `hsolosoftworks` (`agents-txt/agents-txt`); separate `/.well-known/agents.txt` I-D by Kayla Cardillo (`draft-car-agents-txt-wellknown-00`) [8][10][11] |\n| **Governed by** | Agentic AI Foundation (AAIF), under the Linux Foundation (donated 2025-12-09) [1][6] | `agents.txt` working group on GitHub via RFC-style PR review; separate individual IETF I-Ds in Datatracker [8][12][13] |\n| **Status** | Open format; AAIF founding contribution (announced 2025-12-09) [1][6] | `agents-txt.com`: `Status: Draft` (work in progress and subject to change); Cardillo I-D: `draft-car-agents-txt-wellknown-00` (Informational Internet-Draft, expires 14 December 2026) [8][10][11] |\n| **Latest version** | Unversioned open Markdown format (no required fields or version header) [1] | `agents-txt.com` `v1.0` (`Status: Draft`; spec header prints backdated `Published: 2025-10-13`, whereas `agents-txt/agents-txt` repo was created `2026-05-13`); Cardillo I-D `draft-car-agents-txt-wellknown-00` (`Spec-Version: 1.0`, `2026-06-12`). Unrelated collisions sharing the filename: (a) Dennj Osele's `agentstxt.dev` `v0.0.2 alpha` (`2025-02-15`), (b) Srijal Dutta's expired `draft-srijal-agents-policy-00` (`2025-10-07`), (c) Jasper van Veen's `agents.txt` (`2026-03`, renamed `agent-manifest.txt`), (d) AsturWebs `agents.txt` `v2.0`, and (e) Bandara et al. (`2026-06-17`, `/.well-known/agents.txt` access policy). [8][10][11] |\n| **Form** | Repository Markdown instruction file | Well-known file |\n| **Wire / transport** | Standard Markdown (no required fields or fixed headings) [1] | UTF-8 plain text (`text/plain; charset=utf-8`) paired with JSON Schema 2020-12 `/agents.json` (`application/json`) [8][14] |\n| **Found at** | Repository-root `AGENTS.md` and optional nested package/subdirectory `AGENTS.md` files (nearest file in directory tree wins) [1] | `agents-txt.com` Standard: `GET <origin>/agents.json` first (`SHOULD`), fallback `GET <origin>/agents.txt` (`MUST`), `# JSON:` comment, `Allow: /agents.txt` in `robots.txt` (`Access-Control-Allow-Origin: *` `MUST`, `Cache-Control: public, max-age=3600` `SHOULD`); Cardillo I-D: `GET https://example.com/.well-known/agents.txt` (with `/agents.txt` fallback) and `GET https://example.com/.well-known/agents.json` [8][14] |\n| **Primary specification** | [AGENTS.md](https://agents.md/) [1] | [Spec v1.0](https://agents-txt.com/spec/) · [About](https://agents-txt.com/about/) · [Reference File](https://agents-txt.com/agents.txt) · [GitHub Repo](https://github.com/agents-txt/agents-txt) · [Cardillo I-D](https://www.ietf.org/archive/id/draft-car-agents-txt-wellknown-00.txt) [8][12][14] |\n| **Last checked** | 2026-11-12 | 2026-11-12 |\n\n## Problem, mechanism & scope\n\n- **AGENTS.md problem, mechanism & scope boundary:** Human `README.md` files 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 across `CLAUDE.md`, a `.github/copilot-instructions.md` file, deprecated `.cursorrules`, and `GEMINI.md`. [1][2][3] `AGENTS.md` collects that agent context in one tool-agnostic Markdown file with no required fields. Nested files follow nearest-directory precedence: the closest `AGENTS.md` in the directory tree takes precedence, so each package can ship its own commands and conventions. [1][3] `README.md` remains the human guide for quick starts, project descriptions, and contribution guidelines. `AGENTS.md` is the checked-in Markdown file coding agents read for repository instructions. `SKILL.md` packages reusable workflows that load only when relevant. The Model Context Protocol connects AI models to tools, data, and applications. [1][6][7]\n- **agents.txt problem, mechanism & scope boundary:** Automated AI agents are routinely blocked by bot detection systems, CAPTCHAs, and rate limiters because no sanctioned channel for agent interaction exists, leaving operators without a standard way to declare supported agent endpoints or authentication. [9] The `agents.txt` Standard (`https://agents-txt.com`) publishes `/agents.txt` and `/agents.json` at the origin root, while `draft-car-agents-txt-wellknown-00` defines an opt-in capability declaration file at `/.well-known/agents.txt`. [8][9] In `draft-car-agents-txt-wellknown-00`, the declaration states which endpoints are sanctioned for agent use, which protocols (`REST`, `MCP`, `A2A`, `GraphQL`, `WebSocket`) are supported, what authentication mechanisms are expected, and what rate limits the site advertises. [9] Where `robots.txt` expresses prohibition, `agents.txt` expresses capability: a sanctioned channel for agent interaction that is otherwise routinely blocked because no positive declaration surface exists. [9] `agents.txt` is complementary to, and does not replace, existing standards, including `robots.txt`, `llms.txt`, `security.txt`, and OpenAPI. [9] An earlier policy proposal, `draft-srijal-agents-policy-00`, expired April 2026 with no `-01` revision; `draft-car-agents-txt-wellknown-00` differs in scope by declaring capabilities rather than policy restrictions. [9] Servers MUST enforce all declared restrictions (rate limits, access control, agent policies) independently of the declarations in `agents.txt`. The file is advisory to agents; it is not a trust boundary. [9]\n\n## Overview\n\n### AGENTS.md\n\n*Not to be confused with [llms.txt](/protocols/llms-txt/) (HTTP-served web documentation index) or [Agent Skills](/protocols/anthropic-agent-skills-format/) (packaged `SKILL.md` workflow directories). [1]*\n\n**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`. [1] 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. [1] 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. [1][4][5][6]\n\n### agents.txt\n\n*This page covers two capability-declaration specifications named `agents.txt`: (1) the `agents.txt` Standard at `agents-txt.com` (`/agents.txt` with companion `/agents.json`) and (2) Kayla Cardillo's IETF Internet-Draft `draft-car-agents-txt-wellknown-00` (`/.well-known/agents.txt`). It is distinct from [AGENTS.md](/protocols/agents-md/) repository coding instructions, [llms.txt](/protocols/llms-txt/) Markdown briefings, [AI crawler tokens in robots.txt](/protocols/ai-crawler-tokens-robots/), [ai.txt](/protocols/ai-txt/) usage policies, and five unrelated historical `agents.txt` proposals noted under Version. [8][9]*\n\n**agents.txt** (with companion `agents.json`) is a lightweight, protocol-agnostic capability declaration format at `https://agents-txt.com` that publicly announces what agent-interaction protocols and features a website supports; a separate IETF draft (`draft-car-agents-txt-wellknown-00`) requests registration of `agents.txt` and `agents.json` under `/.well-known/`. [8][9] In the `agents.txt` Standard v1.0, `agents.txt` MUST be served at `/agents.txt` and `agents.json` SHOULD be served at `/agents.json`, whereas `draft-car-agents-txt-wellknown-00` serves `https://example.com/.well-known/agents.txt` with root fallback `https://example.com/agents.txt`. [8][9] In the `https://agents-txt.com` Standard `v1.0` (`Status: Draft`), the specification header prints a backdated `Published: 2025-10-13` date that predates the `agents-txt/agents-txt` GitHub repository (`2026-05-13`, first commit `2026-05-10`); separately, Kayla Cardillo's `draft-car-agents-txt-wellknown-00` (Independent Submission) is an Informational Internet-Draft dated 12 June 2026 and expiring 14 December 2026. [8][9][10][11] In `draft-car-agents-txt-wellknown-00`, `Spec-Version` is REQUIRED and MUST be `1.0` for conforming documents. [9]\n\n## Adoption and ecosystem\n\n### AGENTS.md\n\nSee verified implementations and cited ecosystem censuses on the [AGENTS.md protocol page](/protocols/agents-md/#adoption-and-ecosystem).\n\n### agents.txt\n\nSee verified implementations and cited ecosystem censuses on the [agents.txt protocol page](/protocols/agents-txt/#adoption-and-ecosystem).\n\n## References\n\n1. AGENTS.md (Agentic AI Foundation), *AGENTS.md*, checked 2026-10-30 — https://agents.md/\n2. 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\n3. 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\n4. Amp, *From AGENT.md to AGENTS.md*, published 2025-08-20 — https://ampcode.com/news/AGENTS.md\n5. OpenAI, *Introducing Codex*, published 2025-05-16 — https://web.archive.org/web/20261022165127/https://openai.com/index/introducing-codex/\n6. 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\n7. Factory, *AGENTS.md*, checked 2026-10-30 — https://docs.factory.com/harness/agents-md\n8. agents.txt Standard, *agents.txt Standard v1.0*, checked 2026-10-29 — https://agents-txt.com/spec/\n9. K. Cardillo, *AGENTS.TXT: Capability Declarations for Web Agents (draft-car-agents-txt-wellknown-00)*, 12 June 2026 — https://www.ietf.org/archive/id/draft-car-agents-txt-wellknown-00.txt\n10. GitHub REST API, *agents-txt/agents-txt repository record*, checked 2026-10-29 — https://github.com/agents-txt/agents-txt\n11. GitHub REST API, *agents-txt/agents-txt commits*, checked 2026-10-29 — https://github.com/agents-txt/agents-txt/commits\n12. agents.txt Standard, *About*, checked 2026-10-29 — https://agents-txt.com/about/\n13. S. Dutta, *AGENTS.TXT: Strict Policy File for Automated Clients (draft-srijal-agents-policy-00)*, checked 2026-10-29 — https://www.ietf.org/archive/id/draft-srijal-agents-policy-00.txt\n14. agents.txt Standard, *reference file /agents.txt on agents-txt.com*, checked 2026-10-29 — https://agents-txt.com/agents.txt\n"
}