agenticweb.wiki

AGENTS.md vs agents.txt

Last checked · 14 primary sources

Agent Harnesses, RPC Transports & UI Protocols × Web Discovery & Content Negotiation Separate layers · Filename similarity

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

FieldAGENTS.mdagents.txt
CategoryReadDiscover
Tier & lifecycleFlagship · ActiveSpec Brief · Active Draft
TrackFoundation / 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 byOpenAI 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 byAgentic 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]
StatusOpen 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 versionUnversioned 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]
FormRepository Markdown instruction fileWell-known file
Wire / transportStandard 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 atRepository-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 specificationAGENTS.md [1]Spec v1.0 · About · Reference File · GitHub Repo · Cardillo I-D [8][12][14]
Last checked2026-11-122026-11-12

Problem, mechanism & scope

Overview

AGENTS.md

Not to be confused with llms.txt (HTTP-served web documentation index) or Agent Skills (packaged SKILL.md workflow directories). [1]

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

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 repository coding instructions, llms.txt Markdown briefings, AI crawler tokens in robots.txt, ai.txt usage policies, and five unrelated historical agents.txt proposals noted under Version. [8][9]

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

See verified implementations and cited ecosystem censuses on the AGENTS.md protocol page.

agents.txt

See verified implementations and cited ecosystem censuses on the agents.txt protocol page.

References

  1. AGENTS.md (Agentic AI Foundation), AGENTS.md, checked 2026-10-30 — https://agents.md/
  2. 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
  3. 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
  4. Amp, From AGENT.md to AGENTS.md, published 2025-08-20 — https://ampcode.com/news/AGENTS.md
  5. OpenAI, Introducing Codex, published 2025-05-16 — https://web.archive.org/web/20261022165127/https://openai.com/index/introducing-codex/
  6. 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
  7. Factory, AGENTS.md, checked 2026-10-30 — https://docs.factory.com/harness/agents-md
  8. agents.txt Standard, agents.txt Standard v1.0, checked 2026-10-29 — https://agents-txt.com/spec/
  9. 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
  10. GitHub REST API, agents-txt/agents-txt repository record, checked 2026-10-29 — https://github.com/agents-txt/agents-txt
  11. GitHub REST API, agents-txt/agents-txt commits, checked 2026-10-29 — https://github.com/agents-txt/agents-txt/commits
  12. agents.txt Standard, About, checked 2026-10-29 — https://agents-txt.com/about/
  13. 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
  14. agents.txt Standard, reference file /agents.txt on agents-txt.com, checked 2026-10-29 — https://agents-txt.com/agents.txt

agents-md.json · agents-txt.json · JSON · Markdown