AGENTS.md and CLAUDE.md examples for TypeScript
Of 1,018 actively developed open-source products built with TypeScript, 595 (58%) keep instruction files for coding agents: AGENTS.md in 454, CLAUDE.md in 337. The typical file is 926 words, and most cover commands to build, run and test (77%) and pointers to other docs (70%).
Real files to read
From the best-known open-source TypeScript 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 TypeScript. Each opens on GitHub.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| openclaw/openclaw | AGENTS.md | 391,701 | 2,942 | CommandsDoc pointersGit |
| earendil-works/pi | AGENTS.md | 114,350 | 1,197 | CommandsTestingDoc pointersCode styleGit |
| paperclipai/paperclip | AGENTS.md | 100,422 | 1,472 | CommandsTestingDoc pointersGit |
| ruvnet/ruflo | AGENTS.md | 74,364 | 3,327 | CommandsTestingStructure |
| calcom/cal.diy | AGENTS.md | 48,959 | 1,317 | CommandsTestingDoc pointersStructureGit |
| LibreChat-AI/LibreChat | AGENTS.md | 45,538 | 2,229 | CommandsTestingDoc pointersCode styleGit |
| HeyPuter/puter | AGENTS.md | 43,672 | 2,980 | CommandsTestingDoc pointersCode style |
| lfnovo/open-notebook | AGENTS.md | 40,079 | 501 | CommandsTestingDoc pointersGit |
| Kong/insomnia | AGENTS.md | 40,043 | 652 | CommandsTestingDoc pointersStructure |
| Yeachan-Heo/oh-my-claudecode | AGENTS.md | 39,798 | 2,904 | CommandsDoc pointersGit |
| RSSNext/Folo | AGENTS.md | 39,089 | 986 | CommandsTestingDoc pointersStructureCode styleGit |
| backstage/backstage | AGENTS.md | 34,590 | 1,048 | CommandsDoc pointersStructure |
What TypeScript projects put in them
Share of the 521 files that cover each topic, against all 641 files we read.
How they talk to the agent: 80% say “never” or “do not” somewhere (all files: 80%), 23% shout a rule in capitals like IMPORTANT or MUST (24%), and 19% tell it to ask before some changes (20%).
The tools they name
Package managerspnpm (142 files), npm (121 files), bun (71 files)
Tests and lintersVitest (112), Playwright (105), ESLint (91), Prettier (63), pytest (62), Biome (39)
A starting AGENTS.md for TypeScript
The sections these files cover most, the package manager and checks TypeScript projects name most, and the stack TypeScript 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: `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/typescript — point CLAUDE.md here with a line: @AGENTS.md -->
- pnpm: named in 142 of 521 instruction files from open-source projects built with TypeScript.
- Vitest: named in 112 of 521 instruction files from open-source projects built with TypeScript.
- Playwright: named in 105 of 521 instruction files from open-source projects built with TypeScript.
- ESLint: named in 91 of 521 instruction files from open-source projects built with TypeScript.
Questions
What should an AGENTS.md for a TypeScript project include?
In 521 files from open-source TypeScript products: commands to build, run and test (77%), pointers to other docs (70%), testing (66%), project structure (56%), code style (49%), git, commits and pull requests (47%). The package manager they name most is pnpm (142 files).
AGENTS.md or CLAUDE.md?
Among these TypeScript products, 454 keep an AGENTS.md and 337 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 TypeScript AGENTS.md?
The median is 926 words in these 521 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 TypeScript, 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.