Agent-ready codebase checklist: 17 checks and their pass rates
An agent-ready codebase is one where an AI coding agent can learn the project and check its own work from the files alone: an AGENTS.md or CLAUDE.md that explains it, a README, tests it can run, CI and linter config that show what a change must pass, a reproducible dev setup, and a size it can read.
Every score here comes from these 17 file checks. Each has a page: what it looks for, why agents need it, how to pass it, and how many of the 401 leaderboard repos do. The methodology covers the weights, and the guide groups the checks into what to do.
Start with these 3
The most weight summed across all 9 agents, so each fix moves every agent's score:
- Test suite · summed weight 8.0 · 52% of repos pass
- Dependency manifest · summed weight 7.0 · 92% of repos pass
- AGENTS.md / CLAUDE.md · summed weight 6.8 · 51% of repos pass
Check your repo now to see which of the 17 it passes, or read real AGENTS.md examples from popular repos.
- AGENTS.md / CLAUDE.md51% pass
An instructions file for agents, with real content.
- Cursor rules (.cursor/rules)4% pass
Cursor's instructions:
.cursor/rules/*.mdc, or the older.cursorrules. - GEMINI.md1% pass
Gemini CLI's instructions file, sent with every prompt.
- .openhands/setup.sh0.5% pass
.openhands/setup.sh, which OpenHands runs at session start to set up the dev environment. - .aider.conf.yml0.2% pass
.aider.conf.yml: Aider's repo config — test and lint commands, and the files it reads. - Skills (.agents/skills)18% pass
Task-specific instructions in
.agents/skills/<name>/SKILL.md, which agents load when a task matches. - README96% pass
A README with enough detail for the agent to learn the project.
- Test suite52% pass
Tests the agent can run to check its changes.
- CI configuration96% pass
A CI pipeline the agent can read and run locally.
- Linter / formatter config65% pass
A linter, so the agent gets style feedback right away instead of guessing.
- Dependency manifest92% pass
A dependency manifest, so the agent can reproduce the environment.
- Reproducible dev env22% pass
One-command setup the agent can run: Makefile, devcontainer, Nix or Docker.
- Type configuration68% pass
Static types let the agent check call sites without running code.
- License file92% pass
A license, so it's clear what may be done with the code.
- CONTRIBUTING guide86% pass
A contribution workflow the agent can follow.
- Pre-commit / git hooks29% pass
Pre-commit hooks catch problems before the agent waits on CI.
- Manageable size16% pass
Very large repos strain the agent's context window.