Free Tool
AGENTS.md Generator
AGENTS.md is the open "README for AI agents" that Codex, Cursor, Gemini CLI, GitHub Copilot, Jules and many other tools read. Claude Code reads it too. Fill in your commands and rules and get a clean AGENTS.md, plus a two-line CLAUDE.md so Claude Code picks it up even when you have both files.
Start from:
AGENTS.md
AGENTS.md
# AGENTS.md ## Project overview A web app for small teams to collect and sort customer feedback. ## Setup commands - Install dependencies: `pnpm install` - Start dev server: `pnpm dev` - Run tests: `pnpm test` - Lint: `pnpm lint` - Build: `pnpm build` ## Code style - TypeScript strict mode; no `any` - Server Components by default; add "use client" only when needed - Named exports for components ## Testing instructions - Add or update tests for every change - Run the full test suite before finishing ## Security - Never commit secrets or .env files - Don't log personal data ## PR instructions - Title format: [area] Short description - Run lint and tests before committing
CLAUDE.md (optional, for Claude Code)
CLAUDE.md
@AGENTS.md ## Claude Code - Use plan mode for large changes.
How to use AGENTS.md with Claude Code and other agents
- Save the first file as
AGENTS.mdin your repository root and commit it. - Every agent that supports the format reads it automatically. In a monorepo, add another AGENTS.md per package; the nearest one wins.
- Claude Code reads AGENTS.md on its own when there's no CLAUDE.md. If you have a CLAUDE.md, add
@AGENTS.mdto it (the second file below) so Claude reads both. - Keep it short and factual: commands, conventions and rules agents can't work out from the code.
Want ready-made agents that follow your AGENTS.md rules? claudeagents adds 85 specialist agents for coding, SEO and marketing to Claude Code, and its skills also work in Cursor and Codex.
Frequently asked questions
AGENTS.md is an open, plain-Markdown file that tells AI coding agents how to work in your project: setup and test commands, code style, testing and PR rules. It's described as a README for agents and is used by tens of thousands of open-source projects.
Yes. Since Claude Code v2.1.277 it reads AGENTS.md as project instructions when there's no CLAUDE.md. If you also have a CLAUDE.md, add the line @AGENTS.md to it so Claude Code reads both.
The agents.md site lists Codex, Cursor, Gemini CLI, GitHub Copilot's coding agent, Jules, Aider, Windsurf, Zed, Warp, VS Code, Devin, Junie, Amp, opencode and many more. Claude Code reads it too.
Use AGENTS.md as the shared file every agent reads, and keep a short CLAUDE.md that imports it with @AGENTS.md plus any Claude-only notes. That way one file serves every tool your team uses.
In the root of your repository. In a monorepo you can add another AGENTS.md inside each package; agents read the nearest one, so the closest file to the code being edited wins.
No. It's standard Markdown with any headings you like. Common sections are setup commands, code style, testing instructions, security notes and PR rules.