Codex for Developers
Professional developers using Codex as an engineering tool, and building agents on OpenAI's platform
Prerequisites: Working developer setup (terminal, git, IDE) and a ChatGPT account. Module 18 (Prompt Engineering Deep-Dive) helps. Module 301 not required.
Last verified 2026-09-17
Learning objectives
By the end, participants can:
- Run Codex across its surfaces (the ChatGPT desktop app, Codex CLI, the Codex IDE extension, Codex cloud and ChatGPT on the web) and choose the right one for a task
- Write and maintain AGENTS.md files that Codex discovers and obeys
- Set sandbox mode and approval policy deliberately, starting from the defaults (sandbox_mode workspace-write with network access off, approval_policy on-request)
- Connect MCP servers and add skills, and know which mechanism a given need belongs to
- Use Codex in pull requests, code review and CI with the GitHub Action (openai/codex-action@v1)
- Build an agent loop with the Responses API, then the same loop with the Agents SDK
What's in this module
6 lessons · 6 exercises · ~7 min reading
Starts withThe mental model~1 minExecutive summary
You will learn how to run Codex as a professional tool across its surfaces, write AGENTS.md files that change behaviour, set sandbox and approval policy on purpose, extend it with MCP servers and skills, wire it into git and CI, and build a first agent loop on the Responses API and the Agents SDK.
End state is an AGENTS.md committed to your most important repo, one real backlog item shipped through Codex with review, one MCP server connected, one CI job running codex exec, and a working agent loop with one tool of your own.
After this module you can delegate scoped engineering work with confidence, structure the delegation so your team can reuse it, draw the autonomy line in a shared codebase, and move from using an agent to building one.
Sources
- OpenAI Codex documentation, overview, the surfaces and where each runs: https://learn.chatgpt.com/codex
- OpenAI Codex documentation, "AGENTS.md", discovery, merging and the size limit: https://learn.chatgpt.com/codex/agent-configuration/agents-md
- OpenAI Codex documentation, "Agent approvals and security", sandbox modes, approval policies, permission profiles and auto-review: https://learn.chatgpt.com/docs/agent-approvals-security
- OpenAI Codex documentation, "Codex GitHub Action", running
codex execin CI without exposing the key: https://learn.chatgpt.com/docs/github-action - OpenAI API documentation, "Responses vs Chat Completions", why Responses is the recommended base for agents, and "Function calling", the loop shown above: https://developers.openai.com/api/docs/guides/responses-vs-chat-completions and https://developers.openai.com/api/docs/guides/function-calling
- OpenAI Agents SDK documentation, primitives, install and the hello-world example: https://openai.github.io/openai-agents-python/
Prefer the live room?
This module also runs inside our in-person bootcamps and workshops in Copenhagen.
More in Track F
Prompt Engineering Deep Dive
The complete prompting toolkit, from structure and roles to hallucination control and complex industry prompts, plus how to measure prompt quality with evaluations.
Claude Code for Developers
How to run Claude Code as a professional engineering tool: operating manuals, subagents, hooks, skills, MCP, and git/CI workflows.
Agent Harness Engineering
How agents actually work under the hood: the model supplies intelligence, and everything else is a harness you can build.