AGENTS.md

AGENTS.md is a Markdown file placed in a repository that gives coding agents detailed instructions on build steps, tests, and conventions.

Overview

AGENTS.md is a Markdown file format that provides coding agents with the extra context they need to work on a project, such as build steps, tests, and conventions that might clutter a README. It is kept separate from README.md files so that agents have a clear, predictable place for instructions while READMEs stay concise and focused on human contributors. The format is compatible with a growing ecosystem of AI coding agents and tools, so one AGENTS.md works across many agents. Users add an AGENTS.md file at the root of a repository and cover sections such as project overview, build and test commands, code style guidelines, testing instructions, and security considerations. For large monorepos, nested AGENTS.md files can be placed inside each package, and agents read the nearest file in the directory tree. AGENTS.md is standard Markdown with no required fields and is stewarded by the Agentic AI Foundation under the Linux Foundation.

Key Features

  • Standard Markdown format with no required fields
  • Separate file for agent-focused instructions
  • Compatibility across many AI coding agents
  • Nested files for monorepo subprojects
  • Nearest file in directory tree takes precedence
  • Sections for build, test, and style guidance
  • Scaffolding by coding agents

What Can You Use It For?

  • Giving coding agents build and test commands
  • Documenting code style guidelines for agents
  • Providing security considerations to agents
  • Tailoring instructions for monorepo subprojects
  • Adding commit and pull request guidelines
  • Migrating existing agent docs to AGENTS.md

MCP Integration

No MCP (Model Context Protocol) server is listed for AGENTS.md yet. When one is available, its URL and setup guide appear here.

Know an official MCP server for AGENTS.md? Tell us

Affiliate Program

No affiliate program is listed for AGENTS.md yet. When one is available, its link and terms appear here.

Know an official affiliate program for AGENTS.md? Tell us

Frequently Asked Questions

No. AGENTS.md is just standard Markdown, and any headings can be used because the agent parses the text provided.

The closest AGENTS.md to the edited file wins, and explicit user chat prompts override everything.

Yes, if they are listed. The agent will attempt to execute relevant programmatic checks and fix failures before finishing the task.

Yes. AGENTS.md is treated as living documentation.

Rename existing files to AGENTS.md and create symbolic links for backward compatibility.

Alternatives and Related Tools

See More

mdskills.ai is a directory of free AI skill.md files, plugins, and MCP servers for Claude Code, Cursor, Codex, and other AI tools.

DevAssure O2 is an AI testing agent that validates pull requests with scriptless end-to-end testing.

ByteRover is open-book document search for agents, returning the passage and its page from uploaded files.

The AI Surf is a directory for finding AI tools and software across categories such as art, marketing, productivity, and writing.