Codex CLIsetupbuilt-in

/init

Generate an AGENTS.md scaffold in the current directory for persistent repo instructions.

About

AGENTS.md is Codex's equivalent of Claude Code's CLAUDE.md — a file the agent reads at the start of every session for repo-specific instructions, conventions, and context.

When to use

  • First session in a new repo
  • Setting up team-wide coding conventions the agent should follow
  • Documenting API patterns, testing requirements, and style guides

More Codex CLI commands