Skip to content
Agent Friendly Code

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.

AI agents and their weights (9)

  • Claude Code
    Loads 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
  • Cursor
    Per 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
  • Devin
    Works 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.yaml defines 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/.
    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
  • Codex
    Reads 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 CLI
    Reads AGENTS.md as its native instruction surface (root or .kimi-code/AGENTS.md) per Moonshot's Kimi Code docs, and /init generates 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 dispatch explore sub-agents with isolated contexts, though since 2.3.2 only when asked (a prompt, AGENTS.md or a skill).
    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 CLI
    Loads GEMINI.md from 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 the context.fileName setting. 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
  • Aider
    Auto-lints on every edit by default, and runs the test command after edits once both test-cmd and auto-test are 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's read: — 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
  • OpenHands
    Executes .openhands/setup.sh whenever 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.
    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
  • Pi
    Minimal terminal coding harness. Loads AGENTS.md (or CLAUDE.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.
    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.