100% Browser-Local · AAIF Standard · OpenAI Codex · Cursor · Windsurf · Cline · Copilot

AGENTS.md Generator, Manifest Parser & Token Budget Linter

Don't fill out 15 blank text boxes by hand. Drop or paste your project's package.json, pyproject.toml, Cargo.toml, or go.mod below—or pick a 2026 stack preset—to generate a battle-tested, token-lean AGENTS.md file that stays well under OpenAI Codex CLI's 32 KiB limit.

1. Import Project Manifest or Pick a Stack Preset Zero Server Upload

📂 Drop package.json, pyproject.toml, Cargo.toml, or go.mod here
Or click to select a local manifest file — parsed 100% in browser memory
Quick Stack Presets

2. Live AGENTS.md Output & Codex CLI Linter AAIF Compliant

~190 tokens (Target: < 1,500 tokens) 760 / 32,768 bytes (Codex CLI max)
    # AGENTS.md — nextjs-web-app
    
    > Cross-agent repository instructions for OpenAI Codex, Cursor, Windsurf, Cline, Roo Code, OpenCode & GitHub Copilot.
    
    ## Tech Stack & Architecture
    - **Primary Stack**: Next.js 15 (App Router), React 19, TypeScript 5, Tailwind CSS v4, Vitest, Playwright
    
    ## Setup, Build & Verification Commands
    - **Install dependencies**: `pnpm install`
    - **Start dev server**: `pnpm dev`
    - **Build & typecheck**: `pnpm build && pnpm typecheck`
    - **Run tests & linter (run before completing any task)**: `pnpm test:unit && pnpm lint`

    How OpenAI Codex, Cursor & Cline Load AGENTS.md

    • Hierarchical Chain Discovery: OpenAI Codex CLI builds an instruction chain starting from ~/.codex/AGENTS.md, moving to your Git repository root, and walking down to the current working directory (cwd), merging at most one file per directory (checking AGENTS.override.md first, then AGENTS.md).
    • Cumulative 32 KiB Budget (project_doc_max_bytes = 32768): Crucially, the 32 KiB limit is cumulative across the entire directory chain—not per file. If a bloated root AGENTS.md consumes 28 KiB, nested sub-package files (like packages/api/AGENTS.md) are silently truncated or dropped. Keep your root AGENTS.md under 4 KiB (~150 lines) and enforce style rules via deterministic linters/hooks.
    • Single Source of Truth with Claude Code: Backed by the Agentic AI Foundation (AAIF), AGENTS.md works across Codex, Cursor, Cline, Aider, Windsurf, and Copilot, whereas Claude Code reads CLAUDE.md. Use our AGENTS.md vs CLAUDE.md Converter to create a 2-line @AGENTS.md import bridge so every tool shares one file.