Skip to content
Agent Friendly Code

License files: what AI coding agents may do with your code

This check looks for a license file at the repo root: LICENSE, LICENCE or COPYING (bare, .md or .txt), UNLICENSE, LICENSE-MIT or LICENSE-APACHE, a REUSE LICENSES/ folder with at least one licence text, or one of those files inside a license/ folder.

By Himanshu Singh · Updated · How we score →

How many repos have a license file?

Of the 434 repos on the leaderboard, 426 pass in full (98%), 0 pass in part (0%) and 8 fail (2%). All 120 repos with a written AI contribution policy have a license file. Read on 2026-11-25, 16 of those policies raise the licensing or copyright of AI-generated code, among them psf/requests (new tab), llvm/llvm-project (new tab), obsproject/obs-studio (new tab).

Why does a license file matter for AI coding agents?

A license tells whoever runs an agent whether the code may be copied, modified or redistributed, and on what terms a contribution is accepted. Every profile weighs it low: it doesn't change how well an agent edits code.

What does a license decide when agents copy or contribute code?

  • With no license, default copyright applies: no one may reproduce, distribute or create derivative works from the code. GitHub's terms still let others view and fork a public repo.
  • On GitHub, content added to a repo with a license notice is licensed under the same terms, and whoever adds it states they have the right to. That covers code an agent wrote.
  • The Apache Software Foundation accepts AI output only if the tool's terms let you license it, and any third-party code in it is used with permission, such as under a compatible license.
  • Benchmarks pick repos by license too: SWE-Bench Pro's public and held-out repos carry strong copyleft licenses such as the GPL, to reduce contamination.

426 of 434 leaderboard repos pass this check in full (98%). Sources: docs.github.com/licensing-a-repository (new tab), docs.github.com/github-terms-of-service (new tab), apache.org/generative-tooling.html (new tab), labs.scale.com/swe_bench_pro (new tab).

What counts as a license file?

  • Full pass: one of these at the repo root or in a license/ or licence/ folder.
  • Fail: none. We do not read which license it is.

How checks become a score: methodology.

How do I add a license file to my repo?

Add a LICENSE file at the repo root. A license named only in package.json or the README does not pass.

Which AI coding agents weigh a license file most?

Pass rate by language

Top-scoring repos that pass

Popular repos that fail it

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