python/cpython

GitHub
https://github.com/python/cpython

The Python programming language

Stars:
77.8k
Language:
Python
Default branch:
main
Last scored:
Overall

At a glance

Rank
#282 of 401
#46 of 56 Python repos
Checks passed
6 of 17
Full list below
Best set up for
Claude Code
Score 67.5
Needs most work for
Cursor
Biggest fix: Cursor rules (.cursor/rules) (+11.5 pts)

What it has

What it's missing

What to fix first

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    Dependency manifest
    Commit a proper manifest (package.json, pyproject.toml, Cargo.toml, go.mod, etc.) plus a lockfile.
    +9.2 pts
  2. 2
    Type configuration
    Add a type config (tsconfig.json for JS/TS, mypy.ini or pyrightconfig.json for Python). Rust/Go/JVM/Scala/Swift/C#/OCaml/Haskell/Zig are typed by default.
    +7.9 pts
  3. 3
    Manageable size
    If possible, split into smaller modules or carve out a focused entry path. Document where to start in AGENTS.md.
    +5.3 pts

Score for each AI agent

Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →

Claude Code
#265 of 401
67.5
  • ~AGENTS.md / CLAUDE.md
  • ~Test suite
  • ~Reproducible dev env
Codex
#283 of 401
64.2
  • ~AGENTS.md / CLAUDE.md
  • ✓README
  • ~Test suite
Kimi Code CLI
#269 of 401
64.0
  • ~AGENTS.md / CLAUDE.md
  • ~Test suite
  • ✗Dependency manifest
Pi
#265 of 401
63.3
  • ~AGENTS.md / CLAUDE.md
  • ~Test suite
  • ✓Linter / formatter config
Devin
#286 of 401
61.1
  • ~Reproducible dev env
  • ✗Dependency manifest
  • ~Test suite
OpenHands
#278 of 401
58.7
  • ✓CI configuration
  • ✗Dependency manifest
  • ~Reproducible dev env
Aider
#279 of 401
57.3
  • ✗.aider.conf.yml
  • ✓Linter / formatter config
  • ~Test suite
Gemini CLI
#314 of 401
55.2
  • ✗GEMINI.md
  • ✓README
  • ~Test suite
Cursor
#319 of 401
53.6
  • ✗Cursor rules (.cursor/rules)
  • ✓README
  • ✗Type configuration

Does python/cpython have agent instructions?

An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.

AGENTS.md / CLAUDE.md
AGENTS.md (new tab) · 602 characters
Agent-specific files
None: no GEMINI.md, .cursor/rules, .openhands/setup.sh, .aider.conf.yml or .agents/skills
Repos that have one
29 of 56 Python repos · 221 of 401 repos on the leaderboard · See examples →

All 17 checks · 6 passed

No .agents/skills/<name>/SKILL.md
File exists (602 characters)
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
23 GitHub Actions workflows
No .cursor/rules/*.mdc or .cursorrules
No dependency manifest found
Has .devcontainer/devcontainer.json
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
Config detected
No .openhands/setup.sh
Hook framework configured
README· 100% pass
README detailed (8,914 characters)
Manageable size· 20% pass
5838 files — very large
Test suite· 70% pass
Test files detected (Lib/idlelib/idle_test/test_autocomplete.py)
No type config found

How python/cpython compares

vs leaderboard average
6.3 pts below
Average 66.8
vs Python average
10.5 pts below
Average 71.0
Stars among Python repos
#14 of 56

Missing here, and how many repos have it

  • Dependency manifest · passed by 92% of leaderboard repos, 89% of Python repos
  • Type configuration · passed by 68% of leaderboard repos, 57% of Python repos
  • Skills (.agents/skills) · passed by 17% of leaderboard repos, 20% of Python repos

Passes checks most repos miss

  • Pre-commit / git hooks · only 29% of repos pass it

One fix for the most agents: Type configuration would raise the score for all 9 agents, by up to 11.5 points.

Similar repos

Same language and host as this repo, closest in overall score.

All Python repos →

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/python/cpython
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/python/cpython.svg)](https://agentfriendlycode.com/repo/github/python/cpython)

Check the score on every pull request

A GitHub Action posts one comment per pull request with how the score changed and why.