Skip to content
Artwork for The Codex Changelog
The Codex Changelog · Yesterday · 6 min

Track Codex Retries and Token Usage with Model Request Hooks

Codex’s new PreModelRequest and PostModelRequest hooks expose model-call lifecycle data, including retries, status, and reported token usage. Learn how to register an async logging hook, account for cancelled turns, and check build availability, plus smaller security and workflow updates.

0:00-6:58

transcript

No transcript — this publisher did not publish one.

show notes

Codex’s new PreModelRequest and PostModelRequest hooks expose model-call lifecycle data, including retries, status, and reported token usage. Learn how to register an async logging hook, account for cancelled turns, and check build availability, plus smaller security and workflow updates.