# AGENTS.md

AGENTS.md is an open format for giving coding agents instructions about a repository: a
Markdown file, usually at the repository root, that works as a README written for agents. It
holds what an agent needs and a human reader usually doesn't: build and test commands, code
style rules, testing instructions, security notes, and how to write commits and pull requests.
The Agentic AI Foundation, under the Linux Foundation, maintains the format.

It exists so that one file, in one plain format, can carry a repository's instructions for
every agent that reads it, instead of a separate file for each tool.

There is no required structure. It is ordinary Markdown with any headings, and the agent reads
the text as written. A large repository can have one file per package. An agent reads the
nearest file in the directory tree, so the file closest to the code being edited takes
precedence, and an explicit instruction in the chat overrides all of them. Many coding agents
read it, and some tools also read a file of their own, such as CLAUDE.md for Claude Code.

The file is part of the agent's context on every task, so it carries the same risks as any
prompt. A long file costs tokens and attention on every run, an outdated command sends the
agent down the wrong path, and nothing checks that the agent followed it. When an agent
ignores a rule, the file says what was asked, and only the trace shows what the agent read and
did.

---

Source: https://tessary.ai/answers/agents-md
All concepts: https://tessary.ai/answers
From Tessary, agent reliability for AI agents in production: https://tessary.ai
