# AGENTS.md

> A Markdown file at the root of a project that tells coding agents how to work in it: the commands, the conventions and what not to touch.

_Updated November 23, 2026_

AGENTS.md is a plain-Markdown convention, read by many agents including Codex and OpenCode. It holds what a new teammate would need: how to install, test and run the project, the style rules, and the traps.

Claude Code reads CLAUDE.md first and falls back to AGENTS.md only when there is no CLAUDE.md; a CLAUDE.md containing the single line `@AGENTS.md` imports it, so one file serves both. The [AGENTS.md tool](https://envhaven.com/agents-md) shows which file each of the 17 agents reads.

An EnvHaven workspace writes its own AGENTS.md, with a CLAUDE.md pointing to it, so the agents that read either file know how the machine works: its ports, the preview URL and what persists.

## Keep reading

- [CLAUDE.md](https://envhaven.com/glossary/claude-md)
- [Agent skills](https://envhaven.com/glossary/agent-skills)
- [Agent harness](https://envhaven.com/glossary/agent-harness)

Source: https://envhaven.com/glossary/agents-md
