Ensuring CLI coding agents read AGENTS.md

ai
tools
Author

Andrea Zonca

Published

July 8, 2026

When working with CLI coding agents such as Codex, Claude, Antigravity, Qwen, and OpenCode, the agent may not automatically process the AGENTS.md file in the repository.

To ensure the agent reads the necessary context and instructions, the most reliable method is to explicitly reference the file in the first request. Adding @AGENTS.md to the initial prompt guarantees that the agent processes the file before executing any tasks. This method works consistently across different CLI agents.