Codebase size: how large repos strain AI coding agents
This check counts the repo's files, skipping dotfiles, anything .gitignore excludes, and vendored or build folders such as node_modules, vendor, target, dist and build.
How many repos are a manageable size for AI agents?
Of the 401 repos on the leaderboard, 66 pass in full (16%), 335 pass in part (84%) and 0 fail (0%).
Why do large codebases slow AI coding agents down?
An agent holds only part of a large codebase in context at once. The more files, the more effort goes into finding the right ones, and the easier it is to miss code a change affects.
What codebase size works best for AI agents?
- Full pass: 50 to 499 files.
- 90%: under 50 files.
- 80%: 500 to 1,999 files.
- 50%: 2,000 to 4,999 files.
- 20%: 5,000 files or more.
How checks become a score: methodology.
How do I help AI agents in a large codebase?
Don't shrink a project for a score. Tell the agent where to start instead: name the main entry points in AGENTS.md, and give each monorepo package its own instructions file.
Which AI coding agents weigh codebase size most?
- Devin7% of its score
- OpenHands7% of its score
- Pi7% of its score
- Claude Code7% of its score
- Codex6% of its score
- Aider6% of its score
- Gemini CLI5% of its score
- Kimi Code CLI5% of its score
- Cursor5% of its score
Pass rate by language
- Elixir3 of 7 (43%)
- Haskell3 of 7 (43%)
- JavaScript5 of 15 (33%)
- Go12 of 40 (30%)
- Swift3 of 10 (30%)
- Rust9 of 45 (20%)
- Python11 of 56 (20%)
- Kotlin2 of 12 (17%)
- Zig1 of 6 (17%)
- C++3 of 21 (14%)
- Dart1 of 7 (14%)
- TypeScript10 of 82 (12%)
- Ruby1 of 10 (10%)
- PHP1 of 12 (8%)
- Java0 of 28 (0%)
- C0 of 10 (0%)
- C#0 of 8 (0%)
- Scala0 of 6 (0%)
- Clojure0 of 5 (0%)
Top-scoring repos that pass
- axios/axios88.1JavaScript · 109.3k ★
- aio-libs/aiohttp88.1Python · 16.6k ★
- TypeScript · 115 ★
- TypeScript · 2 ★(this site's own repo)
- psf/requests81.3Python · 54.7k ★
- TypeScript · 91.8k ★
- pallets/flask78.7Python · 75.1k ★
- Go · 21k ★
- hsnice16/tula75.3TypeScript · 0 ★(by this site's author)
- labstack/echo74.8Go · 32.8k ★
- TypeScript · 8.4k ★
- pmndrs/zustand72.8TypeScript · 58.9k ★
Every check, grouped into what to do first: how to make your repo ready for AI coding agents.