Skip to content
Agent Friendly Code

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?

Pass rate by language

Top-scoring repos that pass

Every check, grouped into what to do first: how to make your repo ready for AI coding agents.