Codex Hooks — Development skill for Claude Code
Hooks runner for Codex CLI - reuses Claude Code hooks settings.
How to install Codex Hooks
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open hatayama/codex-hooks and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Codex Hooks does
Hooks runner for Codex CLI - reuses Claude Code hooks settings.
Alternatives in Development
- Mempalace Help — Show comprehensive MemPalace help — available skills, MCP tools, CLI commands, hooks, and architecture 58.6k ★
- Omk — Evidence-gated runner for Codex, Claude Code, OpenCode, and local coding agents 141 ★
- Claudebot Claude Runner — Claude CLI 整合細節:spawn 參數、stream-json 解析、session 管理、prompt 建構 62 ★
README
codex-hooks
`codex-hooks` is a macOS-focused Python tool that replays a compatible subset of Claude-style command hooks for Codex by watching Codex session JSONL files.
This repository intentionally stays focused on hook reproduction. It does not own UI features such as desktop notifications or terminal title updates. Its job is only to decide when hooks should fire and which commands should run.
Current Compatibility
`codex-hooks` currently supports a compatible subset of Claude-style command hooks.
What works today:
- Reading
~/.codex/hooks.json - Falling back to
~/.claude/settings.json - Watching Codex session JSONL files
- Firing command hooks for
TaskStarted,TaskComplete, andTurnAborted - Reusing Claude hooks that only need shell execution plus stdin input
This works well for hooks such as:
- Desktop notifications
- Terminal or iTerm title updates
- Sound effects
- Shell scripts that perform direct side effects
What does not work today:
- Claude's full hook response protocol
- Hook stdout such as
{"decision":"block","reason":"..."} - Hooks that expect Claude to load a Skill automatically
- Hooks that depend on Claude-specific stdin fields
- Full Claude matcher and lifecycle compatibility
Install
git clone https://github.com/hatayama/codex-hooks.git
cd codex-hooks
python3 install.py
source ~/.zshrc
After installation, a `codex` shell function is added. It launches the real Codex CLI and starts a background session monitor at the same time.
To disable the wrapper temporarily:
CODEX_HOOKS_DISABLE=1 codex ...
Configuration Priority
~/.codex/hooks.json~/.claude/settings.json
If `~/.codex/hooks.json` exists, it takes precedence. Otherwise, `codex-hooks` falls back to Claude's `settings.json`.
Example `~/.codex/hooks.json`
Create `~/.codex/hooks.json` like this:
This example only uses built-in macOS commands so it works without any custom scripts:
mkdir -p ~/.codex
cat > ~/.codex/ho
Related Skills
Ay Claude Templates
Official CLI tool for AY Claude Platform - Discover, install, and manage Claude Skills, Agents, Commands, Hook
Claude Code Hook Manager
CLI tool to manage Claude Code hooks — creates, registers, and tracks prompt and script hooks without manually
Sync Claude Config
Sync Claude Code + cross-CLI config (AGENTS.md, CLAUDE.md, GEMINI.md, agents, skills, settings, statusline, gu
Agent Backup
macOS app to back up coding-agent settings (MCP servers, sessions, memory, skills) to Google Drive with end-to
ForgeAgent
One agent proves a capability is safe. Every other agent — Codex, Cursor, Claude Code — reuses it instantly, w
ExperienceEngine
Governance layer for coding agents that reuses real execution experience across OpenClaw, Claude Code, and Cod
Related Agents
Component Reviewer
Expert component reviewer for Claude Code Templates. Use PROACTIVELY when adding or modifying components in cl
Claude Code Writer
Explicit file-writing Claude Code CLI mode; requires local authentication and trusted user settings/hooks
Claude Code Integration
Claude Code 本体の仕様に関する専門家。hooks(PreToolUse, SubagentStop 等)のペイロード、.claude/agents/.md のフォーマット、settings.json、セッショ