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 typed by design.
How many repos have static type checking?
Of the 401 repos on the leaderboard, 271 pass in full (68%), 0 pass in part (0%) and 130 fail (32%).
Why do static types help AI coding agents?
Types tell an agent what a function takes and returns without running it. 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.
What counts as type configuration?
- 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.
How checks become a score: methodology.
How do I add type checking to my repo?
TypeScript or JavaScript: commit a tsconfig.json or jsconfig.json. Python: add mypy or Pyright and commit its config. Other typed languages pass once their build file is at the repo root.
Which AI coding agents weigh static types most?
- Cursor11% of its score
- Gemini CLI10% of its score
- Codex9% of its score
- Pi8% of its score
- Kimi Code 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
- Haskell7 of 7 (100%)
- Scala6 of 6 (100%)
- Zig6 of 6 (100%)
- Rust44 of 45 (98%)
- Go37 of 40 (93%)
- Kotlin11 of 12 (92%)
- Java25 of 28 (89%)
- C#7 of 8 (88%)
- JavaScript11 of 15 (73%)
- Swift7 of 10 (70%)
- TypeScript56 of 82 (68%)
- Ruby6 of 10 (60%)
- Python32 of 56 (57%)
- C++5 of 21 (24%)
- C2 of 10 (20%)
- Clojure1 of 5 (20%)
- Dart1 of 7 (14%)
- PHP1 of 12 (8%)
- Elixir0 of 7 (0%)
Top-scoring repos that pass
- Rust · 6.8k ★
- Ruby · 48.1k ★
- pingcap/tidb89.6Go · 40.7k ★
- gitlab-org/cli88.8Go · 1.1k ★
- apache/superset88.7Python · 75.4k ★
- axios/axios88.1JavaScript · 109.3k ★
- aio-libs/aiohttp88.1Python · 16.6k ★
- PostHog/posthog88.0Python · 40.7k ★
- C++ · 133.6k ★
- Python · 46.3k ★
- Rust · 33.3k ★
- TypeScript · 115 ★
Popular repos that fail it
- react/react64.1JavaScript · 252.3k ★
- TypeScript · 199.4k ★
- microsoft/vscode72.0TypeScript · 195.1k ★
- Python · 187.9k ★
- flutter/flutter55.0Dart · 181.1k ★
- Python · 168.6k ★
- Python · 165.3k ★
- Python · 156.4k ★
Every check, grouped into what to do first: how to make your repo ready for AI coding agents.