logoalt Hacker News

visargatoday at 5:15 PM3 repliesview on HN

I might consider switching to codex from claude pro 20x but I need the post tool use, pre file write and post user message hooks. Waiting on codex to deliver.

- pre file write -> block editing code files without a task and plan of work

- post tool use -> show next open checkbox in the task to the agent, like an instruction pointer

- post user message -> log all user messages for periodic review of intent alignment

These 3 hooks + plain md files make my claude harness.


Replies

tinodbtoday at 8:15 PM

I use codex through the pi agent. It’s wonderful and easy to create whatever extension or hook you want!

I’d use it with Claude too if they hadn’t banned it…

sunnybeetroottoday at 7:27 PM

Why couldn’t you use Claude code harness with codex? The requests can be proxied to OpenAI.

glasnertoday at 6:23 PM

I am cooking up an abstraction that enables these hooks on codex. Would love to have you kick the tires.