AGENTS.md examples from 262 open source repos
262 of 434 leaderboard repos have an AGENTS.md or CLAUDE.md at the root, and 249 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. How long they run: AGENTS.md sizes.
By Himanshu Singh · Updated · How we score →
Examples by language
- TypeScript70 of 88 (80%)
- Kotlin11 of 15 (73%)
- Java23 of 32 (72%)
- PHP9 of 14 (64%)
- Ruby7 of 11 (64%)
- JavaScript10 of 16 (63%)
- Go25 of 41 (61%)
- Clojure3 of 5 (60%)
- C++12 of 21 (57%)
- Rust26 of 47 (55%)
- Python30 of 56 (54%)
- Swift7 of 14 (50%)
- C#6 of 12 (50%)
- Dart6 of 12 (50%)
- Scala3 of 6 (50%)
- Zig3 of 6 (50%)
- Haskell2 of 7 (29%)
- C2 of 10 (20%)
- Elixir1 of 7 (14%)
By framework, with what to put in the file: Next.js · React · FastAPI · Flutter · Android · .NET · Rails · Vue · Laravel · Django · Angular · React Native · Spring Boot · iOS
Most-starred repos with an AGENTS.md or CLAUDE.md
| Repo | File | Length | Stars | Language | Score |
|---|---|---|---|---|---|
| openclaw/ | AGENTS.md | 19,969 chars | 395.5k ★ | TypeScript | 89.5 |
| react/ | CLAUDE.md | 358 chars | 253k ★ | JavaScript | 75.4 |
| anomalyco/ | AGENTS.md | 18,214 chars | 230.5k ★ | TypeScript | 83.2 |
| firecrawl/ | AGENTS.md | 1,480 chars | 214.4k ★ | TypeScript | 56.1 |
| n8n-io/ | AGENTS.md | 25,234 chars | 212.8k ★ | TypeScript | 86.9 |
| microsoft/ | AGENTS.md | 484 chars | 196k ★ | TypeScript | 82.6 |
| ollama/ | AGENTS.md | 357 chars | 188.8k ★ | Go | 82.6 |
| Significant-Gravitas/ | AGENTS.md | 15,611 chars | 188.2k ★ | Python | 86.9 |
| huggingface/ | AGENTS.md | 7,168 chars | 169.5k ★ | Python | 79.5 |
| anthropics/ | CLAUDE.md | 2,217 chars | 157.8k ★ | TypeScript | 57.3 |
| langflow-ai/ | AGENTS.md | 11,708 chars | 157.1k ★ | Python | 83.2 |
| github/ | AGENTS.md | 3,746 chars | 153.3k ★ | Python | 79.0 |
| langchain-ai/ | AGENTS.md | 20,351 chars | 150.3k ★ | Python | 54.3 |
| Comfy-Org/ | AGENTS.md | 25,681 chars | 149.5k ★ | Python | 67.8 |
| vercel/ | AGENTS.md | 30,491 chars | 143.9k ★ | JavaScript | 89.5 |
| ggml-org/ | AGENTS.md | 11,624 chars | 136.9k ★ | C++ | 87.7 |
| excalidraw/ | AGENTS.md | 2,188 chars | 136.7k ★ | TypeScript | 89.6 |
| rustdesk/ | AGENTS.md | 18,154 chars | 132.5k ★ | Rust | 85.8 |
| kubernetes/ | AGENTS.md | 1,884 chars | 129.5k ★ | Go | 65.8 |
| earendil-works/ | AGENTS.md | 15,231 chars | 125.1k ★ | TypeScript | 83.2 |
Longest and shortest files that pass
Longest
| Repo | File | Length | Stars | Language | Score |
|---|---|---|---|---|---|
| modelcontextprotocol/ | AGENTS.md | 53,424 chars | 92.4k ★ | TypeScript | 82.3 |
| coollabsio/ | AGENTS.md | 45,218 chars | 67.5k ★ | PHP | 74.0 |
| cloudflare/ | AGENTS.md | 41,619 chars | 9.4k ★ | TypeScript | 72.5 |
| OrchardCMS/ | AGENTS.md | 39,587 chars | 8.2k ★ | C# | 84.6 |
| krakenfx/ | AGENTS.md | 39,417 chars | 830 ★ | Rust | 73.7 |
Shortest
| Repo | File | Length | Stars | Language | Score |
|---|---|---|---|---|---|
| lit/ | AGENTS.md | 924 chars | 21.9k ★ | TypeScript | 78.9 |
| nuxt/ | AGENTS.md | 947 chars | 61.2k ★ | TypeScript | 85.1 |
| antiwork/ | AGENTS.md | 978 chars | 10.2k ★ | Ruby | 84.6 |
| meilisearch/ | AGENTS.md | 989 chars | 60.1k ★ | Rust | 84.6 |
| python/ | AGENTS.md | 1,006 chars | 78.5k ★ | Python | 83.2 |
AGENTS.md or CLAUDE.md: which file repos use
AGENTS.md: 240 repos (230 pass in full)CLAUDE.md: 18 repos (15 pass in full).claude/CLAUDE.md: 4 repos (4 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 every session, or AGENTS.md when there is no CLAUDE.md. Codex reads AGENTS.md before any work, as do Cursor, Devin, Kimi Code CLI, OpenHands and Pi. Without it, an agent guesses your build steps and conventions from the code.
The weight each agent gives this check:
- Claude Code1.0
- Cursor1.0
- Kimi Code CLI1.0
- Pi1.0
- Devin0.9
- Codex0.9
- Gemini CLI0.7
- OpenHands0.5
- Aider0.3
The methodology links the docs behind each weight.
Popular repos without one
- flutter/flutter72.0Dart · 181.5k ★
- Python · 165.4k ★
- Svelte · 160k ★
- golang/go47.0Go · 140k ★
- openai/codex71.0Rust · 137k ★
- shadcn-ui/ui64.7TypeScript · 129.7k ★
- C++ · 121.3k ★
- openai/whisper58.5Python · 113.9k ★
Languages without a page of their own (20)
| Repo | File | Length | Stars | Language | Score |
|---|---|---|---|---|---|
| neovim/ | AGENTS.md | 241 chars | 104.1k ★ | Vim Script | 80.8 |
| laravel/ | AGENTS.md | 1,445 chars | 85.4k ★ | Blade | 51.5 |
| openai/ | AGENTS.md | 5,672 chars | 77.6k ★ | Jupyter Notebook | 48.1 |
| ghostty-org/ | AGENTS.md | 1,465 chars | 64.7k ★ | Zig | 84.6 |
| penpot/ | AGENTS.md | 5,984 chars | 63k ★ | Clojure | 75.7 |
| metabase/ | AGENTS.md | 10,980 chars | 50.8k ★ | Clojure | 85.9 |
| JuliaLang/ | AGENTS.md | 6,714 chars | 49.3k ★ | Julia | 78.5 |
| logseq/ | AGENTS.md | 5,125 chars | 45.8k ★ | Clojure | 83.8 |
| apache/ | AGENTS.md | 7,077 chars | 44.7k ★ | Scala | 77.0 |
| lightpanda-io/ | AGENTS.md | 2,533 chars | 42.8k ★ | Zig | 84.6 |
| koalaman/ | .claude/CLAUDE.md | 4,027 chars | 40.4k ★ | Haskell | 69.8 |
| elixir-lang/ | AGENTS.md | 9,853 chars | 26.8k ★ | Elixir | 64.6 |
| simplex-chat/ | CLAUDE.md | 128 chars | 19.8k ★ | Haskell | 75.9 |
| meta/ | AGENTS.md | 7,131 chars | 15.8k ★ | OCaml | 75.5 |
| yugabyte/ | AGENTS.md | 6,739 chars | 10.7k ★ | C | 76.0 |
| delta-io/ | AGENTS.md | 3,402 chars | 9.1k ★ | Scala | 84.6 |
| scala/ | AGENTS.md | 3,469 chars | 6.3k ★ | Scala | 78.2 |
| roc-lang/ | AGENTS.md | 5,231 chars | 6.3k ★ | Zig | 78.2 |
| ocaml/ | AGENTS.md | 8,766 chars | 1.9k ★ | OCaml | 84.6 |
| wireshark/ | AGENTS.md | 3,467 chars | 1.7k ★ | C | 78.2 |
Each language page above lists its own files. All 262, with length, stars and score: agents-md-examples.csv.