AGENTS.md (format)
An open, unschematized markdown format for providing cross-agent project instructions. Named after the file it lives in:AGENTS.md at the repo root.
Website: agents.md
Steward: Agentic AI Foundation / Linux Foundation
Origin
Emerged from multi-vendor collaboration: OpenAI Codex, Amp, Jules (Google), Cursor, Factory. OpenAI Codex first popularized the format; the Agentic AI Foundation now stewards it as a neutral open standard. Adopted by 60k+ open-source projects as of 2026.Format Rules
- Plain markdown. No schema. No required fields.
- Any heading structure is valid.
- Closest file in directory tree wins (nested-AGENTS.md for monorepos).
- User chat prompts override file contents.
Implementations by Tool
Each tool implements its own discovery and layering on top of the format:Migration
.aider.conf.yml) — requires opt-in:
Multi-file Strategies
The base format is single-file. Tools extend it differently:- Codex:
AGENTS.override.mdlayering +project_doc_fallback_filenamesfor alternate names - OpenCode:
instructionsfield inopencode.json— glob patterns, multiple files, remote URLs - Claude Code: CLAUDE.md with
@path/to/file.mdimports - Manual: Teach agent to lazy-load referenced files via
@docs/file.mdreferences in instructions
Related Pages
- OpenAI Codex — Codex layering mechanisms (AGENTS.override.md, 32 KiB limit, fallback filenames)
- Rules vs. Hooks — static rules vs. dynamic hooks; critique of single-file abstraction
- Agent Context Instructions — the concept this format implements
Linked pages
- Agent Context Instructions
- Claude Code → Cross-Platform Migration Matrix
- Gemini CLI
- Memory Bank Pattern
- Open Knowledge Format (OKF)
- OpenAI Codex
- Rules vs. Hooks
- Spec-Driven Frameworks vs Native Claude Code