The Problem It Solves

AI coding assistants need to know how your project works—what commands to run, how to test, what conventions to follow. Without clear instructions, every AI tool guesses differently and often gets it wrong.

Without AGENTS.md

Every AI coding tool guesses how your project works. Cursor might format code differently than Copilot. Claude Code doesn't know your test commands. Each tool has its own config file—.cursorrules, CLAUDE.md, copilot-instructions.md.

Update one, forget the others. The AI suggests patterns you've deprecated. It runs the wrong build command. It commits directly to main because nobody told it not to.

Five tools, five config files, five chances to get out of sync.

With AGENTS.md

One Markdown file in your project root. Every AI tool reads it. Your coding standards, your test commands, your project structure, your boundaries—written once, followed by 25+ tools.

Like an employee handbook for AI assistants. They know how to build, how to test, what's off limits, and who to ask before making certain changes.

One file. Every tool. Same instructions.

How It Works in Practice

  1. Drop an AGENTS.md file in your project root. It's plain Markdown—no special syntax, no dependencies, no build step. Write your build commands, code style, and boundaries in a format any developer (or AI) can read.
  2. A developer opens the project in an AI-powered editor—Cursor, VS Code with Copilot, Claude Code, Windsurf, or any of the 25+ supported tools.
  3. The AI tool discovers the file automatically. It looks for AGENTS.md in the project root and any parent directories. No configuration needed—just the file's presence is enough.
  4. The AI reads your instructions. Build commands, test commands, code conventions, security boundaries—everything you wrote becomes the AI's operating context for this project.
  5. Developer asks the AI for help. "Write a new API endpoint," "Fix this failing test," "Refactor this component"—normal AI-assisted development.
  6. The AI follows your rules. It uses your specified build commands, follows your coding conventions, runs your test suite, and respects your "never do" boundaries—because you told it to, in one file.
  7. In monorepos, nested files refine the instructions. A subdirectory's AGENTS.md adds package-specific rules on top of the root file. The closest file to the code being edited takes precedence.

Where AGENTS.md Shows Up

AGENTS.md is just a Markdown file—but its impact is real. Here's where it makes the biggest difference.

Team Development

Everyone on the team uses AI assistants, but each person uses a different tool. AGENTS.md ensures every tool follows the same project conventions, no matter which AI is being used.

"Whether someone uses Cursor, Copilot, or Claude Code, they all follow our coding standards."

Monorepo Management

Nested AGENTS.md files give each package its own instructions. The frontend package knows about React conventions; the backend knows about Express patterns; the shared library follows its own rules.

"Our monorepo has 5 AGENTS.md files—one per package plus the root with global rules."

Open Source Projects

Contributors using AI assistants automatically get project context. Apache Airflow, with 4,000+ contributors, uses AGENTS.md to communicate complex testing and contribution requirements to AI tools.

"New contributors' AI tools immediately know our build commands and testing requirements."

Security Boundaries

The three-tier boundary system tells AI what to always do, what to ask about first, and what to never touch. Critical for protecting production configs, secrets, and sensitive paths.

"The AI knows to never touch .env files and to always ask before modifying auth flows."

Onboarding New Developers

New team members' AI assistants get instant context about the project. Commands, conventions, and boundaries are all in one place—no more asking teammates how to run tests.

"Day one, my AI assistant already knew our build process, test commands, and code style."

Enterprise Standardization

OpenAI has 88 AGENTS.md files across their repositories. Large organizations use it to enforce consistent AI behavior across dozens of projects and hundreds of developers.

"Every project in our org follows the same AGENTS.md template with security requirements."

Why It Matters

Zero dependencies. It's just a Markdown file. Drop it in your repo and it works. No packages to install, no services to configure, no schemas to validate.

60,000+ repositories have already adopted AGENTS.md. It works with Cursor, Copilot, Claude Code, Aider, VS Code, Windsurf, Gemini CLI, and 20+ more tools. Every major AI coding assistant reads it.

Developed collaboratively by OpenAI, Google, Cursor, Sourcegraph, and Factory, then donated to the Linux Foundation's Agentic AI Foundation under the MIT license for vendor-neutral governance. No single company controls the standard.

An analysis of 2,500+ repositories found that the best AGENTS.md files share six characteristics: clear commands, testing procedures, project structure, code style with examples, git workflow, and explicit boundaries. Keep it under 150 lines and iterate based on what you see the AI getting wrong.

Key Concepts in Plain Language

The Standard

AGENTS.md is the simplest standard here—a single Markdown file that gives AI coding assistants explicit instructions. What to do, what not to do, how your project works. One file, every tool.

What It Looks Like

Here's a starter AGENTS.md you can copy into your project root and adapt:

# My Project

## Build & Test Commands
- Type-check and lint: `pnpm check`
- Run full test suite: `pnpm test --run`
- Run single test file: `pnpm test --run path/to/file.test.ts`
- Start dev server: `pnpm dev`

## Code Style
- Prefer functional components with hooks
- Use `zod` for request validation
- Follow existing patterns in `src/components/`

## Security Boundaries
- ALWAYS run tests before committing
- NEVER commit `.env` files or hardcode API keys
- NEVER modify files in `config/production/`
- ASK before changing authentication flows

That's a complete, working AGENTS.md in 15 lines. Every AI coding tool that reads this file will follow these instructions. Start here, then add rules when you see the AI making repeated mistakes.

How to Apply This

What to Watch Out For

Honest Limitations

  • Boundaries are written in natural language, which means they're suggestions, not enforcements. An AI might still violate a "never do" rule in edge cases.
  • AGENTS.md is part of your attack surface. A malicious file in a forked repo could attempt to manipulate agent behavior. Review AGENTS.md in pull requests from external contributors.
  • Some fragmentation persists—Claude Code still prefers CLAUDE.md and Cursor has .cursorrules. You may need symlinks or dual files for full coverage.
  • AGENTS.md needs maintenance. Outdated instructions (wrong build commands, deprecated patterns) actively make the AI worse. Treat it like living documentation.
  • There's no validation or enforcement mechanism. The AI reads AGENTS.md as guidance, not as a constraint system. Structured permissions are proposed but not yet standardized.

Get Started