Short answer
AGENTS.md is a project instruction file for Codex. It tells Codex about repository structure, commands, tests, coding style, commit rules, and collaboration preferences.
It is for stable project rules, not one-time tasks. Put one-time requirements in the current conversation.
What to include
- How to install dependencies, start the project, and run tests
- Common validation commands
- Coding style and naming conventions
- Directories that should not be changed casually
- Required checks before finishing
- Team preferences for communication and output
What not to include
- API Keys, tokens, passwords, or private credentials
- Temporary task instructions
- Long product background stories
- Generic prompts unrelated to the repository
- Outdated commands and paths
Suggested structure
Common mistakes
- Turning
AGENTS.mdinto a very long universal prompt. - Writing secrets into the file.
- Forgetting to update it when project commands change.
- Mixing
AGENTS.mdwith user-levelconfig.toml. - Assuming rules remove the need to review diffs and tests.
About LLMEasy
If a team uses LLMEasy to unify model routing,AGENTS.md still matters. The API layer handles model requests and usage records. AGENTS.md handles project context and execution norms.
Use both to reduce configuration confusion and collaboration cost.
Related docs
- What is Codex CLI?
- How to configure Codex CLI config.toml
- What are Codex CLI sandbox and approval modes?
- What is CLAUDE.md in Claude Code?

