AGENTS.md

A Markdown file in the repo root that tells Codex how to work on the project: commands, rules and what not to touch.

Codex AI expressions

Example

# AGENTS.md
- Run tests: php artisan test
- Never edit .env or /vendor
- Commit messages in English

AI says

"I followed the instructions in AGENTS.md."

It read your rules file before changing code.

Same idea elsewhere

Tool File
Claude Code CLAUDE.md
Cursor .cursor/rules

Related

Updated 2026-11-26 Approval mode →