What is the difference between llms.txt and AGENTS.md?
They answer different questions for different readers.
- Question it answers
- llms.txt: What is this website, and where is the useful content?
- AGENTS.md: How do I work on this codebase?
- Where it lives
- llms.txt: On the website, at yoursite.com/llms.txt
- AGENTS.md: In the code repository, usually at the top level
- Who reads it
- llms.txt: AI tools and agents visiting the site
- AGENTS.md: Coding agents working in the repository
- What it holds
- llms.txt: A title, a summary and lists of links
- AGENTS.md: Setup commands, how to run tests, code style, conventions
- Format
- llms.txt: Markdown with a fixed order of sections
- AGENTS.md: Plain Markdown, any headings you like
- Seen by the public
- llms.txt: Yes, anyone can open it
- AGENTS.md: Only if the repository is public
| Item | llms.txt | AGENTS.md |
|---|---|---|
| Question it answers | What is this website, and where is the useful content? | How do I work on this codebase? |
| Where it lives | On the website, at yoursite.com/llms.txt | In the code repository, usually at the top level |
| Who reads it | AI tools and agents visiting the site | Coding agents working in the repository |
| What it holds | A title, a summary and lists of links | Setup commands, how to run tests, code style, conventions |
| Format | Markdown with a fixed order of sections | Plain Markdown, any headings you like |
| Seen by the public | Yes, anyone can open it | Only if the repository is public |
What is AGENTS.md?
It is a README written for coding agents.
The AGENTS.md site describes it as a simple, open format for guiding coding agents: a dedicated, predictable place for the context and instructions an agent needs to work on a project. A README is for people, with a quick start and a description. AGENTS.md holds the detail an agent needs and a person may not: the install command, how to start the dev server, how to run the tests, and the house rules for code style.
The site says the format is used by more than 60,000 open-source projects and is read by a long list of coding tools, including Codex from OpenAI, Jules and Gemini CLI from Google, Cursor, VS Code, Zed, Aider and the GitHub Copilot coding agent.
A small one looks like this:
# AGENTS.md
## Setup commands
- Install deps: pnpm install
- Start dev server: pnpm dev
- Run tests: pnpm test
## Code style
- TypeScript strict mode
- Single quotes, no semicolonsWhat is llms.txt?
It is a short index of a website for AI tools.
The llms.txt proposal asks for a Markdown file with the site's name as a heading, a short summary, and sections of links to the pages that matter, ideally to clean Markdown versions of them. An agent reads the index, then follows the links it needs. It is used most for software documentation, and it works for any site that wants to give agents a guided path in. More in what llms.txt is and whether you need one.
Which one does my business need?
If you have a website, llms.txt. If you have code that agents work on, AGENTS.md as well.
- A company or store website with no public code: llms.txt only. AGENTS.md has nothing to describe.
- A software company with documentation: llms.txt on the docs site, so coding agents can find your API reference, and AGENTS.md in each repository, so agents can work on the code.
- An open-source project: both, for the same reasons.
Neither file decides whether AI assistants name your company in their answers. That depends on whether their search crawlers can read your pages, which is set in robots.txt, and on what your pages and other sites say about you.
Can a website have an agents.md too?
Yes, and some platforms now publish one for every store, which is where the two names start to blur.
On 18 November 2026 we fetched three addresses on a store hosted on Shopify (Kreo's, the company in our case study): /llms.txt, /agents.md and /llms-full.txt. All three returned nearly the same Markdown file of about 5.7 KB, headed "Agent Instructions". It does not describe what the store sells. It tells a shopping agent how to act: how to discover the store's tools, how to build a cart and reach checkout, to act only with the buyer's authorisation, and to slow down when the store returns a rate-limit response. A second store on the same platform returned a file of the same shape.
So on those stores "agents.md" is not the coding-agent file described at agents.md. It is a set of instructions for agents that shop. And the file at /llms.txt is not an index of the site in the llms.txt format. If your store runs on a hosted platform, open yourstore.com/llms.txt and see what is being served in your name before assuming you have one that describes your business.
Do they ever overlap?
Only at the edges.
A documentation site might mention its llms.txt inside AGENTS.md, so a coding agent knows where the reference lives. That is a pointer, not duplication. Keep the content separate: site content and links in llms.txt, working instructions for the code in AGENTS.md.
How do I create each one?
Both are plain text files you can write by hand.
- llms.txt: use the free Kortex llms.txt generator, which writes the file in the proposal's format and checks an existing one.
- AGENTS.md: create the file at the top of your repository and write down what you would tell a new engineer on day one: how to install, run, test, and what not to touch.
To see how AI assistants describe your company today, run the free Kortex audit. For the other comparison people ask about, see llms.txt vs robots.txt.