C# AGENTS.md examples from 6 open source repos
6 of 12 C# leaderboard repos have an AGENTS.md or CLAUDE.md at the root, and 6 are long enough to pass the AGENTS.md check in full. Most-starred first; each file name links to the file.
By Himanshu Singh · Updated · How we score →
A real C# AGENTS.md to start from
dotnet/maui (23.3k ★, scores 81): read AGENTS.md on GitHub (new tab), 1,512 characters, checked 22 Nov 2026. Copy it into your repo, then swap its commands and paths for yours:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/AGENTS.md -o AGENTS.md- About 1.5 KiB: inside the 16 KiB Devin reads and the 32 KiB Codex reads
- 1 more AGENTS.md file in subfolders, for the code below them
Picked as the highest-scoring C# repo with a 1.5–16 KiB file, among the better-starred half.
C# repos with an AGENTS.md or CLAUDE.md (6)
| Repo | File | Length | Stars | Score |
|---|---|---|---|---|
| files-community/ | AGENTS.md | 22,904 chars | 46.8k ★ | 71.5 |
| dotnet/ | AGENTS.md | 1,512 chars | 23.3k ★ | 80.9 |
| bitwarden/ | .claude/CLAUDE.md | 3,130 chars | 20.7k ★ | 80.9 |
| Sonarr/ | AGENTS.md | 2,777 chars | 17.8k ★ | 80.0 |
| MudBlazor/ | AGENTS.md | 33,922 chars | 10.7k ★ | 73.7 |
| OrchardCMS/ | AGENTS.md | 35,233 chars | 8.2k ★ | 84.6 |
More examples
- Every language: 262 files by language and framework, the longest and shortest that pass, and a CSV of all of them
- Most agent-friendly C# repos: all 12, ranked on every check
- AGENTS.md vs CLAUDE.md: which file to write
- .NET: C# frameworks, with what to put in the file