Skip to content
Agent Friendly Code

Most agent-friendly Python repos

56 Python repos, ranked by overall score (the average across agents). They average 75.2. Best with 100+ stars: PostHog/posthog (91.2).

29 of them have an AGENTS.md or CLAUDE.md: Python AGENTS.md examples, and guides for FastAPI and Django.

Which AI coding agent Python repos are best set up for →

What Python repos most often miss

Leaves out checks only one agent reads, which almost no repo passes. The methodology explains each check.

Leaderboard — page 1 of 1 for Python repos, overall
RankRepoScore
1PostHog/posthogGitHub

PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all…

41.1k ★
91.2
open
2apache/airflowGitHub

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

47.7k ★
89.6
open
3getsentry/sentryGitHub

Developer-first error tracking and performance monitoring

45.9k ★
89.6
open
4scikit-learn/scikit-learnGitHub

scikit-learn: machine learning in Python

68.3k ★
89.5
open
5apache/supersetGitHub

Apache Superset is a Data Visualization and Data Exploration Platform

75.7k ★
88.7
open
6aio-libs/aiohttpGitHub

Asynchronous HTTP client/server framework for asyncio and Python

16.6k ★
88.1
open
7streamlit/streamlitGitHub

Streamlit — The agent-native framework for data apps and dashboards.

46.5k ★
87.5
open
8Significant-Gravitas/AutoGPTGitHub

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k ★
86.9
open
9scrapy/scrapyGitHub

Scrapy, a fast high-level web crawling & scraping framework for Python.

65.6k ★
86.8
open
10pydantic/pydanticGitHub

Data validation using Python type hints

29.7k ★
86.7
open
11wagtail/wagtailGitHub

A Django content management system focused on flexibility and user experience

20.8k ★
85.9
open
12sqlfluff/sqlfluffGitHub

A modular SQL linter and auto-formatter with support for multiple dialects and templated code.

10k ★
85.9
open
13pytorch/pytorchGitHub

Tensors and Dynamic neural networks in Python with strong GPU acceleration

105.8k ★
84.6
open
14pandas-dev/pandasGitHub

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

50.6k ★
83.8
open
15gradio-app/gradioGitHub

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!

44.2k ★
83.7
open
16langflow-ai/langflowGitHub

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

157k ★
83.2
open
17python/cpythonGitHub

The Python programming language

78.5k ★
83.2
open
18crewAIInc/crewAIGitHub

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

61.3k ★
83.2
open
19hiyouga/LlamaFactoryGitHub

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

76.3k ★
82.5
open
20data-privacy-stack/presidioGitHub

An open-source framework for detecting, redacting, masking, and anonymizing sensitive data (PII) across text, images, and structured data. Supports NLP, pattern matching, and customizable pipelines.

12.1k ★
81.5
open
21pallets/flaskGitHub

The Python micro framework for building web applications.

75.3k ★
81.3
open
22psf/requestsGitHub

A simple, yet elegant, HTTP library.

54.8k ★
81.3
open
23BerriAI/litellmGitHub

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

64k ★
80.9
open
24vllm-project/vllmGitHub

A high-throughput and memory-efficient inference and serving engine for LLMs

97.6k ★
80.7
open
25Textualize/richGitHub

Rich is a Python library for rich text and beautiful formatting in the terminal.

57.9k ★
80.1
open
26psf/blackGitHub

The uncompromising Python code formatter

42.2k ★
80.1
open
27celery/celeryGitHub

Distributed Task Queue (development branch)

29.3k ★
80.1
open
28pytest-dev/pytestGitHub

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

14.8k ★
80.1
open
29sqlalchemy/sqlalchemyGitHub

The Database Toolkit for Python

12.3k ★
80.1
open
30github/spec-kitGitHub

💫 Toolkit to help you get started with SDD or any other process!

151.5k ★
78.8
open
31Kludex/starletteGitHub

The little ASGI framework that shines. 🌟

12.8k ★
78.4
open
32Textualize/textualGitHub

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

37.7k ★
78.3
open
33huggingface/transformersGitHub

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.4k ★
78.2
open
34sgl-project/sglangGitHub

SGLang is a high-performance serving framework for large language models and multimodal models.

39.1k ★
77.5
open
35explosion/spaCyGitHub

💫 Industrial-strength Natural Language Processing (NLP) in Python

34.1k ★
77.5
open
36ray-project/rayGitHub

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.

44.4k ★
76.9
open
37run-llama/llama_indexGitHub

LlamaIndex is the document processing platform for AI

53k ★
76.5
open
38Kludex/uvicornGitHub

An ASGI web server, for Python. 🦄

11.2k ★
73.7
open
39huggingface/diffusersGitHub

🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.

35k ★
72.0
open
40python-poetry/poetryGitHub

Python packaging and dependency management made easy

34.3k ★
71.2
open
41fastapi/fastapiGitHub

FastAPI framework, high performance, easy to learn, fast to code, ready for production

105k ★
70.7
open
42tqdm/tqdmGitHub

A Fast, Extensible Progress Bar for Python and CLI

31.4k ★
70.7
open
43huggingface/datasetsGitHub

🤗 The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools

22.2k ★
70.7
open
44numpy/numpyGitHub

The fundamental package for scientific computing with Python.

33.5k ★
70.6
open
45Comfy-Org/ComfyUIGitHub

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

148.7k ★
67.6
open
46mkdocs/mkdocsGitHub

Project documentation with Markdown.

22.6k ★
67.4
open
47encode/httpxGitHub

A next generation HTTP client for Python. 🦋

15.9k ★
67.4
open
48django/djangoGitHub

The Web framework for perfectionists with deadlines.

91.9k ★
65.8
open
49Aider-AI/aiderGitHub

aider is AI pair programming in your terminal

50.3k ★
63.2
open
50openai/whisperGitHub

Robust Speech Recognition via Large-Scale Weak Supervision

113.6k ★
58.9
open
51unclecode/crawl4aiGitHub

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

88k ★
58.6
open
52AUTOMATIC1111/stable-diffusion-webuiGitHub

Stable Diffusion web UI

165.4k ★
54.5
open
53langchain-ai/langchainGitHub

The agent engineering platform.

150k ★
54.0
open
54karpathy/nanochatGitHub

The best ChatGPT that $100 can buy.

60.9k ★
45.5
open
55microsoft/AIGitHub

Microsoft AI

3k ★
23.2
open
56karpathy/nanoGPTGitHub

The simplest, fastest repository for training/finetuning medium-sized GPTs.

65.1k ★
18.2
open

Which AI coding agent are Python repos best set up for?

Claude Code, at 80.5 on average, ahead of Codex at 78.2. That measures setup weighted by what each agent's docs say it reads, not which agent writes better Python.

Average and median score of Python repos for each agent, highest first
AgentAverageMedianTop for
Claude Code80.585.536
Codex78.282.34
Kimi Code CLI77.580.35
Pi77.380.23
Devin76.680.92
Aider72.977.05
OpenHands72.476.60
Gemini CLI70.975.00
Cursor70.773.81

Agent files: AGENTS.md 28 (50%) · CLAUDE.md only 1 (2%) · .cursor/rules 4 (7%) · GEMINI.md 1 (2%) · .agents/skills 12 (21%). “Top for” counts the repos where the agent scores highest, ties counting for each.