Updated
AGENTS.md · FastAPI

AGENTS.md and CLAUDE.md examples for FastAPI

Of 264 actively developed open-source products built with FastAPI, 151 (57%) keep instruction files for coding agents: AGENTS.md in 110, CLAUDE.md in 96. The typical file is 1,043 words, and most cover commands to build, run and test (78%) and pointers to other docs (76%).

Real files to read

From the best-known open-source FastAPI 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 and naming FastAPI. Each opens on GitHub.

ProjectFileStarsWordsCovers
Significant-Gravitas/AutoGPTAGENTS.md187,7911,721CommandsTestingDoc pointersStructureCode styleGit
bytedance/deer-flowAGENTS.md84,5071,767CommandsTestingDoc pointersCode style
lfnovo/open-notebookAGENTS.md40,643501CommandsTestingDoc pointersGit
MODSetter/SurfSenseAGENTS.md16,6511,230CommandsTestingDoc pointersStructureGit
yusufkaraaslan/Skill_SeekersAGENTS.md15,2401,917CommandsTestingStructureCode styleGit
Chainlit/chainlitAGENTS.md12,5131,387CommandsTestingDoc pointersStructureCode styleGit
MemTensor/MemOSAGENTS.md12,1361,362CommandsTestingDoc pointersStructureCode styleGit
dataelement/bishengAGENTS.md12,0812,476CommandsTestingDoc pointersStructure
plastic-labs/honchoCLAUDE.md7,7933,328CommandsTestingDoc pointersStructureCode style
xerrors/YuxiAGENTS.md7,521339CommandsTestingDoc pointers
feast-dev/feastAGENTS.md7,349671CommandsTestingDoc pointersStructureCode styleGit
Mai-with-u/MaiBotAGENTS.md6,652240CommandsTestingDoc pointers

What FastAPI projects put in them

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

Commands to build, run and test78% vs 79%
Pointers to other docs76% vs 69%
Testing72% vs 67%
Project structure58% vs 57%
Git, commits and pull requests50% vs 46%
Code style44% vs 49%

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

The tools they name

Package managersuv (65 files), npm (32 files), pip (20 files)

Tests and linterspytest (72), Ruff (19), Playwright (14), ESLint (14), Vitest (11), Prettier (8)

Named more than in files generallyPython (96), pytest (72), Docker (48), Pydantic (28), Redis (24), Ruff (19), SQLAlchemy (18)

What they tell the agent

Instructions that recur across files, in our words; open one for the FastAPI projects whose file says it.

About Python

About Docker

About Redis

About Ruff

About SQLAlchemy

A starting AGENTS.md for FastAPI

The sections these files cover most, the package manager and checks FastAPI projects name most, and the stack FastAPI 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

- Backend Framework: FastAPI
- Hosting: Vercel
- Database: PostgreSQL

## 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/fastapi — point CLAUDE.md here with a line: @AGENTS.md -->
  • uv: named in 65 of 133 instruction files from open-source projects built with FastAPI.
  • pytest: named in 72 of 133 instruction files from open-source projects built with FastAPI.
  • Ruff: named in 19 of 133 instruction files from open-source projects built with FastAPI.

Make one for your own stack →

Questions

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

In 133 files from open-source FastAPI products: commands to build, run and test (78%), pointers to other docs (76%), testing (72%), project structure (58%), git, commits and pull requests (50%), code style (44%). The package manager they name most is uv (65 files).

AGENTS.md or CLAUDE.md?

Among these FastAPI products, 110 keep an AGENTS.md and 96 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 FastAPI AGENTS.md?

The median is 1,043 words in these 133 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 FastAPI, 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.