# OpenAI Explains How Codex Agent Loop Works Under the Hood
OpenAI has published a technical deep dive explaining the inner workings of the Codex agent loop, offering developers a detailed look at how their AI coding assistant orchestrates its various components.
The announcement, shared on OpenAI's official account, focuses on the Codex CLI (command-line interface) and how it coordinates multiple elements including AI models, development tools, prompts, and performance optimization through the Responses API.
**What's New**
This isn't a product launch but rather educational content aimed at developers who want to understand the architecture behind Codex. The "agent loop" refers to the cyclical process where the AI receives a coding task, breaks it down, executes actions, evaluates results, and iterates until completion.
**Why It Matters**
For developers building AI-powered applications, understanding how OpenAI structures its agent loops