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/orlicence/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?
- OpenHands4% of its score
- Claude Code4% of its score
- Kimi Code CLI4% of its score
- Codex4% of its score
- Devin3% of its score
- Cursor3% of its score
- Gemini CLI3% of its score
- Aider3% of its score
- Pi3% of its score
Pass rate by language
- Python56 of 56 (100%)
- Rust47 of 47 (100%)
- Go41 of 41 (100%)
- Java32 of 32 (100%)
- JavaScript16 of 16 (100%)
- PHP14 of 14 (100%)
- Swift14 of 14 (100%)
- C#12 of 12 (100%)
- Dart12 of 12 (100%)
- Elixir7 of 7 (100%)
- Haskell7 of 7 (100%)
- Scala6 of 6 (100%)
- Zig6 of 6 (100%)
- Clojure5 of 5 (100%)
- TypeScript86 of 88 (98%)
- Kotlin14 of 15 (93%)
- Ruby10 of 11 (91%)
- C++19 of 21 (90%)
- C9 of 10 (90%)
Top-scoring repos that pass
- Ruby · 48.1k ★
- Rust · 6.8k ★
- PostHog/posthog91.2Python · 41.2k ★
- novuhq/novu91.2TypeScript · 40.4k ★
- jdx/mise91.2Rust · 36.6k ★
- TypeScript · 136.4k ★
- Python · 68.4k ★
- TypeScript · 395.3k ★
- vercel/next.js89.5JavaScript · 143.8k ★
- astral-sh/ruff89.5Rust · 51.6k ★
- apache/airflow89.5Python · 47.7k ★
- getsentry/sentry89.5Python · 45.9k ★
Popular repos that fail it
- laravel/laravel51.5Blade · 85.5k ★
- rails/rails71.3Ruby · 59.2k ★
- TypeScript · 36.7k ★
- C · 23k ★
- C++ · 15.8k ★
- C++ · 12.7k ★
- TypeScript · 5.5k ★
- Kotlin · 131 ★
Every check, grouped into what to do first: how to make your repo ready for AI coding agents.