How to Eliminate TypeScript API Drift with a Single OpenAPI Spec File — Codex CLI + AGENTS.md
Using the OpenAPI spec as a single source of truth, this covers how to automatically generate TypeScript types with `@hey-api/openapi-ts`, and how to structurally eliminate API drift by documenting regeneration rules in AGENTS.md to prevent Codex CLI from directly modifying generated files.