---
title: "Discussion on \"Codex hooks: every event, the hooks.json format and working examples\" | Hashnode"
description: "Discussion on \"Codex hooks: every event, the hooks.json format and working examples\". Every Codex CLI hook event, where hooks.json and [hooks] in config.toml go, the JSON format, what each hook returns, exit codes, trust review and examples."
url: "https://hashnode.com/posts/codex-hooks-every-event-the-hooks-json-format-and-working-examples/6b009ae3b012f55336874d6c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Codex hooks: every event, the hooks.json format and working examples](https://greatworkco.hashnode.dev/codex-hooks-every-event-the-hooks-json-format-and-working-examples?utm_source=hashnode&utm_medium=feed)

Every Codex CLI hook event, where hooks.json and \[hooks\] in config.toml go, the JSON format, what each hook returns, exit codes, trust review and examples.

Nov 20 · 8 min read · greatworkco.hashnode.dev  
Read the article

-   [#codex](https://hashnode.com/tag/codex)
-   [#ai](https://hashnode.com/tag/ai)
-   [#cli](https://hashnode.com/tag/cli)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Great Work](https://hashnode.com/@greatworkco)

@greatworkco

  
[View profile](https://hashnode.com/@greatworkco)

Small, focused apps for Mac, iPhone and the web, including Multimeter for the Mac menu bar.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
