ChatGPT & Codex

Codex best practices: the official resources

OpenAI's own docs, courses, talks and videos on getting good work out of Codex, collected in one place.

Beginner 5 min read 6 sections 2026-10-30 Updated 2026-10-31

OpenAI builds Codex, and its team already publishes the best guidance on how to use it. Rather than rewrite that, this page points you to it. Everything below is made and kept up to date by OpenAI. We add a one-line summary so you can pick where to start.

Codex changes every few months, so we favor pages OpenAI keeps current over one-off posts. Talks and webinars show their date so you can tell how recent they are.

The short version

OpenAI's best-practices guide asks you to treat Codex less like a one-off assistant and more like a teammate you set up once and improve over time. In practice that means:

  • Write prompts with four parts. Say the goal, the context Codex needs, the constraints, and what "done" looks like. Use lower reasoning effort for small, well-scoped tasks and higher for debugging or long changes.
  • Plan before hard tasks. For anything complex or fuzzy, switch on Plan mode with /plan or Shift+Tab, or ask Codex to interview you about the idea before it writes code.
  • Move repeated rules into AGENTS.md. Keep it short: how to build, test and lint, the conventions, and what done means. When Codex makes the same mistake twice, add a line. Our AGENTS.md guide shows how.
  • Let it check its own work. Ask Codex to write or update tests and run the checks, then review the diff with /review before you accept it. Start with the default permissions and loosen them only for repos you trust.
  • Keep chats focused. Use one chat per piece of work rather than one for the whole project, which bloats the context and gets worse over time. Turn a prompt you keep reusing into a skill, and only schedule a task once it works reliably by hand.

Start here

Set up your project

Stay current

Courses and training

Talks and videos

Keep going