AGENTS.md
AGENTS.md is an open standard for AI coding agent instructions. It provides a consistent format that works across multiple AI tools and IDEs.
The Universal Format
AGENTS.md is used by 60,000+ projects and is supported by multiple AI coding tools. When you create an AGENTS.md file, it works across Cursor, Claude, Copilot, and many other tools that support the standard.
Visit agents.mdConfiguration File
AGENTS.mdA markdown file placed in your project root that any AGENTS.md-compatible tool can read.
Why Use AGENTS.md?
One File, Many Tools
Write your instructions once, use them across all compatible AI tools
Future-Proof
New AI tools will likely support AGENTS.md as it becomes the standard
Team Consistency
Everyone on the team gets the same AI behavior regardless of their preferred editor
Community Standard
Share and discover configurations that work everywhere
Example AGENTS.md
# AGENTS.md ## Project Overview E-commerce platform with React frontend and Go backend. ## Tech Stack - **Frontend**: React 18, TypeScript, Vite, Tailwind CSS - **Backend**: Go 1.21, Gin, PostgreSQL - **Infrastructure**: Docker, Kubernetes, AWS ## Architecture ``` /frontend - React SPA /backend - Go API server /deploy - Kubernetes manifests /docs - API documentation ``` ## Code Style ### TypeScript/React - Use functional components with hooks - Prefer named exports - Use absolute imports (@/components/...) - Comprehensive TypeScript types ### Go - Follow standard Go conventions - Use interfaces for dependencies - Table-driven tests - Structured logging with slog ## Git Workflow - Conventional commits (feat:, fix:, docs:, etc.) - Feature branches from main - Required PR reviews - CI must pass before merge ## Testing - Frontend: Vitest + Testing Library - Backend: Go testing + testify - E2E: Playwright - Minimum 80% coverage for new code ## Security - No secrets in code - Use environment variables - Input validation on all endpoints - SQL parameterized queries only
Compatible Tools
AGENTS.md is supported or can be used with:
- ✓Cursor
- ✓Claude Code
- ✓Aider
- ✓Zed
- ✓Continue
- ✓Many others
Monorepo Support
AGENTS.md supports hierarchical configurations for monorepos and multi-package projects. Place AGENTS.md files at multiple levels:
my-monorepo/
├── AGENTS.md # Root: shared rules for entire repo
├── packages/
│ ├── web/
│ │ └── AGENTS.md # Web app specific rules
│ ├── api/
│ │ └── AGENTS.md # API server specific rules
│ └── shared/
│ └── AGENTS.md # Shared library rules
└── tools/
└── AGENTS.md # Build tools specific rulesInheritance
AI tools read the closest AGENTS.md to the file being edited, while also considering parent-level rules for shared context.
Specificity
Package-level AGENTS.md can override or extend root rules with specific tech stacks, conventions, or boundaries.
Tip: Use the root AGENTS.md for project-wide rules (git workflow, security policies, team conventions) and subfolder AGENTS.md for package-specific rules (tech stack, testing frameworks, code style).
LynxPrompt + AGENTS.md
LynxPrompt generates AGENTS.md files by default when you use the wizard. You can also:
- Generate AGENTS.md alongside platform-specific files (e.g., .cursor/rules)
- Create blueprints that include AGENTS.md
- Use AI editing to customize your AGENTS.md
- Generate separate configurations for each package in your monorepo