AGENTS.md – Open format for guiding coding agents
TL;DR Highlight
If README.md is a guide for humans, AGENTS.md is a project guide for AI coding agents — already used in over 60,000 open-source projects.
Who Should Read
Developers using AI coding agents (Cursor, Copilot, Codex, Claude Code, etc.) in production who want to help agents better understand project context.
Core Mechanics
- AGENTS.md is a markdown file that tells AI coding agents about a project's build commands, test methods, code style rules, etc. While README.md is for human onboarding, AGENTS.md is for agent onboarding.
- 20+ coding agents/tools already support AGENTS.md including OpenAI Codex, Google Jules, Cursor, Windsurf, Aider, GitHub Copilot, Gemini CLI, Factory, Zed, and Warp. A single file applying to multiple agents is the key selling point.
- Usage is simple: create AGENTS.md at the project root with project overview, build/test commands, code style, PR rules, etc. No required fields or schema — just markdown.
- In monorepos, each subproject can have its own AGENTS.md. Agents read the nearest file in the directory tree, enabling per-package custom instructions. OpenAI's main repo reportedly has 88 AGENTS.md files.
- The Agentic AI Foundation under the Linux Foundation now officially stewards this format. It's an open format built collaboratively by OpenAI, Google, Cursor, Amp, Factory, and others.
- Over 60,000 open-source projects on GitHub already use AGENTS.md, including large projects like Apache Airflow (4,215 lines) and Temporal SDK (122 lines).
- It's more of a filename convention than a true standard. There's no enforced structure — you can write anything in the markdown. This is both its strength and limitation.
Evidence
- Currently Claude Code uses CLAUDE.md, Cursor uses .cursorrules, Windsurf uses .windsurfrules — each agent has its own file, so unification under a single AGENTS.md isn't actually happening. Some use tools like ruler (github.com/intellectronica/ruler) to auto-generate multiple formats.
- An ironic reaction was common: 'People wouldn't write docs for humans, but they write them for robots.' Ultimately, organizing docs for AI benefits humans too — the 'ergonomic handles' analogy resonated.
- Experience shared that splitting into a folder structure (.agents/index.md + auth.md + testing.md) is far better than one giant markdown. Reduces token waste and enables selective context loading.
- Fundamental skepticism: 'Wasn't the promise of LLMs that agents understand codebases without special guides?' Some argue good human-centered docs should be sufficient, while others shared using AST+RAG hybrid search for 5,000+ repos as a more effective approach.
- Anthropic/Claude was noted as missing from the support list. Claude Code uses its own CLAUDE.md, with symlinks (AGENTS.md → CLAUDE.md) mentioned as a workaround.
How to Apply
- If you maintain an open-source project, add AGENTS.md at the project root with build commands, test instructions, code style rules, and PR conventions to improve quality when external contributors work with AI agents.
- When using multiple agents (Claude Code + Cursor, etc.), write AGENTS.md as the master file then create symlinks: ln -s AGENTS.md CLAUDE.md, ln -s AGENTS.md .cursorrules. Or use the ruler tool (github.com/intellectronica/ruler) for auto-generation.
- In monorepos with different build/test methods per package, place separate AGENTS.md files in each package directory. Agents read the nearest file when working in that directory, reducing unnecessary context loading.
- If AGENTS.md gets too large, consider switching to a .agents/ folder structure. Put the main guide in index.md and split into auth.md, testing.md, data_layer.md, etc. for better token efficiency and maintainability.
Code Example
# AGENTS.md Example
## Setup commands
- Install deps: `pnpm install`
- Start dev server: `pnpm dev`
- Run tests: `pnpm test`
## Code style
- TypeScript strict mode
- Single quotes, no semicolons
- Use functional patterns where possible
## Testing instructions
- Run `pnpm turbo run test --filter <project_name>`
- Fix any test or type errors until the whole suite is green
- Add or update tests for the code you change
## PR instructions
- Title format: [<project_name>] <Title>
- Always run `pnpm lint` and `pnpm test` before committing
# Supporting multiple agents with symbolic links
$ ln -s AGENTS.md CLAUDE.md
$ ln -s AGENTS.md .cursorrulesTerminology
Related Papers
Show HN: OpenKnowledge – open source AI-first alternative to Obsidian/Notion
Git 기반 동기화와 Claude/Codex/Cursor 연동을 내장한 로컬 우선 마크다운 에디터로, AI 에이전트의 두 번째 뇌(LLM Wiki)로 활용할 수 있는 오픈소스 도구다.
The Unfireable Safety Kernel: Execution-Time AI Alignment for AI Agents and Other Escapable AI Systems
AI 에이전트가 자신의 안전장치를 우회할 수 없도록, 에이전트 프로세스 바깥에 수학적으로 증명된 강제 통제 게이트를 배치하는 아키텍처
RubyLLM: A Ruby framework for all major AI providers
OpenAI, Claude, Gemini 등 주요 AI 프로바이더를 단일 인터페이스로 통합한 Ruby 프레임워크로, Rails 통합과 에이전트 기능까지 지원해 Ruby 개발자가 AI 기능을 빠르게 붙일 수 있다.
Qwen-AgentWorld: Language World Models for General Agents
Alibaba Qwen 팀이 AI 에이전트가 행동 결과를 미리 시뮬레이션할 수 있는 'Language World Model'을 공개했다. 에이전트 훈련과 실행 경로 검증에 새로운 패러다임을 제시하는 연구다.
SHERLOC: Structured Diagnostic Localization for Code Repair Agents
버그 위치만 알려주는 게 아니라 '왜, 어떻게 고쳐야 하는지'까지 진단 리포트를 생성해서 코드 수정 에이전트의 성능을 높이는 training-free 프레임워크
Show HN: peerd – AI agent harness that runs entirely in your browser
백엔드 서버 없이 Chrome/Firefox 확장 프로그램으로만 동작하는 AI 에이전트 실행 환경으로, 브라우저 탭을 직접 조작하고 WASM Linux VM까지 구동할 수 있어 프라이버시와 보안을 동시에 챙길 수 있다.