Type configuration: static types help AI coding agents read code
This check asks whether the code is statically typed: a type-checker config for JavaScript, TypeScript or Python, or a language that is typed by design.
How many repos pass
Of the 371 repos on the leaderboard, 247 pass in full (67%), 0 pass in part (0%) and 124 fail (33%).
Why agents need it
Types tell an agent what a function takes and returns without it running anything. It can follow a call across files and catch a wrong argument before the tests do. Cursor's profile gives type config its top weight.
How we score it
- Full pass:
tsconfig.json,jsconfig.json,mypy.ini,pyrightconfig.json, or a[tool.mypy]or[tool.pyright]section inpyproject.toml. - Full pass: a build file for a typed language, namely Rust, Go, Java, Kotlin, Scala, Swift, C#, OCaml, Haskell or Zig.
- Fail: neither. A typed language whose build file we do not look for, such as C or C++, also fails.
The methodology has the formula that turns checks into a score.
How to pass
For TypeScript or JavaScript, commit a tsconfig.json or jsconfig.json. For Python, add mypy or Pyright and commit its config. Other typed languages pass once their build file is at the repo root.
Which agents count it most
- Cursor12% of its score
- Gemini CLI10% of its score
- GPT-5 Codex9% of its score
- Pi8% of its score
- Kimi CLI8% of its score
- Claude Code8% of its score
- Aider7% of its score
- Devin6% of its score
- OpenHands5% of its score
Pass rate by language
Top-scoring repos that pass
- Rust · 33.1k ★
- gitlab-org/cli92.7— · 1.1k ★
- apache/superset92.2Python · 75.1k ★
- axios/axios91.9JavaScript · 109.4k ★
- aio-libs/aiohttp91.9Python · 16.6k ★
- C++ · 131k ★
- Rust · 6.7k ★
- TypeScript · 115 ★
- TypeScript · 2 ★
- Python · 46k ★
- scrapy/scrapy90.6Python · 64.8k ★
- Clojure · 49.6k ★
Popular repos that fail it
- react/react66.9JavaScript · 250.9k ★
- microsoft/vscode71.3TypeScript · 193.6k ★
- TypeScript · 190.9k ★
- Python · 187.5k ★
- flutter/flutter53.5Dart · 180k ★
- Python · 167.6k ★
- Python · 165k ★
- Python · 155.6k ★