Table of contents
- Quick summary
- Two files that share a name
- What a real site-root file looks like
- What belongs in it, and what does not
- Why a status check lies about this file
- What 873 sites served on 21 November 2026
- Path 1: write and serve the file yourself (any stack)
- Path 2: Shopify, where the platform already serves one
- Verify: scan first, then by hand
- Next action
agents.md is two different things. In a code repository, AGENTS.md is a README for coding agents: build, test and style instructions. At a website root, /agents.md is an informal convention that tells browsing and shopping agents how to act on the site. When we fetched both paths from 873 sites on 21 November 2026, 21 served real agent instructions, and 16 of those were Shopify's default file, not one the store wrote.
Updated on 21 November 2026: new section with a live fetch of 873 sites, a correction about where Allbirds' file comes from, and Shopify's default file explained.
Ask three people what agents.md is and you get three answers. One says it is the file coding agents read in a repository. One says it is the Markdown page a store publishes for shopping agents. One says it is just llms.txt with a different name. All three have seen something real, and none of them are describing the same file.
This guide separates the two uses of the name, shows what belongs in a site-root agents.md, and gives you a check that cannot pass on the wrong thing. As of 21 November 2026 there is still no RFC for the web version, so this is a convention you should treat with that in mind.
Quick summary
| Question | Short answer |
|---|---|
What is AGENTS.md the project? | A "README for agents": build, test and style instructions for coding agents, kept in a repository (agents.md) |
What is /agents.md on a website? | An informal convention: a Markdown page at your site root describing how an agent should work with the site |
| Is it a standard? | The repository format has a home and a spec site. The web-root version has no RFC and no registry |
| Does it replace llms.txt or robots.txt? | No. Three files, three jobs (table below) |
| How many sites have one? | 21 of 873 we fetched on 21 Nov 2026 (2.4%). 16 are Shopify's default file (data below) |
| Does AIScan score it? | Not directly. check:C2 grades /llms.txt and check:E1 catches soft 404s, which is the failure that fakes an agents.md |
| The trap | 109 of the 873 returned 200 on one of the two paths. Only 21 of those were agent instructions |
Two files that share a name
The first is AGENTS.md in a code repository. The project site agents.md describes it, in its own words, as "a simple, open format for guiding coding agents, used by over 60k open-source projects" (verified on 21 November 2026). It is a predictable place for setup commands, test instructions and code style, kept apart from the human README. According to the same page, the format is now stewarded by the Agentic AI Foundation under the Linux Foundation, there are no required fields, and in a monorepo the nearest AGENTS.md in the directory tree wins. Its list of supporting tools includes Codex, Cursor, Jules, Aider, Zed and VS Code. If you landed here looking for that, the reader is a coding agent and the file lives at the repo root. Nothing below changes it.
The second is /agents.md served from a website. The reader is a different kind of agent: an assistant that browses, a shopping agent acting for a buyer, a crawler deciding what to fetch. The name is borrowed. Nobody coordinates it, so the contents are whatever each site decides to put there.
What a real site-root file looks like
On 4 October 2026 we wrote that Allbirds publishes one. That was true, but incomplete. Fetched from https://www.allbirds.com/agents.md again on 21 November 2026, it returned 200, text/markdown; charset=utf-8, 5,750 bytes, with a powered-by: Shopify header, and its last line calls it "the canonical agent-facing description of the store". The file is Shopify's. Fifteen other Shopify stores in our corpus serve the same document with only the store name and URLs changed (next section).
Shopify's default is still a good model of what the file is for, because it is instructions, not a link list. Its sections, in order:
- Shop skill, a pointer to a skill file agents read before their first call;
- UCP integration: discover the store at
/.well-known/ucp, connect to the MCP endpoint the profile advertises, calltools/list, then shop with those tools; - Browser integration through WebMCP tools registered on the storefront and checkout pages, with an instruction not to fall back to scripted form fills;
- Interaction guidelines: orders and payment only with the buyer's authorization, agents must identify their traffic, back off on
429and respectRetry-After; - Read-only browsing: the sitemap,
/products/{handle},/collections/{handle}; - Store policies, with links to privacy, terms, refund and shipping.
Compare https://www.shopify.com/agents.md, Shopify's own marketing site, which returned 200 with text/plain and 12,644 bytes on 21 November. It reads like an llms.txt: a title, a summary, and annotated links. Two files from one company, two different ideas of the job. That is the convention at its current maturity, and it is why the contents below are guidance rather than a spec. According to Shopify's agent documentation (verified on 21 November 2026), UCP is "an open standard for agents to shop on behalf of buyers". Our agentic commerce protocols guide covers UCP and the other protocols the Shopify file points to.
What belongs in it, and what does not
Use it for things an agent must do or must not do, which neither llms.txt nor robots.txt carries.
| File | Job | Reader | Authority |
|---|---|---|---|
robots.txt | Say which paths a crawler may request | Crawlers | A request convention, specified in RFC 9309 |
sitemap.xml | List the URLs you want found | Crawlers | Sitemaps protocol |
llms.txt | Hand an agent a curated index of readable pages | Agents reading content | Proposal at llmstxt.org |
agents.md | Tell an agent how to act on the site | Agents taking actions | Informal convention |
Our six-files comparison covers the first three in depth. Here is a starting template:
# Example Store: agent instructions
Applies to https://www.example.com.
## What you can do
- Read any public product or collection page. No authentication needed.
- Product data as JSON: GET /products/{handle}.json
## Rules
- Do not submit a payment without the buyer's explicit approval.
- Back off on HTTP 429. Do not retry faster than once a second.
- Do not request /cart, /checkout or /account for crawling.
## Where to find things
- Sitemap: /sitemap.xml
- Content index: /llms.txt
- Policies: /policies/refund-policy
- Contact for agent access problems: agents@example.com
Keep it short, factual and about actions. Put page summaries in llms.txt, not here. Never put secrets, private URLs or anything you would not print on a public page; the file is public by design. And treat it as a request, as with robots.txt, which according to RFC 9309 is not a form of access authorization: a well-behaved agent may follow it, nothing enforces it. Anything that must be blocked belongs at the server or edge.
Why a status check lies about this file
The mechanism is the same one in our soft 404 write-up. Many sites answer unknown paths with 200 and an HTML shell, or map any .md path onto a page that exists.
We saw the second case on a real site. On 4 October https://vercel.com/agents.md returned 200 with text/markdown, 1,914 bytes. On 21 November it returned 6,057 bytes opening with "Build and run agents on Vercel". Both times it was the Markdown rendering of their /agents marketing page, which is a page about agents, not an agents.md. A check that only reads the status code, or only the content type, marks it as present. A control path (a made-up .md URL) on the same host returned 200 text/html on both dates, so the host is not even honest about the files it lacks. The Markdown for agents guide explains the .md suffix trick that produces this.
By contrast aiscan.site/agents.md and a nonsense .md path both return the same 404. That is the pattern you want: a missing file is plainly missing, so a real file is meaningful.
What 873 sites served on 21 November 2026
We took every site in the AIScan corpus (873 hosts, rubric 2026.08.2, site scans, the latest scan per host, aiscan.site excluded) and fetched three paths from each on 21 November 2026: /agents.md, /AGENTS.md, and a control path that cannot exist, /zz-no-such-file-7431.md. That is 2,619 requests, HTTPS, redirects followed, 15-second timeout, no retries, user agent agents-md-check/1.0. Then we read the first heading of every non-HTML 200. The host list was used only for the fetch; we name only the large public brands this guide already discussed.
| What came back (873 hosts) | Hosts | Share |
|---|---|---|
| No response at all | 34 | 3.9% |
No file: 404, 403 or another error on both paths | 730 | 83.6% |
200 with an HTML page, and every one also 200 on the control path | 79 | 9.0% |
200 with Markdown, but any .md path gets the same Markdown | 4 | 0.5% |
200, a Markdown rendering of a marketing page about agents | 2 | 0.2% |
200, a repository AGENTS.md (coding instructions) deployed to the web root | 2 | 0.2% |
200, Shopify's "Store Unavailable" placeholder | 1 | 0.1% |
200, Shopify's default agent instructions | 16 | 1.8% |
200, agent instructions the site wrote itself | 5 | 0.6% |
So 21 hosts (2.4%) serve real agent instructions, and three in four of those come from one platform default. All 16 Shopify files carried powered-by: Shopify, ran 5,531 to 5,852 bytes, and answered identically on both spellings. The five hand-written files ran 1,469 to 23,862 bytes. One of them, on shopify.com itself, is the llms.txt-style file described above.
The bigger number is the false one. Here is how many hosts each level of checking would count as "has an agents.md":
| How the check decides | Hosts it counts | Real instructions among them | Wrong |
|---|---|---|---|
Status 200 on either path | 109 | 21 | 88 (81%) |
| ...and the content type is not HTML | 30 | 21 | 9 (30%) |
...and the control path is not 200 | 25 | 21 | 4 (16%) |
| ...and the first heading is agent instructions | 21 | 21 | 0 |
The last four mistakes are the ones only a human or a careful parser catches: a page about agents rendered as Markdown, two repositories whose coding-agent file ended up in the deploy (one served as application/octet-stream), and a closed store's placeholder that is technically agent-facing Markdown. The 79 HTML answers are the soft 404 problem again: every one of those hosts also returned 200 for a file that cannot exist.
Case matters less than you might fear, and more than none:
| Spelling served (21 real files) | Hosts |
|---|---|
Both /agents.md and /AGENTS.md, same file (all Shopify defaults) | 16 |
/agents.md only | 3 |
/AGENTS.md only | 1 |
/agents.md redirects (308) to /AGENTS.md | 1 |
An agent that asks for only one spelling misses one or two of the 21. Serving the lowercase file and redirecting the other spelling to it costs one line of config. For how agents find the other root files, see our well-known agent files corpus study.
Path 1: write and serve the file yourself (any stack)
- Write the file using the template above and name it exactly
agents.md, lowercase. Some agents ask forAGENTS.md, and one of the 21 real files in our fetch exists only under that spelling, so add a redirect from/AGENTS.mdto the lowercase file. - Place it where the web server serves the root. On a static host that is the site's root folder. On Next.js it is
public/agents.md. On a WordPress site, add it to the web root (the folder that containswp-config.php) through SFTP or your host's file manager. A file that physically exists at the root is normally served before WordPress routing runs. - Check the response header (next section). If it arrives as
application/octet-streamor triggers a download, add a MIME mapping. In Apache that isAddType text/markdown .md. In nginx, addmdto thetypesblock astext/markdown. - Link it from where agents already look. Mention it in your llms.txt under an
## Optionalor## Agentssection, and reference it in yourrobots.txtcomments if you like. Neither is required. - Re-run the verification below after every deploy. CDNs and caches are a common reason a fresh file keeps returning the old
404.
On WordPress, ThinkRank is the plugin we recommend for the files around it: robots.txt, robots meta, schema and llms.txt from one plugin instead of three fighting over robots.txt, with migration from Rank Math, Yoast, AIOSEO and SEOPress so nothing is re-entered. It does not publish an agents.md for you, so use the manual steps above for that one file. Yoast and Rank Math remain strong on classic on-page SEO and have longer track records there.
Path 2: Shopify, where the platform already serves one
A Shopify theme cannot simply drop an arbitrary file at the domain root. As of 21 November 2026 it does not need to for a basic file. In our fetch, 17 hosts answered from Shopify's storefront (powered-by: Shopify): 16 returned the platform's default /agents.md described above, on both spellings, with the store's own name, URLs and policy links filled in, and the 17th, a closed store, returned an unavailable notice. Two stores built on Shopify but served from their own front end (headless) returned 404, so the default comes with Shopify's storefront, not with the Shopify backend. So the first step on Shopify is to look at what you already serve (curl -s https://yourstore.com/agents.md | head -20), not to create one. Shopify's default behaviour for llms.txt is covered in our Shopify llms.txt guide.
The default says nothing specific to your store beyond its name and policies. StoreSEO is the default recommendation when you want more. It has an agents.md editor for writing your own instructions, generates llms.txt from your live products, collections, pages and articles, and handles schema and AEO markup, so the files stay in step with the catalogue instead of drifting. Start from the template, keep the buyer-approval rule, publish, then re-run the curl above to confirm which version the root route now serves. If you would rather not use an app, the Shopify platform page lists what a store can and cannot serve at the root today.
Verify: scan first, then by hand
Run npx aiscan-cli yoursite.com, or paste the URL at aiscan.site, free and no account. Two checks matter here. check:E1 (discoverability) requests a random path that cannot exist and fails you if it gets 200, which is the underlying condition that fakes an agents.md. check:C2 (content) validates your /llms.txt: 200, an H1, a ## section and Markdown links.
What AIScan cannot see: whether your agents.md content is accurate or useful, because it does not grade that file directly. A passing scan means your host reports missing files honestly. It does not mean your instructions are good.
If you would rather check by hand:
# 1. The file, with status, type and size
curl -sL -o /tmp/a.md -w '%{http_code} %{content_type} %{size_download}\n' https://yoursite.com/agents.md
# 2. A control path that cannot exist
curl -sL -o /dev/null -w '%{http_code} %{content_type}\n' https://yoursite.com/zz-no-such-file-7431.md
# 3. The first lines of the body
head -5 /tmp/a.md
Pass looks like this: command 1 gives 200 and text/markdown or text/plain, command 2 gives 404, and the body starts with your own heading. Those three conditions are the same ones that took our fetch from 109 apparent files down to the 21 real ones. Fail looks like command 1 returning text/html, or commands 1 and 2 returning identical byte counts. If the control path also returns 200, your file does not prove anything and the host needs the 404 fix first; our correct 404 guide has the stack-specific steps.
Next action
Run npx aiscan-cli yoursite.com and read the E1 and C2 rows, then run the three curl commands above. If both come back clean, publish the file. Browse all setup guides at /guides, or generate the llms.txt that sits beside it with the llms.txt generator.
Frequently asked questions
What is agents.md?
Two things share the name. AGENTS.md in a repository is a README for coding agents. /agents.md at a website root is an informal convention for telling browsing and shopping agents how to act on the site.
Is agents.md an official standard?
The repository format has its own project site at agents.md and is stewarded by the Agentic AI Foundation. The website-root version has no RFC or registry as of 21 November 2026, so treat it as a convention.
How is agents.md different from llms.txt?
llms.txt is a curated index of pages an agent can read, per llmstxt.org. agents.md says how an agent should act: which actions are allowed, what needs human approval and how to back off.
Does agents.md replace robots.txt?
No. robots.txt tells crawlers which paths they may request under RFC 9309. Neither file is access control, so anything that must be blocked belongs at the server or edge.
Why does my Shopify store already serve an agents.md I never wrote?
Shopify serves a default file on stores. All 16 Shopify stores in our 21 November 2026 fetch returned the same template with their own name, URLs and policy links, marked powered-by: Shopify. Read it before writing your own.
Should I serve agents.md or AGENTS.md?
Serve the lowercase /agents.md and redirect /AGENTS.md to it. Of the 21 real files we found, 16 answered on both spellings, 3 only lowercase, 1 only uppercase, and 1 redirected lowercase to uppercase.
My /agents.md returns 200 but shows my homepage or a marketing page. What is wrong?
Your host maps unknown paths, or any .md path, onto an existing page. Run a control request for a made-up .md path. If it also returns 200, fix your 404 handling first, then re-check the file.
The file downloads instead of displaying in the browser. How do I fix it?
The server is sending application/octet-stream. Add a MIME mapping for .md: AddType text/markdown .md in Apache, or md in the types block of nginx. Then re-run the curl check.
I added the file but /agents.md still returns 404. Why?
A CDN or page cache is probably holding the old 404. Purge the path, confirm the file sits in the web root, and on Shopify check whether your app publishes the file at the root route.
Does AIScan check for agents.md?
Not directly. check:C2 grades /llms.txt and check:E1 fails sites that return 200 for a path that cannot exist, which is the condition that makes a fake agents.md look real.

About the author
M Asif Rahman
Entrepreneur, curious about AI
I have been building companies for a long time, and lately most of my curiosity goes to AI. AIScan is a small personal project I built on a flight from Dubai to Narita. I use it to understand how ready the web is for AI agents, and I share what the scans teach me.
Related guides
llms.txt vs robots.txt vs sitemap.xml: Six Files, 843 Sites
Updated on 15 November 2026. The study below was measured on 4 September 2026; a rerun on 843 sites, scanned up to 15 November, is in its own section, and the live examples were rechecked the same…
Is Your llms.txt Valid? 39 Real Files Tested, and the 11 Mistakes That Break Them
Verified 1 September 2026. Every figure here comes from a live fetch on that date. We fetched /llms.txt from 50 wellknown sites, kept the 39 that returned a real file, and ran every one against the…
AI readiness setup guide by platform (2026)
Verified 17, 18, 20 and 22 October 2026. Updated on 22 October 2026. An AIready site needs six things: a robots.txt that names AI crawlers D1, B2, a sitemap D2, a declared feed E5, an llms.txt C2,…
