A shared global AGENTS file for Codex work rules

The item proposes a default working contract for using Codex across many . The rules apply to every unless a more specific AGENTS.md overrides them. The main rule is to avoid guessing and base decisions on inspected files, command output, , or clear user instructions.

If something is missing, uncertain, or not checked, Codex should say that plainly. Current user instructions take priority over the default rules, and conflicts should be resolved by following the most specific and most recent instruction. In Codex CLI, RTK should not be assumed to automatically intercept .

The rules also point to being careful when a command may produce a very large amount of output.

Key points

  • It suggests a global Codex working contract across .
  • Codex should not invent files, commands, APIs, , or project rules.
  • Unverified or uncertain information should be stated clearly.
  • User instructions for the current task override the default rules.
  • Large command outputs should be handled carefully.
Read original