What is a agents.md?

AGENTS.md is a Markdown file in a code repository that gives AI coding agents the instructions they need to work on that project.

It is a README written for agents and not for people. It sits at the root of the repository, and coding tools that support it read it before they start work. There is no required structure: it is plain Markdown with whatever the agent needs, such as how to install and test, code conventions, and things it must not do. A file in a subfolder can add rules for that part of the project.

It matters because an agent only knows what it can read. Without written instructions it guesses, and a common guess for "add a contact form" is to write a new server route and wire up an email service. A line in AGENTS.md saying how forms are handled in the project gets the same result every time.

For forms, that line can name the form backend and the endpoint to post to. FormTango publishes its own instructions for AI coding tools at https://formtango.com/ai.md, which an agent can read to add a working form.

markdown
# AGENTS.md

## Forms
- Do not write server code for forms.
- Post forms to https://formtango.com/f/YOUR_FORM_ID with method="POST".
- Give every input a name attribute.

Related