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.
By Himanshu Singh · Updated · How we score →
How many repos are a manageable size for AI agents?
Of the 434 repos on the leaderboard, 68 pass in full (16%), 366 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. The more files, the harder it is to find the right ones and the easier 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, or over 20,000 folders.
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: 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?
- OpenHands7% of its score
- Devin7% of its score
- Pi7% of its score
- Claude Code7% of its score
- Kimi Code CLI7% of its score
- Codex6% of its score
- Aider6% of its score
- Gemini CLI5% of its score
- Cursor4% of its score
Pass rate by language
- Elixir3 of 7 (43%)
- Haskell3 of 7 (43%)
- JavaScript5 of 16 (31%)
- Go12 of 41 (29%)
- Swift4 of 14 (29%)
- Kotlin3 of 15 (20%)
- Python11 of 56 (20%)
- Rust9 of 47 (19%)
- Dart2 of 12 (17%)
- Zig1 of 6 (17%)
- C++3 of 21 (14%)
- TypeScript9 of 88 (10%)
- Ruby1 of 11 (9%)
- PHP1 of 14 (7%)
- Java0 of 32 (0%)
- C#0 of 12 (0%)
- C0 of 10 (0%)
- Scala0 of 6 (0%)
- Clojure0 of 5 (0%)
Top-scoring repos that pass
- axios/axios88.2JavaScript · 109.5k ★
- aio-libs/aiohttp88.2Python · 16.6k ★
- TypeScript · 115 ★
- TypeScript · 8.6k ★
- Kotlin · 22.1k ★
- Go · 21.2k ★
- cfug/dio83.2Dart · 12.8k ★
- Doka-NT/Taviraq83.2TypeScript · 1 ★
- TypeScript · 92.3k ★
- pallets/flask80.9Python · 75.3k ★
- psf/requests80.9Python · 54.8k ★
- labstack/echo80.9Go · 32.8k ★
Every check, grouped into what to do first: how to make your repo ready for AI coding agents.