Writing

Agentic Patterns in OpenAI's Codex

Origin Story

This project started from a gap that shows up repeatedly when learning agentic systems.

On one side, there is a design-patterns book on agentic systems—clean abstractions, conceptual primitives, and a structured way to think about planning, execution, memory, tools, and control loops.
On the other side, there is OpenAI’s Codex—a large, production-grade agentic system implemented under real-world constraints.

What was missing was the bridge.

This repository was created by taking the patterns from the book and locating them inside the Codex implementation—not as diagrams or toy examples, but as concrete modules, control flow, and engineering decisions. The result is a lesson plan for learning agentic patterns by reading real code.

Sources of inspiration:

This project exists to connect the two.


What It Is Broken Down Into

The material is organized as a pattern-to-code curriculum, not a narrative book.

Each section follows a consistent structure:

The breakdown focuses on:

The goal is not to document Codex exhaustively, but to make agentic patterns legible when encountered in a real system.


Project repository:
https://github.com/artvandelay/codex-agentic-patterns

#agents #llms #reading-code #software-architecture #systems