AGENTS.md vs agents.txt
Despite 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]
Quick facts comparison
| Field | AGENTS.md | agents.txt |
|---|---|---|
| Category | Read | Discover |
| Tier & lifecycle | Flagship · Active | Spec Brief · Active Draft |
| 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] |
| 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] |
| 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] |
| 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] |
| 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] |
| Form | Repository Markdown instruction file | Well-known file |
| 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] |
| 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] |
| Primary specification | AGENTS.md [1] | Spec v1.0 · About · Reference File · GitHub Repo · Cardillo I-D [8][12][14] |
| Last checked | 2026-11-12 | 2026-11-12 |
Problem, mechanism & scope
- 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. [1][2][3]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. [1][3]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. [1][6][7] - 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.txtStandard (https://agents-txt.com) publishes/agents.txtand/agents.jsonat the origin root, whiledraft-car-agents-txt-wellknown-00defines an opt-in capability declaration file at/.well-known/agents.txt. [8][9] Indraft-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] Whererobots.txtexpresses prohibition,agents.txtexpresses capability: a sanctioned channel for agent interaction that is otherwise routinely blocked because no positive declaration surface exists. [9]agents.txtis complementary to, and does not replace, existing standards, includingrobots.txt,llms.txt,security.txt, and OpenAPI. [9] An earlier policy proposal,draft-srijal-agents-policy-00, expired April 2026 with no-01revision;draft-car-agents-txt-wellknown-00differs 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 inagents.txt. The file is advisory to agents; it is not a trust boundary. [9]
Overview
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. [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]
agents.txt
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]
Adoption and ecosystem
AGENTS.md
agents.txt
References
- 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
- agents.txt Standard, agents.txt Standard v1.0, checked 2026-10-29 — https://agents-txt.com/spec/
- 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
- GitHub REST API, agents-txt/agents-txt repository record, checked 2026-10-29 — https://github.com/agents-txt/agents-txt
- GitHub REST API, agents-txt/agents-txt commits, checked 2026-10-29 — https://github.com/agents-txt/agents-txt/commits
- agents.txt Standard, About, checked 2026-10-29 — https://agents-txt.com/about/
- 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
- agents.txt Standard, reference file /agents.txt on agents-txt.com, checked 2026-10-29 — https://agents-txt.com/agents.txt