--- title: "Codex best practices: the official resources" description: "OpenAI's own docs, courses, talks and videos on getting good work out of Codex, collected in one place." level: Beginner minutes: 5 publishedAt: 2026-10-30 updatedAt: 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](https://learn.chatgpt.com/guides/best-practices) 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](/chatgpt/agents-md-codex) 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 OpenAI's own guide to better results across the Codex CLI, IDE extension and app: prompting, planning, AGENTS.md, testing and review, MCP, skills, and common mistakes. If you read one thing, read this. The home of OpenAI's Codex docs, with use cases, setup guides and the latest product updates. Install the CLI, sign in and run your first task in the terminal, with links to the command reference and automation. Use Codex in VS Code, Cursor, Windsurf, Xcode or JetBrains, review edits inline, and hand longer tasks to the cloud. Run coding tasks remotely: set up a cloud environment, control network access and secrets, and review changes before you open a PR. ## Set up your project How Codex finds and combines AGENTS.md files, from a global file down to per-folder overrides. Set defaults in config.toml, such as the model, approval prompts and sandbox level, for you or for one project. Run Codex safely with sandboxing, approval policies and network controls. Package instructions, resources and scripts as skills that extend Codex, and share them as plugins. Connect Codex to outside tools by adding MCP servers. ## Stay current Dated release notes for the Codex CLI, the Codex app and ChatGPT. OpenAI's developer blog posts about Codex, newest first. Worked examples for automating developer workflows and building with Codex agents and tools. ## Courses and training OpenAI Academy's Codex hub for learning to write code, run tasks and build automated workflows. A recorded OpenAI Academy webinar on the fundamentals of working with Codex. Free sign-in to watch. ## Talks and videos OpenAI's library of Codex demos, walkthroughs and talks, grouped by topic. OpenAI's Codex learning page, with product videos on the Codex app, code review, JetBrains and building frontends.