AGENTS.md
Definition
An open, tool-neutral Markdown file of instructions for coding agents working in a repository, read by many different agents and editors.
In more detail
It typically covers how to install, build and test the project, code style, and things the agent must not do. Codex, Cursor, GitHub Copilot and many other agents read it, and nested files can give folder-specific instructions.
Keep it short and factual: commands that work, conventions that matter, and nothing the agent could work out from the code itself. Codex, for example, stops reading AGENTS.md files once they add up to 32 KiB by default, so a long file can lose its last rules without any warning.
Related terms
CLAUDE.md
Claude Code's instruction file, read at the start of a session from the project and user directories, so standing rules apply every time.
Context engineering
Deciding what information, tools and history a model sees at each step, and what to leave out, to get the result you want.
Agentic AI Foundation (AAIF)
A Linux Foundation fund, set up in December 2025, that hosts open agent projects such as MCP, AGENTS.md, goose and Agent Skills.
Cursor rules
Instruction files in a project's .cursor/rules folder that tell Cursor's agent about conventions, applied always, by file pattern or on request.
llms.txt
A proposed Markdown file at a website's root that summarises the site and links to its key documentation pages for language models.
Read more about AGENTS.md
- CLAUDE.md and AGENTS.md: instruction files for coding agents
CLAUDE.md vs AGENTS.md: what to put in each, where Claude Code, Codex, Cursor and Copilot look for them, and how to keep one source of truth without drift.
- Write a useful AGENTS.md: example, template and test
An AGENTS.md example and template with build and test commands, conventions and traps, plus a before-and-after task that shows whether the file actually helps.
- Writing instructions for agents
Briefs, AGENTS.md files and skills an agent can finish without guessing.