Updated
AGENTS.md · Python

AGENTS.md and CLAUDE.md examples for Python

Of 610 actively developed open-source products built with Python, 306 (50%) keep instruction files for coding agents: AGENTS.md in 230, CLAUDE.md in 196. The typical file is 993 words, and most cover commands to build, run and test (80%) and pointers to other docs (72%).

Real files to read

From the best-known open-source Python products whose file is a real one (not a pointer to another), 200 to 4,000 words, covering at least three of the usual topics, written mainly in Python. Each opens on GitHub.

ProjectFileStarsWordsCovers
Significant-Gravitas/AutoGPTAGENTS.md187,7911,721CommandsTestingDoc pointersStructureCode styleGit
home-assistant/coreAGENTS.md91,783870CommandsTestingDoc pointersGit
bytedance/deer-flowAGENTS.md84,5071,767CommandsTestingDoc pointersCode style
usestrix/strixAGENTS.md72,368993CommandsTestingDoc pointers
wshobson/agentsAGENTS.md41,885804CommandsTestingDoc pointers
reflex-dev/reflexAGENTS.md28,9801,522CommandsTestingDoc pointersStructureCode style
langbot-app/LangBotAGENTS.md18,534993CommandsTestingDoc pointers
arc53/DocsGPTAGENTS.md18,3362,162CommandsTestingDoc pointersGit
rocketride-org/rocketride-serverAGENTS.md17,752768CommandsTestingDoc pointersStructureCode styleGit
MODSetter/SurfSenseAGENTS.md16,6511,230CommandsTestingDoc pointersStructureGit
yusufkaraaslan/Skill_SeekersAGENTS.md15,2401,917CommandsTestingStructureCode styleGit
livekit/agentsAGENTS.md14,9681,195CommandsTestingStructureCode style

What Python projects put in them

Share of the 278 files that cover each topic, against all 731 files we read.

Commands to build, run and test80% vs 79%
Pointers to other docs72% vs 69%
Testing71% vs 67%
Project structure56% vs 57%
Code style49% vs 49%
Git, commits and pull requests46% vs 46%

How they talk to the agent: 81% say “never” or “do not” somewhere (all files: 80%), 22% shout a rule in capitals like IMPORTANT or MUST (23%), and 19% tell it to ask before some changes (20%).

The tools they name

Package managersuv (107 files), npm (44 files), pip (38 files)

Tests and linterspytest (129), Ruff (31), ESLint (24), Vitest (21), Playwright (19), Prettier (19)

Named more than in files generallypytest (129), FastAPI (60), Pydantic (41), Ruff (31)

A starting AGENTS.md for Python

The sections these files cover most, the package manager and checks Python projects name most, and the stack Python makers' products chose most often. Fill in the <placeholders>.

# AGENTS.md

<What this product does and who it is for, in a sentence or two.>

## Stack


## Commands

- Install: `uv sync`
- Run locally: `<command>`
- Test: `uv run pytest`
- Lint: `uv run ruff check .`

## Testing

Run `uv run pytest` before calling a change done, and add a test with each fix or feature.

## Project structure

- `<folder>/`: <what lives there>
- More in <docs/…>

## Conventions

- <Naming, patterns and style the code does not show>
- Commits and pull requests: <your rules>

## Boundaries

- Ask before: <changes you want to approve first>
- Never: <files or actions that are off-limits>

<!-- Started from https://howmakersbuild.com/agents-md/python — point CLAUDE.md here with a line: @AGENTS.md -->
  • uv: named in 107 of 278 instruction files from open-source projects built with Python.
  • pytest: named in 129 of 278 instruction files from open-source projects built with Python.
  • Ruff: named in 31 of 278 instruction files from open-source projects built with Python.

Make one for your own stack →

Questions

What should an AGENTS.md for a Python project include?

In 278 files from open-source Python products: commands to build, run and test (80%), pointers to other docs (72%), testing (71%), project structure (56%), code style (49%), git, commits and pull requests (46%). The package manager they name most is uv (107 files).

AGENTS.md or CLAUDE.md?

Among these Python products, 230 keep an AGENTS.md and 196 a CLAUDE.md. Across every product we checked, 354 keep both, and in 189 of those the CLAUDE.md only points to the AGENTS.md (a symlink or a line like @AGENTS.md), so there's one file to maintain. Codex, Cursor, Copilot and others read AGENTS.md; Claude Code reads CLAUDE.md.

How long is a typical Python AGENTS.md?

The median is 993 words in these 278 files; across all 731 files we read, half are between 444 and 1,727 words.

How this is counted: the GitHub repos of open-source products built with Python, pushed to in the 180 days before 2026-10-28. We read each repo's AGENTS.md, CLAUDE.md and other agent files; what's published here is counts and links, not their text. All files, by the numbers.