AGENTS.md and CLAUDE.md examples for TypeScript
Of 1,094 actively developed open-source products built with TypeScript, 647 (59%) keep instruction files for coding agents: AGENTS.md in 504, CLAUDE.md in 367. The typical file is 969 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 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 |
|---|---|---|---|---|
| paperclipai/paperclip | AGENTS.md | 108,038 | 1,683 | CommandsTestingDoc pointersGit |
| ruvnet/ruflo | AGENTS.md | 79,807 | 3,327 | CommandsTestingStructure |
| calcom/cal.diy | AGENTS.md | 49,437 | 1,317 | CommandsTestingDoc pointersStructureGit |
| LibreChat-AI/LibreChat | AGENTS.md | 46,389 | 2,246 | CommandsTestingDoc pointersCode styleGit |
| HeyPuter/puter | AGENTS.md | 43,922 | 3,672 | CommandsTestingDoc pointersStructureCode style |
| lfnovo/open-notebook | AGENTS.md | 40,643 | 501 | CommandsTestingDoc pointersGit |
| Yeachan-Heo/oh-my-claudecode | AGENTS.md | 40,333 | 2,827 | CommandsDoc pointersGit |
| Kong/insomnia | AGENTS.md | 40,089 | 652 | CommandsTestingDoc pointersStructure |
| RSSNext/Folo | AGENTS.md | 39,176 | 986 | CommandsTestingDoc pointersStructureCode styleGit |
| backstage/backstage | AGENTS.md | 34,722 | 1,094 | CommandsDoc pointersStructure |
| Gitlawb/openclaude | AGENTS.md | 34,180 | 1,029 | CommandsDoc pointersCode style |
| remix-run/remix | AGENTS.md | 33,435 | 1,117 | CommandsTestingDoc pointersCode styleGit |
What TypeScript projects put in them
Share of the 577 files that cover each topic, against all 731 files we read.
How they talk to the agent: 79% say “never” or “do not” somewhere (all files: 80%), 22% shout a rule in capitals like IMPORTANT or MUST (23%), and 19% tell it to ask before some changes (20%).
The tools they name
Package managerspnpm (153 files), npm (142 files), bun (74 files)
Tests and lintersVitest (118), Playwright (106), ESLint (102), pytest (74), Prettier (74), Biome (47)
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 153 of 577 instruction files from open-source projects built with TypeScript.
- Vitest: named in 118 of 577 instruction files from open-source projects built with TypeScript.
- Playwright: named in 106 of 577 instruction files from open-source projects built with TypeScript.
- ESLint: named in 102 of 577 instruction files from open-source projects built with TypeScript.
Questions
What should an AGENTS.md for a TypeScript project include?
In 577 files from open-source TypeScript products: commands to build, run and test (78%), pointers to other docs (71%), testing (66%), project structure (55%), code style (49%), git, commits and pull requests (47%). The package manager they name most is pnpm (153 files).
AGENTS.md or CLAUDE.md?
Among these TypeScript products, 504 keep an AGENTS.md and 367 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 TypeScript AGENTS.md?
The median is 969 words in these 577 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 TypeScript, 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.