Install
git clone https://github.com/shanraisshan/codex-cli-hooksInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Codex CLI Hooks
Installation
Step 1. Start Codex CLI:
codex
Step 2. First run only — trust each hook. run /hooks
Step 3. Send a prompt (e.g., Hi) — you'll hear a sound on session start, tool use, prompt submit, and session stop.
Changelog
new hook addition changelogs only
| Date | Hooks | Changes | Codex CLI Version | Demo |
|---|---|---|---|---|
| May 7, 2026 | 8 | Added PreCompact and PostCompact |
v0.129.0 | |
| Apr 26, 2026 | 6 | Added PermissionRequest |
v0.122.0 | |
| Mar 26, 2026 | 5 | Added PreToolUse and PostToolUse |
v0.117.0 | |
| Mar 20, 2026 | 3 | Added UserPromptSubmit |
v0.116.0 | |
| Mar 11, 2026 | 2 | Added SessionStart and Stop |
v0.115.0 |
Links
Other Repos
Codex CLIBest Practice
Claude CodeHooks
Claude CodeBest Practice
Gemini CLIHooks
Gemini CLIBest Practice
Sponsor My Work
If you like my work, buy me a doodh patti 🍵 on
Polar
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…