AGENTS.md and CLAUDE.md examples for React Router
Of 267 actively developed open-source products built with React Router, 163 (61%) keep instruction files for coding agents: AGENTS.md in 129, CLAUDE.md in 89. The typical file is 1,022 words, and most cover commands to build, run and test (80%) and pointers to other docs (76%).
Real files to read
From the best-known open-source React Router 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 Router. Each opens on GitHub.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| Kong/insomnia | AGENTS.md | 40,089 | 652 | CommandsTestingDoc pointersStructure |
| langbot-app/LangBot | AGENTS.md | 18,534 | 993 | CommandsTestingDoc pointers |
| documenso/documenso | AGENTS.md | 15,588 | 821 | CommandsTestingCode style |
| Chainlit/chainlit | AGENTS.md | 12,513 | 1,387 | CommandsTestingDoc pointersStructureCode styleGit |
| lewish/asciiflow | CLAUDE.md | 5,975 | 1,022 | CommandsTestingStructureCode style |
| ferdium/ferdium-app | CLAUDE.md | 4,753 | 701 | CommandsTestingStructureCode styleGit |
| nextlevelbuilder/goclaw | AGENTS.md | 3,677 | 3,111 | CommandsTestingDoc pointersStructureCode style |
| chrisvel/tududi | CLAUDE.md | 3,482 | 2,541 | CommandsTestingDoc pointersStructure |
| crbnos/carbon | AGENTS.md | 2,769 | 2,406 | CommandsDoc pointersStructure |
| Maintainerr/Maintainerr | AGENTS.md | 2,371 | 3,585 | CommandsTestingDoc pointersStructureCode styleGit |
| FalkorDB/QueryWeaver | AGENTS.md | 1,086 | 1,015 | CommandsTestingStructureCode styleGit |
| porsche-design-system/porsche-design-system | AGENTS.md | 674 | 1,957 | CommandsTestingDoc pointersStructureCode styleGit |
What React Router projects put in them
Share of the 146 files that cover each topic, against all 731 files we read.
How they talk to the agent: 83% say “never” or “do not” somewhere (all files: 80%), 25% shout a rule in capitals like IMPORTANT or MUST (23%), and 16% tell it to ask before some changes (20%).
The tools they name
Package managerspnpm (41 files), npm (38 files), uv (21 files)
Tests and lintersESLint (31), Vitest (30), Playwright (28), Prettier (25), pytest (24), Jest (17)
Named more than in files generallyReact (83), Vite (52), PostgreSQL (28), Cursor (25), Prettier (25), Electron (17), Jest (17)
What they tell the agent
Instructions that recur across files, in our words; open one for the React Router projects whose file says it.
About React Router
Named as the client-side routing library for the React frontend.13 files
About React
Named as the UI layer, usually React 19 with TypeScript on Vite or Next.js, sometimes with Tailwind.13 files
The React frontend or mobile app has its own nested instruction file with component and UI conventions to read first.3 files
Use React Query for server state and API calls, keeping client-only state elsewhere.3 files
Write functional components with hooks only; class components are not used.1 files
About Vite
Vite is the frontend bundler and dev server, typically behind a React or Vue single-page app.21 files
AudiusProject/appsBitBoxSwiss/bitbox-wallet-appChainlit/chainlitCiao1019/PetrichorHKUDS/LightRAGMHSanaei/3x-uiMaintainerr/MaintainerrZeroDeng01/sublinkProactualbudget/actualchartbrew/chartbrewdkron-io/dkrongorkem-bwl/atlasinfiniflow/ragflowlangbot-app/LangBotmindroom-ai/mindroomnamespace-ee/upcountnounsDAO/nouns-monorepoorangecoding/fredypaperclipai/paperclipslymnoyann/hey.xyzyusufkaraaslan/Skill_SeekersRun the Vite dev server for hot-reload UI work.6 files
Frontend source changes are not visible until Vite rebuilds; run the build or the dev server before checking the result.1 files
Environment variables exposed to client code use the VITE_ prefix and are baked in at build time.2 files
About PostgreSQL
Named as the project's main relational database, often alongside Redis.4 files
Pair PostgreSQL with Drizzle as the ORM and schema layer.2 files
Use the pgvector extension for embeddings and vector search inside PostgreSQL.3 files
Keep code portable across PostgreSQL and the other supported engines such as SQLite or MySQL.2 files
About Cursor
The file is written for any AI coding agent, listing Cursor next to Claude Code, Copilot, and Codex.10 files
Cursor Cloud agent VMs have their own environment setup notes, secrets, and caveats documented separately.3 files
Cursor-specific rules live under a dot-cursor directory.2 files
Cursor is named as an MCP client, alongside Claude Desktop, that can connect to the project's server.1 files
About Prettier
Follow the project's Prettier settings in its config file for quotes, semicolons, width, and indentation.2 files
Format with the project's format script, such as yarn format or pnpm format, rather than by hand.3 files
Some repos use Biome or oxfmt instead of Prettier, so do not run Prettier there.2 files
Formatting is enforced by hooks or CI, so unformatted code gets rejected or fixed automatically.3 files
About Electron
Named as the desktop app or wrapper, living in its own directory such as desktop or electron.3 files
Treat Electron as a thin desktop shell; keep shared logic and UI in common packages or the web app.3 files
Running Electron locally needs care: install its binaries per worktree, avoid focus-stealing e2e runs, kill stale processes.2 files
Keep main and renderer processes separate; communicate via IPC and preload bridges, with a thin main process.1 files
About Jest
Run Jest through the project's own script or make target rather than invoking it directly.4 files
Jest test files sit beside source or in __tests__ folders.2 files
Check which runner a package uses; do not mix Jest with Vitest imports or APIs.2 files
A starting AGENTS.md for React Router
The sections these files cover most, the package manager and checks React Router projects name most, and the stack React Router 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 Router ## 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-router — point CLAUDE.md here with a line: @AGENTS.md -->
- pnpm: named in 41 of 146 instruction files from open-source projects built with React Router.
- Vitest: named in 30 of 146 instruction files from open-source projects built with React Router.
- Playwright: named in 28 of 146 instruction files from open-source projects built with React Router.
- ESLint: named in 31 of 146 instruction files from open-source projects built with React Router.
Questions
What should an AGENTS.md for a React Router project include?
In 146 files from open-source React Router products: commands to build, run and test (80%), pointers to other docs (76%), testing (74%), project structure (61%), git, commits and pull requests (57%), code style (48%). The package manager they name most is pnpm (41 files).
AGENTS.md or CLAUDE.md?
Among these React Router products, 129 keep an AGENTS.md and 89 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 Router AGENTS.md?
The median is 1,022 words in these 146 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 Router, 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.