AGENTS.md and CLAUDE.md examples for React
Of 796 actively developed open-source products built with React, 473 (59%) keep instruction files for coding agents: AGENTS.md in 358, CLAUDE.md in 277. The typical file is 971 words, and most cover commands to build, run and test (78%) 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.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| paperclipai/paperclip | AGENTS.md | 100,422 | 1,472 | CommandsTestingDoc pointersGit |
| infiniflow/ragflow | AGENTS.md | 92,016 | 2,138 | CommandsTestingDoc pointersStructure |
| MHSanaei/3x-ui | CLAUDE.md | 47,834 | 1,905 | CommandsTestingDoc pointersCode styleGit |
| LibreChat-AI/LibreChat | AGENTS.md | 45,538 | 2,229 | CommandsTestingDoc pointersCode styleGit |
| Kong/insomnia | AGENTS.md | 40,043 | 652 | CommandsTestingDoc pointersStructure |
| RSSNext/Folo | AGENTS.md | 39,089 | 986 | CommandsTestingDoc pointersStructureCode styleGit |
| backstage/backstage | AGENTS.md | 34,590 | 1,048 | CommandsDoc pointersStructure |
| Gitlawb/openclaude | AGENTS.md | 33,743 | 823 | CommandsDoc pointersCode style |
| labring/FastGPT | AGENTS.md | 29,797 | 491 | CommandsTestingDoc pointers |
| actualbudget/actual | AGENTS.md | 29,447 | 2,600 | CommandsTestingDoc pointersStructureCode styleGit |
| slymnoyann/hey.xyz | AGENTS.md | 29,350 | 338 | CommandsTestingStructureCode styleGit |
| reflex-dev/reflex | AGENTS.md | 28,950 | 1,522 | CommandsTestingDoc pointersStructureCode style |
What React projects put in them
Share of the 414 files that cover each topic, against all 641 files we read.
How they talk to the agent: 82% say “never” or “do not” somewhere (all files: 80%), 23% shout a rule in capitals like IMPORTANT or MUST (24%), and 20% tell it to ask before some changes (20%).
The tools they name
Package managerspnpm (113 files), npm (89 files), bun (58 files)
Tests and lintersVitest (88), Playwright (88), ESLint (76), pytest (57), Prettier (56), Biome (32)
Named more than in files generallyNext.js (92)
What they tell the agent
Instructions that recur across files, in our words; open one for the React projects whose file says it.
About React
Named as the UI layer, usually React 19 with TypeScript on Vite or Next.js, sometimes with Tailwind.28 files
AbhishekBarali/SpeakoFlowAudiusProject/appsBitBoxSwiss/bitbox-wallet-appChainlit/chainlitChatbotXIO/ChatbotXCiao1019/PetrichorHKUDS/LightRAGMHSanaei/3x-uiMaintainerr/MaintainerrPrismer-AI/PrismerUllrAI/SaaS-StarterValueCell-ai/ClawXZeroDeng01/sublinkProaipotheosis-labs/acichartbrew/chartbrewchirpz-ai/pandaprobedatabuddy-analytics/Databuddydeadlock-mod-manager/deadlock-mod-managerethereum/ethereum-org-websiteever-works/ever-worksfrontpagefyi/frontpagek1LoW/mokatanemo/planollm-ring/lmringlukevella/ralllynamespace-ee/upcountnextlevelbuilder/goclawonyx-dot-app/onyx-fossThe React frontend or mobile app has its own nested instruction file with component and UI conventions to read first.7 files
Use React Query for server state and API calls, keeping client-only state elsewhere.7 files
Write functional components with hooks only; class components are not used.6 files
About Next.js
Named as the web frontend, dashboard or docs site app inside a monorepo.13 files
Use App Router conventions.5 files
Read the Next.js docs bundled in node_modules before framework work; remembered knowledge may be outdated.4 files
Keep backend and server logic in separate packages; Next.js is only the web frontend or dashboard.4 files
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 113 of 414 instruction files from open-source projects built with React.
- Vitest: named in 88 of 414 instruction files from open-source projects built with React.
- Playwright: named in 88 of 414 instruction files from open-source projects built with React.
- ESLint: named in 76 of 414 instruction files from open-source projects built with React.
Questions
What should an AGENTS.md for a React project include?
In 414 files from open-source React products: commands to build, run and test (78%), pointers to other docs (71%), testing (68%), project structure (58%), code style (50%), git, commits and pull requests (47%). The package manager they name most is pnpm (113 files).
AGENTS.md or CLAUDE.md?
Among these React products, 358 keep an AGENTS.md and 277 a CLAUDE.md. Across every product we checked, 320 keep both, and in 170 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 971 words in these 414 files; across all 641 files we read, half are between 425 and 1,665 words.
How this is counted: the GitHub repos of open-source products built with React, pushed to in the 180 days before 2026-10-12. 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.