---
title: "AGENTS.md"
url: https://www.daytona.com/definitions/a/agents-md
---

# AGENTS.md

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

AGENTS.md is a file that tells coding agents how to work in a repository. It sits at the root of the repository, and larger projects can add more of them in subfolders. It is plain Markdown with no required structure. Many coding agents read it at the start of a session and add it to their context.

The file holds information that a README for people often leaves out. Typical content includes the commands to build and test the project, the code style, and the rules for commits and pull requests. It can also warn about files that must not change or steps that are easy to get wrong. When files are nested, the agent follows the one closest to the files it edits.

AGENTS.md started in 2025 as a shared format across several coding agents, instead of a separate file for each tool. It complements agent skills, which hold instructions for tasks rather than for one project. An agent that clones a repository into a sandbox reads the file to learn how to set up and test the code there. Clear test commands in the file let the agent check its own changes before it reports back.

## Related terms

- [Coding agent](https://www.daytona.com/definitions/c/coding-agent.md)
- [AI Agents](https://www.daytona.com/definitions/a/ai-agents.md)
- [Context](https://www.daytona.com/definitions/c/context.md)
- [Agent skills](https://www.daytona.com/definitions/a/agent-skills.md)
