fumadocs-starter: Instructions file for Codex

AGENTS.md

fumadocs-starter AGENTS.md is an instructions file for Codex, OpenCode from techwithanirudh/fumadocs-starter. It costs 1,794 tokens per session, scanned A, a copy of experiments AGENTS.md, MIT.

A repository instruction file for a Fumadocs starter project, a Next.js website that publishes Markdown and MDX documentation. It describes the project layout, commands, required documentation lookups, and available checks.

In plain words
What is it for?
Use it when developing, checking, building, or documenting this Fumadocs and Next.js project.
Why use it?
It gives a coding agent the local rules and commands needed to work consistently in this specific repository. It also records that no automated test runner is configured.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is techwithanirudh/fumadocs-starter's own configuration. It tells Codex and OpenCode how to work on fumadocs-starter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fumadocs-starter configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/techwithanirudh/fumadocs-starter/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/techwithanirudh/fumadocs-starter

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for fumadocs-starter AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/techwithanirudh/fumadocs-starter/agents-md/github.svg)](https://agentmods.dev/instructions/techwithanirudh/fumadocs-starter/agents-md)
Your own site
<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.

agentmods 80×15 button for fumadocs-starter AGENTS.md

Your own site · 80×15
<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>
Per session 1,794 This file is loaded in full into every session.
When invoked 1,794 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 80% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 11d ago against content hash 0788eb64eb78, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

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.

AGENTS.md · 159 lines

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 test script 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.ts using @t3-oss/env-nextjs and zod.
  • next.config.ts loads src/env at startup; keep env validation passing locally.
  • Set SKIP_ENV_VALIDATION=true only 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 install runs fumadocs-mdx via postinstall to sync MDX types.
  • Prefer MDX frontmatter for metadata (title, description, dates).

Read the full file on GitHub · 159 lines

Changes

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.

  1. 11d ago First seen · 159 lines · 1,794 tokens per session scan A 0788eb64eb78

Subscribe to this mod's changes

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.

Related

fumadocs-starter AGENTS.md compared with instructions from other repositories

fumadocs-starter AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fumadocs-starter AGENTS.mdtechwithanirudh/fumadocs-starterInstructions file677mo agoMITA1,794Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot