Home / Checks / AGENTS.md / Examples / TypeScript What to put in an AGENTS.md for a TypeScript repo The lockfile decides the package manager: package-lock.json for npm, pnpm-lock.yaml for pnpm, yarn.lock for Yarn, bun.lock for Bun. Name it, then give the type check, linter and test runner as the scripts you run through it.
Which commands should it list? npm ciinstalls exactly the lockfile; fails if it disagrees with package.json tsc --noEmittype check only, when a bundler or another tool compiles tsc -bwith project references: plain tsc doesn't build the referenced projects eslint .flat config in eslint.config.js (or .mjs, .cjs, .ts) biome check --write .or Biome: format, lint and safe fixes in one; name the one you run pnpm --filter <pkg> testone workspace package; <pkg>... adds the packages it depends on Write them as your repo runs them, with its package manager and flags, plus how to run one test.
What layout should it explain? In a monorepo, where the workspace list is (pnpm-workspace.yaml, or workspaces in package.json) and which package holds what. Which tsconfig each package uses, and whether builds go through project references. The test runner (Vitest, Jest, node --test) and how to run one file with it. What do agents get wrong? Use the repo's package manager for every install and script; another one writes a second lockfile. ESLint takes the nearest eslint.config.* above each file, so a package's own config replaces the root one. Say how strict to be about types: whether any or @ts-expect-error is ever allowed, and with what comment. From the official docs: docs.npmjs.com/npm-ci (new tab) · typescriptlang.org/tsconfig (new tab) · typescriptlang.org/project-references.html (new tab) · eslint.org/configuration-files (new tab) · biomejs.dev/cli (new tab) · pnpm.io/filtering (new tab) · bun.com/lockfile (new tab) . The rest of the file is the same for any project: what goes in an AGENTS.md .
TypeScript repos with an AGENTS.md or CLAUDE.md (64) 64 of the 83 TypeScript repos on the leaderboard have an AGENTS.md or CLAUDE.md at the root, and 59 are long enough to pass the AGENTS.md check in full. Most-starred first; each file name links to the file.
TypeScript repos on the leaderboard with an AGENTS.md or CLAUDE.md Repo File Length Stars Score openclaw/openclaw AGENTS.md 19,602 chars 394.4k ★ 81.0 anomalyco/opencode AGENTS.md 18,546 chars 226.8k ★ 74.6 n8n-io/n8n AGENTS.md 25,421 chars 210.5k ★ 83.6 firecrawl/firecrawl AGENTS.md 1,480 chars 201.7k ★ 50.7 microsoft/vscode AGENTS.md 270 chars 195.4k ★ 72.0 anthropics/claude-code CLAUDE.md 2,217 chars 155.6k ★ 47.6 excalidraw/excalidraw AGENTS.md 372 chars 135.7k ★ 84.3 earendil-works/pi AGENTS.md 13,546 chars 121.9k ★ 81.7 immich-app/immich AGENTS.md 2,449 chars 119.1k ★ 68.7 supabase/supabase AGENTS.md 7,143 chars 115k ★ 70.1 microsoft/playwright AGENTS.md 10,478 chars 100.1k ★ 79.1 OpenHands/OpenHands AGENTS.md 10,122 chars 93.5k ★ 84.0 modelcontextprotocol/servers AGENTS.md 51,045 chars 92k ★ 78.9 storybookjs/storybook AGENTS.md 4,081 chars 91.6k ★ 67.8 grafana/grafana AGENTS.md 11,087 chars 77.9k ★ 82.6 strapi/strapi AGENTS.md 12,487 chars 73.5k ★ 82.3 cline/cline AGENTS.md 5,432 chars 71.6k ★ 76.5 withastro/astro AGENTS.md 8,944 chars 63.9k ★ 78.6 makeplane/plane AGENTS.md 4,073 chars 62.4k ★ 63.3 nuxt/nuxt AGENTS.md 947 chars 61.1k ★ 80.0 appwrite/appwrite AGENTS.md 29,542 chars 58.1k ★ 80.9 remix-run/react-router AGENTS.md 7,400 chars 56.6k ★ 65.7 expo/expo AGENTS.md 9,935 chars 53.5k ★ 74.0 tldraw/tldraw AGENTS.md 13,885 chars 51.4k ★ 76.5 chenglou/pretext AGENTS.md 10,211 chars 51k ★ 67.0 TanStack/query AGENTS.md 4,246 chars 50.6k ★ 65.4 calcom/cal.diy AGENTS.md 9,222 chars 50k ★ 77.9 prisma/orm AGENTS.md 11,703 chars 47.7k ★ 69.3 payloadcms/payload AGENTS.md 24,311 chars 45.8k ★ 78.3 jestjs/jest CLAUDE.md 45 chars 45.5k ★ 71.1 colinhacks/zod AGENTS.md 21,940 chars 44.3k ★ 75.8 trpc/trpc AGENTS.md 3,530 chars 40.8k ★ 72.8 chakra-ui/chakra-ui CLAUDE.md 9,339 chars 40.7k ★ 80.8 novuhq/novu AGENTS.md 4,135 chars 40.3k ★ 84.5 mattermost/mattermost AGENTS.md 738 chars 39.6k ★ 47.0 directus/directus AGENTS.md 8,016 chars 38.7k ★ 74.7 medusajs/medusa AGENTS.md 20,082 chars 37.2k ★ 66.0 date-fns/date-fns AGENTS.md 1,209 chars 36.7k ★ 57.0 supermemoryai/supermemory AGENTS.md 12,769 chars 31.6k ★ 71.3 statelyai/xstate AGENTS.md 1,598 chars 30.5k ★ 69.1 QwenLM/qwen-code AGENTS.md 18,294 chars 30.1k ★ 82.6 simstudioai/sim AGENTS.md 11,517 chars 30.1k ★ 76.4 mastra-ai/mastra AGENTS.md 1,759 chars 29.5k ★ 84.4 nrwl/nx AGENTS.md 9,808 chars 29.5k ★ 86.3 vercel/ai AGENTS.md 16,215 chars 27.9k ★ 67.7 different-ai/openwork AGENTS.md 6,244 chars 24.5k ★ 58.3 lit/lit AGENTS.md 924 chars 21.9k ★ 67.8 vitest-dev/vitest AGENTS.md 18,761 chars 17.4k ★ 62.6 sindresorhus/ky AGENTS.md 621 chars 17.2k ★ 66.8 TanStack/router AGENTS.md 5,558 chars 15.3k ★ 78.6 millionco/react-doctor AGENTS.md 27,856 chars 15.1k ★ 64.2 electric-sql/electric AGENTS.md 14,447 chars 10.4k ★ 72.8 cloudflare/vinext AGENTS.md 41,619 chars 9.4k ★ 76.0 vercel-labs/deepsec CLAUDE.md 1,855 chars 8.4k ★ 74.6 MoonshotAI/kimi-code AGENTS.md 17,094 chars 8.2k ★ 79.6 Uniswap/interface AGENTS.md 11,442 chars 5.5k ★ 70.7 TanStack/ai AGENTS.md 9,355 chars 3.4k ★ 69.2 TheOrcDev/8bitcn-ui AGENTS.md 9,197 chars 2.1k ★ 72.4 getnao/nao AGENTS.md 3,182 chars 2k ★ 84.4 Shopify/cli AGENTS.md 6,340 chars 777 ★ 81.2 wormhole-foundation/wormhole-connect CLAUDE.md 1,240 chars 115 ★ 87.2 hsnice16/agent-friendly-code (this site's own repo) AGENTS.md 14,670 chars 2 ★ 87.2 Doka-NT/Taviraq AGENTS.md 10,691 chars 1 ★ 83.0 hsnice16/tula (by this site's author) AGENTS.md 76,825 chars 0 ★ 75.3