How Codex is built

· Source: The Pragmatic Engineer · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Advanced, long

Summary

OpenAI's multi-agent coding assistant, Codex, is now used by over a million developers weekly, with usage increasing fivefold since January. OpenAI launched a macOS desktop app for Codex in early February and subsequently shipped GPT-5.3-Codex, described as the first self-creating model. The article details how Codex was built, its architecture, and its impact on software engineering at OpenAI, based on interviews with Thibault Sottiaux (Head of Codex), Shao-Qian Mah (Codex researcher), and Emma Tang (Head of Data Infrastructure). Key aspects include its Rust-based core, an open-source agent loop, and the fact that Codex generated over 90% of its own application code. The team also employs unique practices like tiered AI code review, "Agent Skills," and using `AGENTS.md` files for AI instructions.

Key takeaway

For engineering leaders evaluating AI-driven development tools, consider OpenAI's Codex as a model for transforming workflows. Its ability to generate over 90% of its own code and facilitate practices like tiered AI code review suggests significant efficiency gains. Your teams could explore adopting agent-centric development, focusing on structuring code for AI success and leveraging custom skills to automate tasks, potentially accelerating development cycles and re-tasking engineers as "agent managers."

Key insights

OpenAI's Codex, a Rust-based, self-building coding agent, significantly transforms software development practices.

Principles

Method

The Codex agent loop involves prompt assembly, model inference, tool calls, and response streaming, with compaction used to manage context window length and reduce quadratic inference costs.

In practice

Topics

Code references

Best for: CTO, VP of Engineering/Data, Director of AI/ML, Software Engineer, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by The Pragmatic Engineer.