AGENTS.md examples from 222 open source repos
222 of 401 leaderboard repos have an AGENTS.md or CLAUDE.md at the root, and 206 are long enough (800+ characters) to pass the AGENTS.md check in full. Each file name links to the file. How that share has grown: State of AGENTS.md adoption.
Most-starred repos with an AGENTS.md or CLAUDE.md
| Repo | File | Length | Language |
|---|---|---|---|
| openclaw/openclaw | AGENTS.md | 19,727 chars | |
| react/react | CLAUDE.md | 358 chars | |
| anomalyco/opencode | AGENTS.md | 17,376 chars | |
| n8n-io/n8n | AGENTS.md | 24,119 chars | |
| firecrawl/firecrawl | AGENTS.md | 1,480 chars | |
| microsoft/vscode | AGENTS.md | 270 chars | |
| Significant-Gravitas/AutoGPT | AGENTS.md | 12,045 chars | |
| ollama/ollama | AGENTS.md | 357 chars | |
| huggingface/transformers | AGENTS.md | 3,262 chars | |
| langflow-ai/langflow | AGENTS.md | 11,708 chars | |
| anthropics/claude-code | CLAUDE.md | 2,217 chars | |
| langchain-ai/langchain | AGENTS.md | 20,351 chars | |
| github/spec-kit | AGENTS.md | 3,746 chars | |
| Comfy-Org/ComfyUI | AGENTS.md | 25,621 chars | |
| vercel/next.js | AGENTS.md | 31,468 chars | |
| excalidraw/excalidraw | AGENTS.md | 372 chars | |
| ggml-org/llama.cpp | AGENTS.md | 11,753 chars | |
| kubernetes/kubernetes | AGENTS.md | 1,884 chars | |
| rustdesk/rustdesk | AGENTS.md | 17,440 chars | |
| nodejs/node | AGENTS.md | 3,082 chars |
Longest and shortest files that pass
Longest
| Repo | File | Length | Language |
|---|---|---|---|
| modelcontextprotocol/servers | AGENTS.md | 51,023 chars | |
| coollabsio/coolify | AGENTS.md | 43,366 chars | |
| cloudflare/vinext | AGENTS.md | 41,280 chars | |
| krakenfx/kraken-cli | AGENTS.md | 39,417 chars | |
| webpack/webpack | AGENTS.md | 34,031 chars |
Shortest
| Repo | File | Length | Language |
|---|---|---|---|
| scylladb/scylladb | AGENTS.md | 865 chars | |
| lit/lit | AGENTS.md | 924 chars | |
| nuxt/nuxt | AGENTS.md | 947 chars | |
| antiwork/gumroad | AGENTS.md | 978 chars | |
| meilisearch/meilisearch | AGENTS.md | 989 chars |
AGENTS.md or CLAUDE.md: which file repos use
AGENTS.md: 204 repos (190 pass in full)CLAUDE.md: 17 repos (15 pass in full).claude/CLAUDE.md: 1 repos (1 pass in full)
The check reads the first of AGENTS.md, CLAUDE.md and AGENT.md with content, so a repo with both counts under AGENTS.md unless its AGENTS.md is empty. Either name passes. Which one to use.
It is the one file most agents load unasked. Claude Code loads CLAUDE.md at the start of every session, or AGENTS.md when there is no CLAUDE.md. Codex reads AGENTS.md before any work, and Cursor, Devin, Kimi Code CLI, OpenHands and Pi read it too. Without it, an agent guesses your build steps and conventions from the code.
The weight each agent gives this check:
- Claude Code1.0
- Kimi Code CLI1.0
- Pi1.0
- Codex0.9
- Cursor0.8
- Gemini CLI0.7
- Devin0.6
- OpenHands0.5
- Aider0.3
The methodology links the docs behind each weight.
Popular repos without one
- flutter/flutter55.0Dart · 181.1k ★
- Python · 165.3k ★
- Svelte · 158k ★
- golang/go29.9Go · 139.8k ★
- openai/codex60.2Rust · 133.5k ★
- shadcn-ui/ui61.9TypeScript · 127.6k ★
- C++ · 119.7k ★
- tauri-apps/tauri65.7Rust · 112.6k ★
By language
- TypeScript63 of 82 (77%)
- Java19 of 28 (68%)
- Kotlin8 of 12 (67%)
- JavaScript9 of 15 (60%)
- Ruby6 of 10 (60%)
- Clojure3 of 5 (60%)
- PHP7 of 12 (58%)
- Go23 of 40 (57%)
- Rust24 of 45 (53%)
- Python29 of 56 (52%)
- Scala3 of 6 (50%)
- Zig3 of 6 (50%)
- C++10 of 21 (48%)
- Swift3 of 10 (30%)
- C2 of 10 (20%)
- Dart1 of 7 (14%)
- Elixir1 of 7 (14%)
- Haskell1 of 7 (14%)
- C#1 of 8 (13%)
By framework, with what to put in the file: Next.js · FastAPI · Django · Rails