Agentic AI AcademyAgentic AI Academy

What Codex Is (and Isn't)

An agentic coding system, three eras of one name

Beginner 13 minBuilderDecision-maker
What you'll be able to do
  • Define Codex 2026 as an agentic SWE system and distinguish it from Copilot-style autocomplete
  • Explain why an agent that reads, edits, and runs code still asks permission and stays steerable
  • Disambiguate the three eras of the 'Codex' name (2021 model, 2023 shutdown, 2025 agent) so older sources don't mislead you
  • Describe what codex-1 was and how the model lineage evolved into today's GPT-5.x-Codex family
  • Explain the 'one Codex' idea: an umbrella of surfaces sharing one model family and one ChatGPT account
  • Identify which Codex facts are volatile and where to verify them live
At a glance

OpenAI Codex in 2026 is an agentic software-engineering system: it reads, edits, and runs your code, runs tests, invokes tools, and proposes pull requests — needing permission to act and staying steerable. This lesson fixes that mental model, then untangles the three very different things that have all been called 'Codex' so older articles never confuse you, and frames Codex as one agent and one account spread across many surfaces.

  1. 1The mental model: an engineering agent, not an autocomplete
  2. 2An agent that acts — but asks first and stays steerable
  3. 3Three eras of one name (don't conflate them)
  4. 4The 2025 relaunch and the model lineage
  5. 5One Codex: one model family, one account, many surfaces
  6. 6What's true today vs. what will change

The mental model: an engineering agent, not an autocomplete

Before any commands, install scripts, or model names, lock in one idea, because the entire course rests on it: Codex is an agent, not an autocomplete.

An autocomplete tool watches your cursor and offers the next line. You are still doing the work — reading the codebase, deciding what to change, opening files, running the tests, fixing what broke. The tool just types a little faster than you would.

Codex works the way a capable engineer does. You hand it a goal in plain language — "add rate limiting to the login endpoint and update the tests" — and it reads the relevant parts of your repo, proposes a plan and the commands it wants to run, edits files, runs the tests, reads the failures, fixes them, and can open a pull request. OpenAI describes it as "OpenAI's coding agent for software development," used by developers to "write, refactor, debug, test, and validate code across large codebases." It is doing the loop you would otherwise run by hand, not predicting your next keystroke.

That shift — from suggesting lines to executing tasks — is the whole reason the product exists. It is also why the skills you'll learn in this course (steering it, scoping work, reviewing diffs, setting approvals) look more like delegating to a teammate than configuring an editor plugin.

Key insight

One sentence to remember

Autocomplete finishes your line. Codex finishes your task — reading the repo, proposing a plan, editing files, running tests, and proposing a PR — then surfaces a transcript and a diff for you to review.

An agent that acts — but asks first and stays steerable

An agent that can edit files and run shell commands sounds alarming until you see the two properties that make it trustworthy rather than reckless. Both are core to what Codex is, so meet them on day one.

  • It asks permission. Codex does not silently rewrite files or run arbitrary commands. Depending on its approval mode it pauses and asks before going beyond safe, read-only actions, showing you exactly what it wants to do. When it asks is controlled by an approval policy; where it is allowed to act is controlled independently by a sandbox. (Those two controls get a full lesson of their own later — for now, just know they exist and are separate.)
  • It stays steerable. You are never locked out mid-run. In the terminal, Ctrl+C cancels the current turn so you can redirect; pressing Esc twice on an empty composer lets you edit your previous message and fork the conversation from there. You correct course instead of starting over.

Codex always surfaces a transcript of everything it did, and it has no /undo command — you roll back the way you already roll back code, through your normal git workflow. That is a deliberate design choice: the agent leaves an auditable trail and leans on version control rather than a private, hidden undo stack.

Neither the asking nor the steering makes Codex slow. It makes Codex delegable: you can hand it real work without flying blind, because nothing consequential happens without your say-so and every action is visible.

Watch out

Codex keyboard reflexes differ from other agents

In Codex, Ctrl+C interrupts the current turn (not Esc). Esc Esc edits your previous message. Tab queues a follow-up while Codex is working. There is no /undo — roll back with git. If you're coming from another coding agent, these reflexes are different, so un-learn the old ones.

Three eras of one name (don't conflate them)

Here is the single biggest source of confusion for newcomers: three completely different things have been called "Codex." When you read an article, the date tells you which one it means. Get this straight once and older blog posts will never mislead you.

EraWhat "Codex" wasKey facts
2021 — a language MODELA GPT-3 variant fine-tuned on source codeAnnounced Aug 10, 2021; trained on ~159 GB of Python from 54M GitHub repos; was the original model behind GitHub Copilot; exposed via an API (e.g. code-davinci-002)
2023 — deprecationThe original Codex API, shut downOpenAI gave notice Mar 21, 2023 and shut the API down Mar 23, 2023 (~3 days' notice), steering devs to GPT-3.5-Turbo / GPT-4, which had surpassed the code-only model
2025 — an AGENTThe name reused for a cloud agentic SWE toolRelaunched May 16, 2025 as a research preview; a completely different product that happens to share the name. This is what "Codex" means today

The punchline: the 2021 "Codex" is a dead model; the 2026 "Codex" is a live agent. They share nothing but a brand. If someone points you at code-davinci-002, the 2023 API-shutdown news, or a "Codex powers Copilot" article, that is the first product — interesting history, irrelevant to using the agent.

Example

Reading old sources without getting fooled

A 2022 paper benchmarking "Codex" on Python? The model. A 2023 "OpenAI kills Codex" headline? The API shutdown. A 2025+ piece about an agent that opens pull requests? The agent you're learning. Same word, three different things — let the date decide.

The 2025 relaunch and the model lineage

The version you'll actually use was born on May 16, 2025, when OpenAI reused the Codex name for a cloud-based software-engineering agent that could work on many tasks in parallel. At launch it was a research preview, available first to ChatGPT Pro, Business, and Enterprise, with Plus following shortly after (~June 3, 2025).

That first agent was powered by codex-1 — described by OpenAI as "a version of OpenAI o3 optimized for software engineering," trained with reinforcement learning on real coding tasks. Each task ran in its own isolated cloud sandbox preloaded with your repository, and most tasks took roughly 1–30 minutes. The open-source Codex CLI (a local terminal agent) arrived around the same period, and the surface set expanded through 2025–2026.

The model lineage then evolved, and this is where you must be careful, because model names rot fast:

text
codex-1  (May 2025, an o3 variant)
GPT-5-Codex
the GPT-5.x-Codex line  ← today

A quick guide to the naming convention so the catalog stays legible even as specific names change: plain gpt-5.x = frontier general models; the -codex suffix = optimized for agentic coding; -mini = small/fast (good for subagents); -spark = ultra-low-latency text-only previews. Which model is recommended by default changes over time, so don't memorize a version number — read it live.

Watch out

Don't hard-code a model name

The default and recommended Codex model changes regularly (it was gpt-5.5 as of mid-2026, but that will move). Learn the naming convention instead, and check the live catalog at developers.openai.com/codex/models. If you sign in with a ChatGPT account, the usual advice is to leave the model unset so you track the recommended default automatically.

One Codex: one model family, one account, many surfaces

The last piece of the mental model is the word umbrella. "Codex" is not a single app — it is the name for a family of surfaces that all share one underlying model family and one ChatGPT account context. OpenAI's own framing: there is one Codex, and the same agent and the same login follow you across the terminal, your editor, the cloud, the desktop app, your phone, and GitHub.

You don't need every surface yet — the next lesson tours them in detail. For now, hold three consequences of "one Codex":

  • One agent, many entry points. The CLI in your terminal, the IDE extension, the web app at chatgpt.com/codex, the desktop and mobile apps, and the @codex GitHub bot are views onto the same agent, not separate products you have to learn five times.
  • Tasks move between local and cloud. You can start a task in the CLI or IDE, delegate it to Codex Cloud to run in the background, then apply the resulting diffs back locally. Configuration like AGENTS.md (a cross-tool instruction file) travels with the repo.
  • One metered product. Local messages and cloud tasks share the same plan usage — reinforcing that this is literally one tool with one bill, not a bundle of separate things.

That's the whole mental model: an agent (not an autocomplete) that acts under your permission and stays steerable, reachable through many surfaces that all share one model family and one account. Everything else in this course — install, approvals, AGENTS.md, MCP, the cloud — hangs off that frame.

Tip

Sign in two ways

You authenticate Codex either with a ChatGPT account (the default — usage is bundled into your plan, simplest, full-featured) or with an OpenAI API key (usage-based billing, good for headless/CI, though "some functionality might not be available"). Same agent either way; just different billing and a few gated features.

What's true today vs. what will change

Codex moves fast, so a lesson that hard-codes today's numbers is a lesson that's wrong next month. The durable skill is knowing which facts are stable and which are volatile, and where to check the volatile ones.

Stable (safe to internalize):

  • Codex 2026 is an agentic SWE system that reads, edits, and runs code, runs tests, invokes tools, and proposes PRs.
  • It needs permission to act and stays steerable; rollback is via git, not /undo.
  • The three eras: 2021 model → 2023 shutdown → 2025 agent.
  • It's an umbrella of surfaces sharing one model family and one ChatGPT account.

Volatile (verify live, don't memorize):

FactWhere to check
Adoption ("4M+ developers/week") and GA datesdevelopers.openai.com/codex
Model catalog, recommended default, retirementsdevelopers.openai.com/codex/models
Surface launch dates (desktop, mobile, Bedrock) and whether Slack is supporteddevelopers.openai.com/codex/changelog
Pricing, credits, and per-plan usage limitsdevelopers.openai.com/codex/pricing

Mirror this discipline whenever you teach or document Codex: state the concept, then point at the live page instead of freezing a number that will rot.

Note

How big is Codex really?

OpenAI says "more than 4 million developers use Codex every week" — a number meant to convey scale, not a figure to quote precisely a year from now. Treat headline adoption and dates as illustrative and confirm them at developers.openai.com/codex before relying on them.

Try it: Place the 'Codex' in the wild — and find the live source

Goal: cement the mental model and the three-eras disambiguation without writing any code yet. 1) Era triage. Open three tabs: the Wikipedia page for the OpenAI Codex language model, the Simon Willison 2023 API-shutdown post, and developers.openai.com/codex. For each, write one sentence: which era is this (2021 model / 2023 shutdown / 2025 agent), and one concrete signal (a date, a model id like code-davinci-002, or 'opens pull requests') that placed it. 2) Spot the volatile facts. On developers.openai.com/codex and /codex/models, find three facts that will plausibly be different in six months (e.g. the recommended default model, the '4M+ developers/week' figure, a surface launch date). Note the live URL you'd cite for each instead of hard-coding it. 3) Pressure-test the mental model. In one short paragraph, explain to an imagined teammate why Codex is 'an agent, not an autocomplete,' and name the two properties that keep it safe to delegate to (asks permission via approvals + sandbox; stays steerable via Ctrl+C / Esc Esc, with rollback through git). 4) Reflect. Which old habit from another coding agent (e.g. reaching for /undo, or pressing Esc to interrupt) would have tripped you up in Codex, and what's the Codex-correct reflex? You should finish able to never again confuse the dead 2021 model with the live 2026 agent — and knowing exactly where to verify anything that smells volatile.

Key takeaways

  1. 1Codex 2026 is an agentic software-engineering system: it reads, edits, and runs code, runs tests, invokes tools, and proposes pull requests — it is not autocomplete and not the dead 2021 model.
  2. 2It acts under your control: it asks permission (separate approval and sandbox controls) and stays steerable — Ctrl+C interrupts, Esc Esc edits your last message, and there is no /undo (roll back via git).
  3. 3Three eras share the name: a 2021 GPT-3-based code MODEL (behind Copilot), its 2023 API shutdown, and the unrelated 2025 AGENT you use today — the date tells you which one a source means.
  4. 4The agent relaunched May 16, 2025 powered by codex-1 (an o3 variant); the lineage evolved codex-1 → GPT-5-Codex → the GPT-5.x-Codex line, and model names change often.
  5. 5There is one Codex: an umbrella of surfaces (CLI, IDE, cloud, desktop, mobile, GitHub, SDK) sharing one model family and one ChatGPT account, with tasks movable between local and cloud.
  6. 6Distinguish stable facts (what Codex is, the three eras, one-account model) from volatile ones (model names, prices, dates, adoption) and verify the volatile ones at developers.openai.com/codex.

Quiz

Lock in what you learned

Check your understanding

0 / 4 answered

1.What most fundamentally distinguishes Codex (2026) from a tool like GitHub Copilot's inline autocomplete?

2.A blog post from 2022 benchmarks 'Codex' on Python code completion and mentions it powers GitHub Copilot. A colleague says 'so that's the agent we're installing.' What's the accurate correction?

3.While Codex is running a task in the terminal, you realize it's heading the wrong way and later wish you could undo its changes. Which statement is correct about Codex's controls?

4.You're writing internal docs about Codex and want them to stay accurate over time. Which fact should you state as a concept and link to a live source rather than hard-coding?

Go deeper

Hand-picked sources to keep learning