[KongchangAI]
Deep Dives· 3 min read· 1,701 words

OpenAI Codex Masterclass Complete Breakdown: From Plugin Systems to Sub Agents, Everything You Need to Know About AI Coding Agents

OpenAI Codex Masterclass Complete Breakdown: From Plugin Systems to Sub Agents, Everything You Need to Know About AI Coding Agents

A complete breakdown of OpenAI Codex's full capabilities from Plugins to Sub Agents and beyond.

This article provides a comprehensive analysis of the OpenAI Codex Masterclass, covering the platform's evolution into a full software engineering Agent. It details the Plugin system, Automations, Sub Agents for parallel task execution, AI-powered Code Review, and experimental features like Garden Approvals and Hooks, along with live demos showing games built in an hour and 57-file syncs in 2 minutes.

OpenAI Codex Masterclass Complete Breakdown: From Plugin Systems to Sub Agents, Everything You Need to Know About AI Coding Agents

When an AI can not only write code but also reply to your emails, review PRs, and build games, you start wondering if your desk is about to be replaced by a sandbox. This article is based on the OpenAI Codex Masterclass delivered by OpenAI's London team, presented by Vaibhav Srivastav and Katia Gil Guzman, who tore Codex apart from its underlying architecture all the way to its cutting-edge experimental features. If you're using Codex or planning to get started, this one's worth bookmarking.


What Exactly Is Codex? It's More Than a Code Completion Tool

OpenAI Codex is a full-fledged software engineering Agent. Note: not code completion, not a chatbot—an Agent. It can write code, run commands, execute tests, explore entire codebases, and even connect to third-party tools like Figma, Linear, and Notion.

Architecturally, Codex is built on models like GPT 5.3 Codex and GPT 5.4, wrapped in a unified Agent Harness that manages tool execution, environment setup, and security policies. In plain English: they put the AI in a safety cage so it can do work without nuking your servers.

The interaction methods are equally diverse—Codex App, IDE extensions, CLI, Slack, GitHub—wherever you are, it's there. This isn't a coding assistant; it's basically a full-stack intern who doesn't ask for a salary, doesn't slack off, and doesn't spam emoji in Slack.


Model Evolution: Version Numbers Update Faster Than Phone Cases

Codex model evolution and performance data

Codex's model iteration roadmap has been aggressive:

  • GPT 5.2 → GPT 5.2 Codex → GPT 5.3 Codex → GPT 5.3 Codex Spark (with Cerebras) → GPT 5.4
  • Also released GPT 5.4 Mini and GPT 5.4 Nano, for short tasks and Sub Agents respectively

Performance improvements are substantial:

  • Introduction of WebSockets delivering approximately 1.75x token processing speed improvement
  • Fast Mode doubles that again

So the old speed was intentionally slow?

User data tells the story even better: Codex has surpassed 3 million weekly active users, growing over 3x since January this year. That growth curve would make any SaaS founder weep. Then again, when your product can write code for people, it'd be weird if user growth wasn't explosive.


Codex App: The Perfect Colleague You've Always Dreamed Of

Core capabilities of the Codex App include:

  • Cross-project work and parallel multi-feature development within the same project
  • Native Git Work Tree support—finally no more jumping between ten branches; only programmers understand the pain of context switching
  • Automations (similar to cron jobs)—essentially giving AI an alarm clock: when the time comes, get to work
  • Native Windows support, including a native Windows sandbox (claimed to be an industry first)—Windows users are finally no longer second-class citizens

Recently released features in chronological order include: Plugins, Mini Models, Code Review, Security, and more. Each one deserves its own deep dive.


Plugins System: LEGO Bricks Meet Enterprise Middleware

Codex's Plugins system bundles three things into reusable workflows:

ComponentPurposeExample
SkillsReusable instruction packagesAuto-created to avoid repetitive operations
AppsConnect third-party servicesNotion, Linear, Google Drive
MCP ServersExternal tool extensionsExpose external system capabilities to Codex

The best part is that Skills can be auto-created by Codex—AI writing its own instruction manual. What level of self-management is this? You can use officially provided plugins or create custom ones. It feels like Codex is quietly turning itself into the super-portal for all SaaS products.


Automations: The Personal Assistant You Always Wanted But Could Never Afford

Automations configuration interface

Automations was one of the most exciting features covered in the masterclass. Check out these real use cases:

  • Slack auto-categorization: Every morning at 9 AM, automatically checks Slack messages and categorizes them by urgency
  • Gmail automation: Filters emails that need replies, assesses time-sensitivity and legitimacy—finally someone to filter out those "Congratulations, you've won five million dollars" emails
  • Conversational creation supported: Just tell Codex what automation you want, and it handles the configuration
  • You can set run frequency, associate projects, and connect various Apps and Plugins

Presenter Katia said this feature saves her several hours every day. I believe it, because just dealing with unread Slack messages is already a full-time job.


Live Demos: 57 Files Synced in 2 Minutes, A Game Built From Scratch in 1 Hour

Two demos during the masterclass absolutely electrified the room.

Google Drive Data Sync

Using the Google Drive plugin, Codex read 57 YAML event files from a codebase and automatically updated them into a Google Sheets spreadsheet. Total time: 2 minutes. Doing this manually would take me about 2 hours plus 3 cups of coffee.

Platform Jumping Game Development

This one was truly mind-blowing. Using the Games Studio plugin (which includes Image Gen and Playwright Interactive skills), with just a single prompt—"make a brick platform jumping game":

  • Image Gen automatically generates game sprites and visual assets
  • Playwright Interactive serves as a headless browser letting Codex visually debug
  • A complete game built from scratch in about 1 hour

This isn't assisted coding anymore—this is AI launching its own startup. Indie game developers watching this probably had mixed feelings.


Code Review: Everyone Is Equal Before AI

Codex Code Review interface

Codex Code Review is considered one of the best code review tools in the industry. Core capabilities include:

  • Automatically reviews every PR on GitHub, tagging issues by P0/P1/P2 priority
  • Reviews don't just look at the diff—they analyze the entire repository context to identify second-order effects
  • Can be triggered via the /review command in CLI or App

A key detail: 100% of PRs at OpenAI (including Greg's) are reviewed by Codex Code Review by default. What does this mean? It means everyone is equal before AI—no matter whose code it is, it has to pass the machine's inspection. After all, AI won't rush through an approval just because it's almost quitting time.

The most impressive move? They also released a Claude Code plugin—letting competitors' users use their review service. That's some serious business-level magnanimity.


Sub Agents: One Person Doing the Work of a Whole Team

Sub Agents parallel task execution

The Sub Agents system is one of Codex's most powerful capabilities. It can decompose main tasks into parallelizable independent subtasks and assign them to multiple Agents for simultaneous execution.

In the demo, 20 Sub Agents reviewed 45 Agent persona files in parallel, with the system automatically enabling Plan Mode to decompose into 5 subtasks.

Three default Sub Agent personalities are provided—basically RPG class specializations:

Personality TypeRoleUse Case
DefaultGeneral-purposeRoutine tasks
WorkerExecution-orientedWell-defined implementation tasks
ExplorerExploration-orientedResearch, analysis, solution exploration

Each Sub Agent can also be customized with its own model, reasoning intensity, sandbox mode (read-write/read-only), MCP access configuration (e.g., Sentry, Linear), and Skills. The configuration freedom rivals building a custom PC.

Even more impressive: you can have Codex analyze historical sessions and automatically recommend creating Sub Agents. AI is learning to replicate itself—this plot development is getting a bit cyberpunk.

Practical use cases include: cybersecurity vulnerability analysis, feature brainstorming, test execution, and more.


Cutting-Edge Experimental Features: Garden Approvals & Hooks

Cutting-edge experimental features demo

Garden Approvals: Using AI to Supervise AI

The YOLO mode name is refreshingly honest—it really is "You Only Live Once," because giving AI full permissions might mean your server only lives once too.

Garden Approvals offers an elegant solution: when Codex needs to perform privileged operations (deleting directories, starting servers, exposing files), it automatically spins up a Sub Agent to verify the operation's safety. In most cases, no human intervention is needed, effectively reducing approval fatigue.

Essentially, it's the AI world's answer to "who watches the watchmen?"—the answer being: another watchman. Nested-doll security architecture, but it actually works.

Hooks System

Three types of Hooks are supported, implemented via hooks.json configuration files and Python scripts:

  • Start Hook: Automatically pulls latest code from GitHub at session start
  • Per Tool Use Hook: Logs every tool usage for research and documentation
  • Stop Hook: When a long task ends, automatically tells Codex to continue to the next round

Combined, these three Hooks basically create a "perpetual motion machine" mode for AI. The Stop Hook makes Codex automatically start the next round after task completion—isn't that just a humanoid version of a while True loop? In terms of AI workload, this is beyond 996—it's straight-up 24/7.


Other Features Worth Noting

  • Personality customization: Set a friendly or pragmatic personality—finally, you can choose whether AI gently tells you your code has bugs, or just slaps you with the truth
  • Codex Security: Scans and fixes GitHub project vulnerabilities commit by commit, letting security teams finally get some sleep
  • Cloud Agent support: Switch from local to cloud execution, supporting Best-of-N parallel runs—let multiple AIs race and pick the best result. Simple, crude, but effective
  • Session data is stored in the .codex/.sessions folder and can be scanned and analyzed by Codex for optimization

Currently, cloud tasks don't support Sub Agents or local Skills execution (for security reasons), but they're already on the roadmap. Seems like OpenAI also knows what it would look like to let a swarm of AIs run free in the cloud.


Final Thoughts

Codex isn't just helping you write code anymore—it's helping you run a company. And the only thing you need to do is make sure you still remember your password.

From Plugins to Automations, from Sub Agents to Garden Approvals, OpenAI Codex is evolving from a coding tool into a comprehensive software engineering operating system. Three million weekly active users is just the beginning. When all these cutting-edge features stabilize and ship, the way software development works will be fundamentally redefined.

This article is based on the OpenAI Codex Masterclass video content, presented by Vaibhav Srivastav and Katia Gil Guzman.

#OpenAI Codex#AI coding agent#Sub Agents#Codex Plugins#code review AI#software engineering automation#GPT 5.4
Share:

Related articles