Unrolling the Codex agent loop
OpenAI Blog 5 months ago
Codex CLI uses an agent loop architecture that orchestrates interactions between language models, tools, and prompts through the Responses API. The system cycles through model inference, tool calls, and prompt updates to handle sequential task execution. This design enables Codex to manage complex workflows by coordinating multiple components in a structured feedback loop.