Skip to content
Agent Friendly Code

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.json or tsconfig.base.json, jsconfig.json, deno.json, .flowconfig, mypy.ini, pyrightconfig.json, pyrefly.toml, ty.toml, a type-checker section in pyproject.toml or setup.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?

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.