AI Help

How do I check which AGENTS.md instructions Codex is using in a folder?

Trace applicable instruction files from the global configuration through the repository and working directory. Ask Codex to identify what it loaded.

Steps to follow

  1. Confirm the current directory and repository root. Inspect relevant AGENTS.md and supported override files in the directory chain.
  2. Read the instructions closest to the files being changed and check the documented precedence and size limits.
  3. Ask the agent to list the applicable guidance and required commands, then verify its actions against those files.

Example in practice

Illustrative example. A frontend folder's AGENTS.md can supply a package-specific test command in addition to repository-wide guidance.

Related AI help

Official guidance

OpenAI documentation