Show HN: Agentic Design Patterns – Python Edition, from the Codex Codebase

Show HN (score: 5)
Found: October 07, 2025
ID: 1770

Description

Other
Show HN: Agentic Design Patterns – Python Edition, from the Codex Codebase While reading Agentic Design Patterns by Antonio Gulli, I wanted to see how these patterns look in real code. I cloned the OpenAI Codex repo (the open-source AI coding assistant that recently trended on HN) — but it was in Rust.

So, I used an Cursor to help me extract and translate 18+ agentic patterns from Codex’s codebase into Python. That small experiment turned into a full open-source guide: GitHub: Codex Agentic Patterns https://github.com/artvandelay/codex-agentic-patterns

Each pattern comes with:

A short explanation and code sample

A runnable exercise and agent snippet

A summary of how Codex used the pattern (e.g., prompt chaining, tool orchestration, reflection loops, sandbox escalation)

One full working Python agent that ties it all together

If you’ve read the agentic design patterns book or explored Codex, this is a bridge between theory and practice — focused on runnable, open examples instead of abstract diagrams.

It’s completely free and open-source. Would love feedback, ideas, or even new patterns from your own agent experiments.

More from Show

Show HN: A terminal spreadsheet editor with Vim keybindings

Show HN: A terminal spreadsheet editor with Vim keybindings While speccing out this spreadsheet tool, I realized that I never had to think about the keybindings. It all just came naturally from Vim. Normal&#x2F;insert&#x2F;visual modes, hjkl navigation, dd&#x2F;yy&#x2F;p, :w, :q. The usual muscle memory works.<p>It supports CSV&#x2F;TSV import and export, and a native .cell format that preserves formulas. The formula engine handles SUM, AVERAGE, COUNT, MIN, MAX, and IF with range references.<p>The codebase is a Cargo workspace: a pure cell-sheet-core library (no TUI dependency) and a cell-sheet-tui crate on top of ratatui. Early days, but it&#x27;s usable.<p>To try it out: cargo install cell-sheet-tui<p>Feedback of any kind is greatly appreciated!

No other tools from this source yet.