codex icon indicating copy to clipboard operation
codex copied to clipboard

Event Hooks

Open aehlke opened this issue 4 months ago • 13 comments

Let us define event hooks with pattern matching, to trigger scripts/commands before/after codex behaviors.

aehlke avatar Aug 09 '25 23:08 aehlke

Prioritize please 🙏 - hooks in the lifecycle will allow for advanced steering/context-engineering, and enterprise guardrailing. Plus cool community whatever.

backnotprop avatar Sep 02 '25 15:09 backnotprop

Would encourage the Codex team to follow Claude Code's schema!

https://docs.claude.com/en/docs/claude-code/hooks

andrewschreiber avatar Sep 16 '25 18:09 andrewschreiber

+1

nikhil-pandey avatar Oct 09 '25 20:10 nikhil-pandey

+1000, I'm really missing this from CC.

fullofcaffeine avatar Oct 13 '25 07:10 fullofcaffeine

Claude Code and Cursor both support blocking + feedback providing hooks.

This will prove to be an integral feature for harnesses... looking forward to Codex's implementation.

backnotprop avatar Oct 17 '25 21:10 backnotprop

Please prioritize 🙏 - hooks are very necessary

InakiBes avatar Nov 15 '25 10:11 InakiBes

This is the final feature that will make me throw anthropic in the trash and never look back. You would get so many power users if you add hooks in.

Thevetat avatar Nov 23 '25 00:11 Thevetat

Indeed, hooks unlock so much potential.

doggy8088 avatar Nov 23 '25 06:11 doggy8088

Missing this too!

vilnitsky avatar Nov 28 '25 00:11 vilnitsky

We are badly missing approval requests hooks!!

ZeldOcarina avatar Nov 30 '25 15:11 ZeldOcarina

My use case is that I need to run a script when user submits their prompt, so that I can show in a tmux status bar that an agent is active in that window. Claude can handle this with the UserPromptSubmit hook.

raine avatar Dec 05 '25 19:12 raine

My solution: clone this repository and implement the corresponding functionality using Claude; I really can't wait for the official team to add this feature.

a112121788 avatar Dec 09 '25 05:12 a112121788

Unfortunately, we are releasing https://github.com/eqtylab/cupcake without codex native support.

Optimistic in this getting implemented... working with large enterprises on cupcake and we want to get codex out there where stakeholders (cyber assurance, dev directors) feel confident and have an opportunity to own their own alignment.

backnotprop avatar Dec 09 '25 07:12 backnotprop