core: add support for user defined event hooks#2904
core: add support for user defined event hooks#2904bhandras wants to merge 2 commits intoopenai:mainfrom
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
443a1e9 to
cc17700
Compare
|
Rebased on top of latest |
|
@bolinfest do you see any chance of this landing? Would you mind PTAL? |
cc17700 to
6013ea6
Compare
|
Rebased on latest |
|
Please review this. Hooks are a big deal! Would be great if we could get them in Codex. |
|
Ping @bolinfest, could you PTAL? Seems like many are interested in this feature. |
6013ea6 to
462599b
Compare
|
I've been using this PR and it's useful, so thanks. However it does not allow blocking on these actions or controlling flow like claude code hooks do. |
It would be awesome to be able to “facilitate” good behavior 😁 |
462599b to
46743ea
Compare
|
Excited for this! |
46743ea to
01b505f
Compare
|
Can't wait for this :) |
01b505f to
f1c4f3d
Compare
f1c4f3d to
78dc4fc
Compare
|
Rebased! |
This is the point, we need this. |
Agreed, this is very much needed. Currently I'm asking the model to run |
|
I'm looking forward to this feature, hope it can be merged soon. |
|
This is an incomplete and inadequate feature unless blocking and feedback (for the agent) are incorporated. |
|
Would love to see this feature released! Is there anything I could do to help this PR get merged? @bhandras |
|
Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them. We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback. |
|
Here's the enhancement request link for a new "hooks" feature: |
|
@etraut-openai This right there is why I'm switching from Codex CLI to OpenCode today. It pains me because Codex is faster (it's Rust!) and I like its simplicity, but hooks are a must in agentic systems. I could live w/o Claude Code's plan/build mode, sub-agents, custom status line, several useful --flags, etc., but hooks are nonnegotiable. |
|
@ibehnam, if you haven't already done so, please upvote this feature request. Our feature prioritization is generally guided by upvote counts. The hooks feature is getting closer to the top of the priority queue. |
|
@etraut-openai Okay I just did! |
This PR adds support for user defined event hooks (similar feature to what already exists in Claude Code).
It's an attempted fix for: #2109
See the second commit for usage and example configuration!