Skip to content
Agent Friendly Code

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

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

Most-starred repos with an AGENTS.md or CLAUDE.md
RepoFileLengthStarsLanguageScore
openclaw/openclawAGENTS.md 19,969 chars395.5k ★TypeScript89.5
react/reactCLAUDE.md 358 chars253k ★JavaScript75.4
anomalyco/opencodeAGENTS.md 18,214 chars230.5k ★TypeScript83.2
firecrawl/firecrawlAGENTS.md 1,480 chars214.4k ★TypeScript56.1
n8n-io/n8nAGENTS.md 25,234 chars212.8k ★TypeScript86.9
microsoft/vscodeAGENTS.md 484 chars196k ★TypeScript82.6
ollama/ollamaAGENTS.md 357 chars188.8k ★Go82.6
Significant-Gravitas/AutoGPTAGENTS.md 15,611 chars188.2k ★Python86.9
huggingface/transformersAGENTS.md 7,168 chars169.5k ★Python79.5
anthropics/claude-codeCLAUDE.md 2,217 chars157.8k ★TypeScript57.3
langflow-ai/langflowAGENTS.md 11,708 chars157.1k ★Python83.2
github/spec-kitAGENTS.md 3,746 chars153.3k ★Python79.0
langchain-ai/langchainAGENTS.md 20,351 chars150.3k ★Python54.3
Comfy-Org/ComfyUIAGENTS.md 25,681 chars149.5k ★Python67.8
vercel/next.jsAGENTS.md 30,491 chars143.9k ★JavaScript89.5
ggml-org/llama.cppAGENTS.md 11,624 chars136.9k ★C++87.7
excalidraw/excalidrawAGENTS.md 2,188 chars136.7k ★TypeScript89.6
rustdesk/rustdeskAGENTS.md 18,154 chars132.5k ★Rust85.8
kubernetes/kubernetesAGENTS.md 1,884 chars129.5k ★Go65.8
earendil-works/piAGENTS.md 15,231 chars125.1k ★TypeScript83.2

Longest and shortest files that pass

Longest

Longest AGENTS.md or CLAUDE.md files that pass
RepoFileLengthStarsLanguageScore
modelcontextprotocol/serversAGENTS.md 53,424 chars92.4k ★TypeScript82.3
coollabsio/coolifyAGENTS.md 45,218 chars67.5k ★PHP74.0
cloudflare/vinextAGENTS.md 41,619 chars9.4k ★TypeScript72.5
OrchardCMS/OrchardCoreAGENTS.md 39,587 chars8.2k ★C#84.6
krakenfx/kraken-cliAGENTS.md 39,417 chars830 ★Rust73.7

Shortest

Shortest AGENTS.md or CLAUDE.md files that pass
RepoFileLengthStarsLanguageScore
lit/litAGENTS.md 924 chars21.9k ★TypeScript78.9
nuxt/nuxtAGENTS.md 947 chars61.2k ★TypeScript85.1
antiwork/gumroadAGENTS.md 978 chars10.2k ★Ruby84.6
meilisearch/meilisearchAGENTS.md 989 chars60.1k ★Rust84.6
python/cpythonAGENTS.md 1,006 chars78.5k ★Python83.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:

The methodology links the docs behind each weight.

Popular repos without one

Languages without a page of their own (20)

Repos with an AGENTS.md or CLAUDE.md in languages with fewer than 5 files
RepoFileLengthStarsLanguageScore
neovim/neovimAGENTS.md 241 chars104.1k ★Vim Script80.8
laravel/laravelAGENTS.md 1,445 chars85.4k ★Blade51.5
openai/openai-cookbookAGENTS.md 5,672 chars77.6k ★Jupyter Notebook48.1
ghostty-org/ghosttyAGENTS.md 1,465 chars64.7k ★Zig84.6
penpot/penpotAGENTS.md 5,984 chars63k ★Clojure75.7
metabase/metabaseAGENTS.md 10,980 chars50.8k ★Clojure85.9
JuliaLang/juliaAGENTS.md 6,714 chars49.3k ★Julia78.5
logseq/logseqAGENTS.md 5,125 chars45.8k ★Clojure83.8
apache/sparkAGENTS.md 7,077 chars44.7k ★Scala77.0
lightpanda-io/browserAGENTS.md 2,533 chars42.8k ★Zig84.6
koalaman/shellcheck.claude/CLAUDE.md 4,027 chars40.4k ★Haskell69.8
elixir-lang/elixirAGENTS.md 9,853 chars26.8k ★Elixir64.6
simplex-chat/simplex-chatCLAUDE.md 128 chars19.8k ★Haskell75.9
meta/inferAGENTS.md 7,131 chars15.8k ★OCaml75.5
yugabyte/yugabyte-dbAGENTS.md 6,739 chars10.7k ★C76.0
delta-io/deltaAGENTS.md 3,402 chars9.1k ★Scala84.6
scala/scala3AGENTS.md 3,469 chars6.3k ★Scala78.2
roc-lang/rocAGENTS.md 5,231 chars6.3k ★Zig78.2
ocaml/duneAGENTS.md 8,766 chars1.9k ★OCaml84.6
wireshark/wiresharkAGENTS.md 3,467 chars1.7k ★C78.2

Each language page above lists its own files. All 262, with length, stars and score: agents-md-examples.csv.