All guides

Conventions

AGENTS.md vs CLAUDE.md vs llms.txt

Three Markdown files keep coming up in AI-assisted development, and they're easy to confuse. Two instruct coding agents inside your repo; one helps AI crawlers understand your website. Here's the difference.

Last reviewed: June 2026

AGENTS.md — instructions for coding agents

AGENTS.md is an open convention: a plain-Markdown file at your repo root that tells coding agents what they need to know to work in your project — build and test commands, code style, conventions, and gotchas that would clutter a human README. There's no required schema; it's just standard Markdown.

It started across tools like OpenAI Codex, Cursor, and Jules, and is now stewarded by the Agentic AI Foundation under the Linux Foundation. A wide range of agents read it, which is the point: write it once, and many tools use it.

CLAUDE.md — Claude Code's project memory

CLAUDE.md is Claude Code's native memory file. It's loaded at the start of every session and holds the same kind of context — commands, conventions, architecture, standing instructions — but it's specific to Claude Code, with support for scoped files (org, user, project, local) and @-imports.

Importantly, Claude Code reads CLAUDE.md, not AGENTS.md, with no automatic fallback. The recommended pattern is a CLAUDE.md that imports AGENTS.md (via an @AGENTS.md import or a symlink), so both tools share one source of truth and you add Claude-specific notes below.

llms.txt — a map for AI crawlers

llms.txt is a different animal. Proposed by Jeremy Howard in September 2024, it's a Markdown file at your website root (/llms.txt) that gives LLMs a clean, curated map of your content instead of forcing them to parse messy HTML. The only required element is an H1 with the project name, followed by a summary and lists of links.

A related convention, llms-full.txt, concatenates the full text of those pages into one file for single-fetch ingestion — though that's a popularized extension, not part of the original spec. Adoption is real but contested: no major LLM provider has officially committed to consuming llms.txt, and some, like Google, have publicly dismissed it. Treat it as a low-cost bet, not a settled standard.

At a glance

Side by side

Purpose

AGENTS.md

Instruct coding agents in your repo

CLAUDE.md

Instruct Claude Code in your repo

llms.txt

Help AI crawlers read your website

Audience

AGENTS.md

Any coding agent

CLAUDE.md

Claude Code only

llms.txt

External AI assistants

Location

AGENTS.md

Repo root

CLAUDE.md

Repo + user/org/local scopes

llms.txt

Website root (/llms.txt)

Format

AGENTS.md

Plain Markdown, no schema

CLAUDE.md

Markdown + @imports

llms.txt

H1 + summary + link lists

Governance

AGENTS.md

Agentic AI Foundation (Linux Foundation)

CLAUDE.md

Anthropic

llms.txt

Independent proposal; no standards body

Status

AGENTS.md

Widely adopted across tools

CLAUDE.md

Native to Claude Code

llms.txt

Adopted but contested

Which should you use?

If you want coding agents to follow your project's conventions, start with AGENTS.md, and add a CLAUDE.md that imports it if your team uses Claude Code. Use llms.txt only if you publish a public docs site and want to help AI crawlers — it's a separate, outward-facing concern. Moxie Docs complements all three: it serves your living codebase context to agents over MCP, and can generate an llms.txt for your docs site.

FAQ

Frequently asked questions

Quick answers to the questions developers ask about AGENTS.md vs CLAUDE.md vs llms.txt.

What is the difference between AGENTS.md and CLAUDE.md?+

Both are Markdown files that tell coding agents how to work in your repo. AGENTS.md is a cross-tool open convention read by many agents; CLAUDE.md is specific to Claude Code. Claude Code reads CLAUDE.md and not AGENTS.md, so the common pattern is a CLAUDE.md that imports AGENTS.md.

Is llms.txt the same as AGENTS.md?+

No. AGENTS.md instructs coding agents working inside your repository. llms.txt is a website file that helps external AI crawlers understand your public content. They solve different problems.

Do I need all three files?+

Most teams don't. Start with AGENTS.md for agent instructions, add CLAUDE.md (importing AGENTS.md) if you use Claude Code, and add llms.txt only if you run a public docs site and want to help AI crawlers.

Is llms.txt an official standard?+

No. It's a proposal by Jeremy Howard, not backed by a standards body, and no major LLM provider has officially committed to consuming it. Some have publicly dismissed it. It's a low-cost convention to adopt, but not a guarantee.

Get started

Give your agents real codebase context.

Connect a repository and Moxie Docs generates living documentation and serves it to your agents over MCP. 14-day free trial, no charge today.