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.
What Python repos most often miss
- Cursor rules (.cursor/rules): 7% pass rate
- Skills (.agents/skills): 21% pass rate
- AGENTS.md / CLAUDE.md: 50% pass rate
Leaves out checks only one agent reads, which almost no repo passes. The methodology explains each check.
| Rank | Repo | Stars | Score | External link |
|---|---|---|---|---|
| 1 | PostHog/ 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 |
| 2 | apache/ Apache Airflow - A platform to programmatically author, schedule, and monitor workflows | 47.7k ★ | 89.6 | open |
| 3 | getsentry/ Developer-first error tracking and performance monitoring | 45.9k ★ | 89.6 | open |
| 4 | scikit-learn/ scikit-learn: machine learning in Python | 68.3k ★ | 89.5 | open |
| 5 | apache/ Apache Superset is a Data Visualization and Data Exploration Platform | 75.7k ★ | 88.7 | open |
| 6 | aio-libs/ Asynchronous HTTP client/server framework for asyncio and Python | 16.6k ★ | 88.1 | open |
| 7 | streamlit/ Streamlit — The agent-native framework for data apps and dashboards. | 46.5k ★ | 87.5 | open |
| 8 | Significant-Gravitas/ 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 |
| 9 | scrapy/ Scrapy, a fast high-level web crawling & scraping framework for Python. | 65.6k ★ | 86.8 | open |
| 10 | pydantic/ Data validation using Python type hints | 29.7k ★ | 86.7 | open |
| 11 | wagtail/ A Django content management system focused on flexibility and user experience | 20.8k ★ | 85.9 | open |
| 12 | sqlfluff/ A modular SQL linter and auto-formatter with support for multiple dialects and templated code. | 10k ★ | 85.9 | open |
| 13 | pytorch/ Tensors and Dynamic neural networks in Python with strong GPU acceleration | 105.8k ★ | 84.6 | open |
| 14 | pandas-dev/ 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 |
| 15 | gradio-app/ Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work! | 44.2k ★ | 83.7 | open |
| 16 | langflow-ai/ Langflow is a powerful tool for building and deploying AI-powered agents and workflows. | 157k ★ | 83.2 | open |
| 17 | python/ The Python programming language | 78.5k ★ | 83.2 | open |
| 18 | crewAIInc/ 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 |
| 19 | hiyouga/ Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024) | 76.3k ★ | 82.5 | open |
| 20 | data-privacy-stack/ 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 |
| 21 | pallets/ The Python micro framework for building web applications. | 75.3k ★ | 81.3 | open |
| 22 | psf/ A simple, yet elegant, HTTP library. | 54.8k ★ | 81.3 | open |
| 23 | BerriAI/ 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 |
| 24 | vllm-project/ A high-throughput and memory-efficient inference and serving engine for LLMs | 97.6k ★ | 80.7 | open |
| 25 | Textualize/ Rich is a Python library for rich text and beautiful formatting in the terminal. | 57.9k ★ | 80.1 | open |
| 26 | psf/ The uncompromising Python code formatter | 42.2k ★ | 80.1 | open |
| 27 | celery/ Distributed Task Queue (development branch) | 29.3k ★ | 80.1 | open |
| 28 | pytest-dev/ The pytest framework makes it easy to write small tests, yet scales to support complex functional testing | 14.8k ★ | 80.1 | open |
| 29 | sqlalchemy/ The Database Toolkit for Python | 12.3k ★ | 80.1 | open |
| 30 | github/ 💫 Toolkit to help you get started with SDD or any other process! | 151.5k ★ | 78.8 | open |
| 31 | Kludex/ The little ASGI framework that shines. 🌟 | 12.8k ★ | 78.4 | open |
| 32 | Textualize/ 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 |
| 33 | huggingface/ 🤗 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 |
| 34 | sgl-project/ SGLang is a high-performance serving framework for large language models and multimodal models. | 39.1k ★ | 77.5 | open |
| 35 | explosion/ 💫 Industrial-strength Natural Language Processing (NLP) in Python | 34.1k ★ | 77.5 | open |
| 36 | ray-project/ 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 |
| 37 | run-llama/ LlamaIndex is the document processing platform for AI | 53k ★ | 76.5 | open |
| 38 | Kludex/ An ASGI web server, for Python. 🦄 | 11.2k ★ | 73.7 | open |
| 39 | huggingface/ 🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch. | 35k ★ | 72.0 | open |
| 40 | python-poetry/ Python packaging and dependency management made easy | 34.3k ★ | 71.2 | open |
| 41 | fastapi/ FastAPI framework, high performance, easy to learn, fast to code, ready for production | 105k ★ | 70.7 | open |
| 42 | tqdm/ A Fast, Extensible Progress Bar for Python and CLI | 31.4k ★ | 70.7 | open |
| 43 | huggingface/ 🤗 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 |
| 44 | numpy/ The fundamental package for scientific computing with Python. | 33.5k ★ | 70.6 | open |
| 45 | Comfy-Org/ 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 |
| 46 | mkdocs/ Project documentation with Markdown. | 22.6k ★ | 67.4 | open |
| 47 | encode/ A next generation HTTP client for Python. 🦋 | 15.9k ★ | 67.4 | open |
| 48 | django/ The Web framework for perfectionists with deadlines. | 91.9k ★ | 65.8 | open |
| 49 | Aider-AI/ aider is AI pair programming in your terminal | 50.3k ★ | 63.2 | open |
| 50 | openai/ Robust Speech Recognition via Large-Scale Weak Supervision | 113.6k ★ | 58.9 | open |
| 51 | unclecode/ 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 |
| 52 | AUTOMATIC1111/ Stable Diffusion web UI | 165.4k ★ | 54.5 | open |
| 53 | langchain-ai/ The agent engineering platform. | 150k ★ | 54.0 | open |
| 54 | karpathy/ The best ChatGPT that $100 can buy. | 60.9k ★ | 45.5 | open |
| 55 | microsoft/ Microsoft AI | 3k ★ | 23.2 | open |
| 56 | karpathy/ 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.
| Agent | Average | Median | Top for |
|---|---|---|---|
| Claude Code | 80.5 | 85.5 | 36 |
| Codex | 78.2 | 82.3 | 4 |
| Kimi Code CLI | 77.5 | 80.3 | 5 |
| Pi | 77.3 | 80.2 | 3 |
| Devin | 76.6 | 80.9 | 2 |
| Aider | 72.9 | 77.0 | 5 |
| OpenHands | 72.4 | 76.6 | 0 |
| Gemini CLI | 70.9 | 75.0 | 0 |
| Cursor | 70.7 | 73.8 | 1 |
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.