Swift AGENTS.md examples from 7 open source repos
7 of 14 Swift leaderboard repos have an AGENTS.md or CLAUDE.md at the root, and 7 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 Swift AGENTS.md to start from
vapor/vapor (26.2k ★, scores 85): read AGENTS.md on GitHub (new tab), 3,122 characters, checked 22 Nov 2026. Copy it into your repo, then swap its commands and paths for yours:
curl -fsSL https://raw.githubusercontent.com/vapor/vapor/main/AGENTS.md -o AGENTS.md- About 3.0 KiB: inside the 16 KiB Devin reads and the 32 KiB Codex reads
Picked as the highest-scoring Swift repo with a 1.5–16 KiB file, among the better-starred half.
Swift repos with an AGENTS.md or CLAUDE.md (7)
| Repo | File | Length | Stars | Score |
|---|---|---|---|---|
| vapor/ | AGENTS.md | 3,122 chars | 26.2k ★ | 84.5 |
| onevcat/ | AGENTS.md | 3,974 chars | 24.4k ★ | 74.5 |
| mozilla-mobile/ | AGENTS.md | 1,694 chars | 13.1k ★ | 78.2 |
| farzaa/ | AGENTS.md | 13,014 chars | 8.1k ★ | 56.6 |
| wordpress-mobile/ | AGENTS.md | 6,191 chars | 3.9k ★ | 84.6 |
| home-assistant/ | AGENTS.md | 8,078 chars | 2.4k ★ | 76.5 |
| gnachman/ | AGENTS.md | 3,199 chars | 1.5k ★ | 64.7 |
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 Swift repos: all 14, ranked on every check
- AGENTS.md vs CLAUDE.md: which file to write
- iOS: Swift frameworks, with what to put in the file