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.
By Himanshu Singh · Updated · How we score →
How many repos have static type checking?
Of the 434 repos on the leaderboard, 377 pass in full (87%), 0 pass in part (0%) and 57 fail (13%).
Why do static types help AI coding agents?
Types tell an agent what a function takes and returns without running it, so 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: a type-checker config, such as
tsconfig.jsonortsconfig.base.json,jsconfig.json,deno.json,.flowconfig,mypy.ini,pyrightconfig.json,pyrefly.toml,ty.toml, a type-checker section inpyproject.tomlorsetup.cfg, PHPStan or Psalm, Sorbet or Steep, or Luau's.luaurc. - Full pass: a build file for a typed language: Rust, Go, Java, Kotlin, Scala, Swift and Objective-C (an Xcode project counts), C#, F#, C and C++, OCaml, Haskell, Zig, Dart, Crystal, Nim, Gleam, Elm, PureScript, ReScript, V, D, Fortran or Ada. C and C++ build files don't count in a Python package built with meson-python or scikit-build: they compile its extensions.
- Either one at the repo root or in a top-level folder such as
src/. - Fail: neither.
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 committed.
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
- Claude Code8% of its score
- Kimi Code CLI8% of its score
- Aider7% of its score
- Devin6% of its score
- OpenHands5% of its score
Pass rate by language
- Rust47 of 47 (100%)
- Go41 of 41 (100%)
- Kotlin15 of 15 (100%)
- Swift14 of 14 (100%)
- C#12 of 12 (100%)
- Haskell7 of 7 (100%)
- Scala6 of 6 (100%)
- Zig6 of 6 (100%)
- Java31 of 32 (97%)
- TypeScript79 of 88 (90%)
- JavaScript14 of 16 (88%)
- Dart10 of 12 (83%)
- C++17 of 21 (81%)
- C8 of 10 (80%)
- Ruby8 of 11 (73%)
- PHP10 of 14 (71%)
- Python39 of 56 (70%)
- Clojure3 of 5 (60%)
- Elixir1 of 7 (14%)
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
- TypeScript · 211.5k ★
- Python · 165.4k ★
- Python · 157k ★
- github/spec-kit79.0Python · 152.1k ★
- Python · 150.1k ★
- Python · 148.9k ★
- openai/whisper58.5Python · 113.7k ★
- django/django65.3Python · 91.9k ★
Every check, grouped into what to do first: how to make your repo ready for AI coding agents.