How Agent Friendly Code scores repos
What we check, the formula, and what we can't check yet.
Weights last changed: 2026-11-27 (v0.9.6, Cursor and Devin AGENTS.md and Kimi Code CLI size reweighted).
Who builds it, and how the site is made: About.
Weights from docs, not yet tested
Scores come from file checks: whether a file exists, and how long it is. No agent is run. Each agent's weights follow its own docs (Sources, under each agent) but aren't yet measured against real runs; that is v1.0.0 on the roadmap. Treat scores as a guide, not a verdict.
Score formula
per-agent score = Σ(check.pass × agent.weight[check]) / Σ(agent.weight) × 100 overall = mean(per-agent scores) improvement = closing a gap unlocks (1 - pass) × weight / Σweight × 100 points
check.pass is a number from 0 to 1, so a check can pass in part: a short README gets 0.3, a long one 1.0.
Checks (17)
File names can be any case: readme.md and README.MD both count as a README.
- AGENTS.md / CLAUDE.mdagents_mdAn instructions file for agents, with real content.Improve: Add an AGENTS.md covering project goals, layout, setup commands, and conventions. Aim for 800+ chars of real guidance (not boilerplate).
- Cursor rules (.cursor/rules)cursor_rulesCursor's instructions:
.cursor/rules/*.mdc, or the older.cursorrules.Improve: Add.cursor/rules/*.mdcfiles describing how Cursor should work in this repo (architecture, conventions, naming). Cursor's current docs no longer mention the single.cursorrulesfile. - GEMINI.mdgemini_mdGemini CLI's instructions file, sent with every prompt.Improve: Add a GEMINI.md at the repo root covering project goals, layout, setup commands, and conventions. Aim for 800+ chars of real guidance (not boilerplate).
- .openhands/setup.shopenhands_setup
.openhands/setup.sh, which OpenHands runs at session start to set up the dev environment.Improve: Add a.openhands/setup.shthat installs dependencies and prepares the project so OpenHands can run tests and lints out of the box. - .aider.conf.ymlaider_conf
.aider.conf.yml: Aider's repo config — test and lint commands, and the files it reads.Improve: Add a.aider.conf.ymlat the repo root withtest-cmd,lint-cmdandauto-test: true, and list AGENTS.md underread:. - Skills (.agents/skills)agent_skillsTask-specific instructions in
.agents/skills/<name>/SKILL.md, which agents load when a task matches.Improve: Add.agents/skills/<name>/SKILL.mdfor the workflows an agent repeats here (running one test, cutting a release, adding a migration), each with anameanddescriptionin its frontmatter. - READMEreadmeA README with enough detail for the agent to learn the project.Improve: Expand your README to cover what the project does, how to install, the common commands, and the high-level layout.
- Test suitetestsTests the agent can run to check its changes.Improve: Add a tests/ (or test/, __tests__/, spec/) directory with runnable tests. Document how to run them in AGENTS.md.
- A CI pipeline the agent can read and run locally.Improve: Add a CI workflow (e.g. .github/workflows/ci.yml or .gitlab-ci.yml) that runs tests + linter on every PR.
- A linter, so the agent gets style feedback right away instead of guessing.Improve: Configure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint, .NET rules in .editorconfig) and commit the config.
- Dependency manifestdeps_manifestA dependency manifest, so the agent can reproduce the environment.Improve: Commit a proper manifest (package.json, pyproject.toml, Cargo.toml, go.mod, etc.) plus a lockfile.
- Reproducible dev envdev_envOne-command setup the agent can run: Makefile, devcontainer, Nix or Docker.Improve: Add a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.
- Type configurationtype_configStatic types let the agent check call sites without running code.Improve: Add a type config (tsconfig.json for JS/TS, mypy.ini or pyrightconfig.json for Python, PHPStan for PHP). Compiled languages such as Rust, Go, Java, C#, Swift and C++ count once their build file is committed.
- License filelicenseA license, so it's clear what may be done with the code.Improve: Add a LICENSE (or COPYING) file — MIT, Apache-2.0, BSD, GPL, etc. — at the repo root.
- CONTRIBUTING guidecontributingA contribution workflow the agent can follow.Improve: Add CONTRIBUTING.md describing branch naming, commit style, test commands, and the PR process.
- Pre-commit / git hookspre_commitPre-commit hooks catch problems before the agent waits on CI.Improve: Set up pre-commit (.pre-commit-config.yaml), husky, or lefthook to run format+lint on every commit.
- Manageable sizesizeVery large repos strain the agent's context window.Improve: If possible, split into smaller modules or carve out a focused entry path. Document where to start in AGENTS.md.
AI agents and their weights (9)
- Claude CodeLoads CLAUDE.md (or
.claude/CLAUDE.md) at the start of every session per Anthropic's memory docs, and AGENTS.md only when there is no CLAUDE.md, so the instructions file and a fast test loop carry the most weight. Its skills live in.claude/skills/, not.agents/skills/.Weights
tests 1.00 agents_md 1.00 dev_env 0.90 readme 0.70 deps_manifest 0.70 linter 0.60 type_config 0.60 ci 0.50 size 0.50 pre_commit 0.40 contributing 0.40 license 0.30 gemini_md 0.00 aider_conf 0.00 agent_skills 0.00 cursor_rules 0.00 openhands_setup 0.00
- CursorPer Cursor's Rules docs, reads
.cursor/rules/*.mdc(subfolders included) and AGENTS.md as its repo instructions, and loads skills from.agents/skills/. Type config and a clear README help its codebase search but aren't the docs-cited signal.Weights
readme 1.00 agents_md 1.00 type_config 1.00 cursor_rules 1.00 linter 0.80 deps_manifest 0.80 tests 0.70 dev_env 0.50 ci 0.40 size 0.40 agent_skills 0.40 license 0.30 pre_commit 0.30 contributing 0.30 gemini_md 0.00 aider_conf 0.00 openhands_setup 0.00
- DevinWorks in a Linux virtual machine booted from a snapshot that already has the repo cloned and its tools, dependencies, environment variables and secrets set up, then installs, lints, builds and tests like any developer, per Cognition's environment docs; a committed
.devin/blueprint.yamldefines that environment. CI config files alone aren't what the docs ask for — a runnable dev environment is. Reads AGENTS.md before it starts coding, up to 16 KiB of each file automatically, per its AGENTS.md docs. Pulls Cursor rule files into its Knowledge and discovers skills in.agents/skills/.Sources:docs.devin.ai/environment (new tab)docs.devin.ai/agents-md (new tab)docs.devin.ai/knowledge-onboarding (new tab)docs.devin.ai/skills (new tab)Weights
dev_env 1.00 tests 0.90 agents_md 0.90 deps_manifest 0.90 ci 0.70 readme 0.70 size 0.60 linter 0.50 pre_commit 0.50 type_config 0.50 contributing 0.50 agent_skills 0.40 license 0.30 cursor_rules 0.30 gemini_md 0.00 aider_conf 0.00 openhands_setup 0.00
- CodexReads AGENTS.md before doing any work per OpenAI's Codex docs: one per directory from the repo root down to the working directory, where AGENTS.override.md replaces AGENTS.md, up to 32 KiB combined. Skills load from
.agents/skills/.Weights
agents_md 0.90 tests 0.80 readme 0.80 ci 0.70 dev_env 0.70 type_config 0.70 deps_manifest 0.70 linter 0.60 size 0.50 agent_skills 0.40 pre_commit 0.40 contributing 0.40 license 0.30 gemini_md 0.00 aider_conf 0.00 cursor_rules 0.00 openhands_setup 0.00
- Kimi Code CLIReads AGENTS.md as its native instruction surface (root or
.kimi-code/AGENTS.md) per Moonshot's Kimi Code docs, and/initgenerates one. Its docs name no CLAUDE.md fallback, but the check passes on CLAUDE.md too. Skills load from.agents/skills/. Runs shell commands step-by-step under approval modes rather than in a sandbox VM, and can dispatchexploresub-agents with isolated contexts, though since 2.3.2 only when asked (a prompt, AGENTS.md or a skill).Sources:github.com/agents.md (new tab)github.com/slash-commands.md (new tab)github.com/skills.md (new tab)Weights
agents_md 1.00 tests 0.90 readme 0.70 dev_env 0.70 deps_manifest 0.70 linter 0.60 type_config 0.60 size 0.50 ci 0.40 agent_skills 0.40 pre_commit 0.40 contributing 0.40 license 0.30 gemini_md 0.00 aider_conf 0.00 cursor_rules 0.00 openhands_setup 0.00
- Gemini CLILoads
GEMINI.mdfrom the global file and from the workspace and its parent directories and sends it with every prompt, per Gemini CLI's docs; one in a subdirectory loads when a tool first touches that directory. AGENTS.md is read only when listed in thecontext.fileNamesetting. Skills load from.agents/skills/.Weights
gemini_md 1.00 tests 0.90 readme 0.90 type_config 0.90 deps_manifest 0.80 linter 0.70 dev_env 0.70 agents_md 0.70 ci 0.60 size 0.50 agent_skills 0.40 pre_commit 0.40 contributing 0.40 license 0.30 aider_conf 0.00 cursor_rules 0.00 openhands_setup 0.00
- AiderAuto-lints on every edit by default, and runs the test command after edits once both
test-cmdandauto-testare set (per Aider's lint/test docs). It doesn't natively read AGENTS.md or CONVENTIONS.md — those load only when wired via.aider.conf.yml'sread:— so the config file, a green linter, and a declared test command are what translate into successful commits.Weights
tests 1.00 linter 1.00 aider_conf 1.00 deps_manifest 0.70 readme 0.60 dev_env 0.50 type_config 0.50 size 0.40 ci 0.30 agents_md 0.30 pre_commit 0.30 contributing 0.30 license 0.20 gemini_md 0.00 agent_skills 0.00 cursor_rules 0.00 openhands_setup 0.00
- OpenHandsExecutes
.openhands/setup.shwhenever it starts work on a repo, per OpenHands' repo-customization docs; its backend runs on the user's machine by default, or in Docker, a VM or OpenHands Cloud. A root AGENTS.md goes into its system prompt in full; skills live in.agents/skills/, with the legacy.openhands/skills/and.openhands/microagents/still loaded.Sources:docs.openhands.dev/repository (new tab)docs.openhands.dev/skills (new tab)docs.openhands.dev/overview (new tab)Weights
ci 1.00 dev_env 1.00 deps_manifest 1.00 openhands_setup 1.00 tests 0.90 size 0.70 readme 0.70 contributing 0.70 linter 0.60 pre_commit 0.60 agents_md 0.50 type_config 0.50 license 0.40 agent_skills 0.40 gemini_md 0.00 aider_conf 0.00 cursor_rules 0.00
- PiMinimal terminal coding harness. Loads
AGENTS.md(orCLAUDE.md) from its agent directory, the working directory and its parent directories, per Pi's configuration docs, and skills from.agents/skills/. It has no built-in sandbox; isolation is left to a container the user runs it in.Sources:github.com/configuration.md (new tab)github.com/skills.md (new tab)github.com/security.md (new tab)Weights
agents_md 1.00 tests 0.90 linter 0.80 readme 0.70 deps_manifest 0.70 dev_env 0.60 type_config 0.60 size 0.50 ci 0.40 agent_skills 0.40 pre_commit 0.40 contributing 0.30 license 0.20 gemini_md 0.00 aider_conf 0.00 cursor_rules 0.00 openhands_setup 0.00
What we don't check yet
- Whether tests pass. We only check that they exist.
- Whether the linter runs without errors.
- Whether the dev setup (Makefile, Dockerfile) works end to end.
- Commit history, such as activity or contributor count. Clones are
--depth 1 --single-branch, and history says more about a repo's health than about how agents work in it. - How well agents do on the repo. That comes with the v1.0.0 benchmark.
Questions
- How is the score worked out?
- We fetch the latest version of each repo (no history) and run seventeen checks. Twelve matter to every agent: AGENTS.md / CLAUDE.md, CI, tests, README, linter, type config, license, contributing guide, a reproducible dev setup, pre-commit hooks, a dependency list, and codebase size. Four are files mainly one agent reads:
.cursor/rules/*.mdc,GEMINI.md,.openhands/setup.sh, and.aider.conf.yml. One, agent skills in.agents/skills/, counts for the seven agents that load them. Each agent's score is the weighted share of checks passed; the overall score is the average across agents. - Why give each agent its own score?
- Each agent's docs name different files. Claude Code loads CLAUDE.md every session and Codex reads AGENTS.md before any work, so that file counts most for them. Devin works on its own machine, so a runnable dev setup counts more than CI. Cursor reads
.cursor/rules/and AGENTS.md. One number would hide that a repo can suit one agent and not another. - Which AI coding agents do you score for?
- Claude Code, Cursor, Devin, Codex, Kimi Code CLI, Gemini CLI, Aider, OpenHands, and Pi. Each has its own weights, in lib/scoring/weights.ts.
- Does this test how well agents actually work?
- No. Scores come from file checks; no agent is run. The weights follow each agent's docs but aren't yet measured against real runs, so treat scores as a guide.
- How can I raise my repo's score?
- Add an AGENTS.md or CLAUDE.md that explains the project, runnable tests, CI, a detailed README, linter and type config, a license, a CONTRIBUTING guide, and a one-command dev setup (devcontainer, Dockerfile or Makefile). Each repo's page lists the fixes that help each agent most.
- How do I stop pull requests from lowering my score?
- Install the GitHub Action (hsnice16/agent-friendly-action). In your CI it scores each pull request against its target branch and posts one comment with what changed. An AGENTS_BADGE_TOKEN secret turns it on; the workflow to copy is on /action.
- What is AGENTS.md or CLAUDE.md?
- A markdown file at the repo root that tells an AI coding agent what the project is, how to build and test it, and which rules to follow. It is the top check for Pi and Kimi Code CLI, ties with tests for Claude Code, and helps every other agent.
- How often are scores updated?
- Daily. A change to the repo list applies at the next run; a change to the scoring rules is rescored when it ships.
- Which code hosts are supported?
- GitHub, GitLab and Bitbucket on the leaderboard, all scored the same way. Live Score takes public GitHub repos for now.