Borrowing it
Nothing to install: this file belongs to techwithanirudh/fumadocs-starter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/techwithanirudh/fumadocs-starter/main/AGENTS.mdgit clone --depth 1 https://github.com/techwithanirudh/fumadocs-starterWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/techwithanirudh/fumadocs-starter/agents-md)<a href="https://agentmods.dev/instructions/techwithanirudh/fumadocs-starter/agents-md"><img src="https://agentmods.dev/badge/instructions/techwithanirudh/fumadocs-starter/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/techwithanirudh/fumadocs-starter/agents-md"><img src="https://agentmods.dev/badge/instructions/techwithanirudh/fumadocs-starter/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01794 | $0.01794 |
| Opus 5.5 | $0.00718 | $0.00718 |
| Sonnet 5.5 | $0.00359 | $0.00359 |
| Haiku 4.5 | $0.00179 | $0.00179 |
Grade A, and why
fumadocs-starter AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
80% identical to experiments AGENTS.md — 116 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Guide
Project Overview
- Next.js App Router site with Fumadocs content and MDX.
- TypeScript in strict mode with path aliases (
@/*,@/public/*). - Tailwind CSS (v4) with PostCSS, plus Radix UI and shadcn/ui components.
- Content lives in
content/and Fumadocs-generated.source/. - Always use Context7 MCP when I need library/API documentation, code generation, setup or configuration steps without me having to explicitly ask.
Repo Layout
src/app: App Router routes, layouts, and metadata.src/components: UI and layout components.content/and.source/: MDX collections and generated content.emails/,scripts/,public/: email templates, tooling, and static assets.
Commands
- Install:
bun install - Dev/build:
bun dev,bun run build - Types:
bun run typegen,bun run typecheck - Lint:
bun run check(fix:check:write, unsafe:check:unsafe) - QA:
bun run check:links,bun run check:spelling
Testing
- No automated test runner is configured (no
testscript or test config files found). - Single-test command: not available until a test runner is added.
Philosophy
This codebase will outlive you. Every shortcut becomes someone else's burden. Every hack compounds into technical debt that slows the whole team down.
You are not just writing code. You are shaping the future of this project. The patterns you establish will be copied. The corners you cut will be cut again.
Fight entropy. Leave the codebase better than you found it.
Environment & Config
- Environment variables are validated in
src/env.tsusing@t3-oss/env-nextjsandzod. next.config.tsloadssrc/envat startup; keep env validation passing locally.- Set
SKIP_ENV_VALIDATION=trueonly for CI/build environments that cannot supply secrets. - Server env includes database, Resend, auth providers, BotID, and GitHub/Google OAuth tokens.
- Client env uses
NEXT_PUBLIC_*for analytics and base URL settings.
Content & Docs
- Author content in
content/; generated content lives in.source/(never edit by hand). bun installrunsfumadocs-mdxviapostinstallto sync MDX types.- Prefer MDX frontmatter for metadata (title, description, dates).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 159 lines · 1,794 tokens per session scan A 0788eb64eb78
fumadocs-starter AGENTS.md is an instructions file published in the GitHub repository techwithanirudh/fumadocs-starter (67 stars, last pushed 7mo ago), licensed MIT. It adds 1,794 tokens to every session, about $0.0072 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 80% identical to experiments AGENTS.md, differing in 116 lines, and is treated as a copy.
fumadocs-starter AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fumadocs-starter AGENTS.mdtechwithanirudh/fumadocs-starter | Instructions file | 67 | 7mo ago | MIT | A | 1,794 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | yesterday | MIT | A | 3,077 | GitHub Copilot |