Updated
AGENTS.md · React

AGENTS.md and CLAUDE.md examples for React

Of 852 actively developed open-source products built with React, 510 (60%) keep instruction files for coding agents: AGENTS.md in 397, CLAUDE.md in 296. The typical file is 1,016 words, and most cover commands to build, run and test (79%) and pointers to other docs (71%).

Real files to read

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

ProjectFileStarsWordsCovers
Significant-Gravitas/AutoGPTAGENTS.md187,7911,721CommandsTestingDoc pointersStructureCode styleGit
paperclipai/paperclipAGENTS.md108,0381,683CommandsTestingDoc pointersGit
infiniflow/ragflowAGENTS.md92,9762,203CommandsTestingDoc pointersStructure
MHSanaei/3x-uiCLAUDE.md48,7241,917CommandsTestingDoc pointersCode styleGit
LibreChat-AI/LibreChatAGENTS.md46,3892,246CommandsTestingDoc pointersCode styleGit
Kong/insomniaAGENTS.md40,089652CommandsTestingDoc pointersStructure
RSSNext/FoloAGENTS.md39,176986CommandsTestingDoc pointersStructureCode styleGit
backstage/backstageAGENTS.md34,7221,094CommandsDoc pointersStructure
Gitlawb/openclaudeAGENTS.md34,1801,029CommandsDoc pointersCode style
pingdotgg/t3codeAGENTS.md30,8593,845TestingDoc pointersGit
labring/FastGPTAGENTS.md29,926491CommandsTestingDoc pointers
actualbudget/actualAGENTS.md29,8132,600CommandsTestingDoc pointersStructureCode styleGit

What React projects put in them

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

Commands to build, run and test79% vs 79%
Pointers to other docs71% vs 69%
Testing68% vs 67%
Project structure57% vs 57%
Code style49% vs 49%
Git, commits and pull requests47% vs 46%

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

The tools they name

Package managerspnpm (123 files), npm (100 files), bun (58 files)

Tests and lintersVitest (95), Playwright (90), ESLint (83), pytest (65), Prettier (64), Biome (38)

Named more than in files generallyNext.js (99)

What they tell the agent

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

About Next.js

A starting AGENTS.md for React

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

- Frontend Framework: React
- Hosting: Vercel
- Transactional Email: SendGrid
- Payments: Stripe
- Database: PostgreSQL
- Web Analytics: Google Analytics
- LLM API: OpenAI API
- Product Analytics: PostHog

## Commands

- Install: `pnpm install`
- Run locally: `<command>`
- Test: `pnpm exec vitest run`
- End-to-end tests: `pnpm exec playwright test`
- Lint: `pnpm exec eslint .`

## Testing

Run `pnpm exec vitest run` and `pnpm exec playwright test` 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/react — point CLAUDE.md here with a line: @AGENTS.md -->
  • pnpm: named in 123 of 455 instruction files from open-source projects built with React.
  • Vitest: named in 95 of 455 instruction files from open-source projects built with React.
  • Playwright: named in 90 of 455 instruction files from open-source projects built with React.
  • ESLint: named in 83 of 455 instruction files from open-source projects built with React.

Make one for your own stack →

Questions

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

In 455 files from open-source React products: commands to build, run and test (79%), pointers to other docs (71%), testing (68%), project structure (57%), code style (49%), git, commits and pull requests (47%). The package manager they name most is pnpm (123 files).

AGENTS.md or CLAUDE.md?

Among these React products, 397 keep an AGENTS.md and 296 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 React AGENTS.md?

The median is 1,016 words in these 455 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 React, 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.