# Codex

> What Waddle adds to Codex, and the one step Codex asks of you.

## The hook

Preferences → Agents → Codex → **Set up** adds Waddle's hook to `~/.codex/hooks.json` for these events:

`SessionStart`, `UserPromptSubmit`, `PostToolUse`, `Stop`, `PermissionRequest`, `SessionEnd`

Each has a 5 second timeout, except `SessionEnd`, which Codex allows 3 seconds at most (Waddle asks for 2).

## Trust it in Codex

Codex skips a new hook until you trust it. In Codex, type `/hooks` and trust Waddle's. Until then, Preferences shows Codex as set up but not heard from.

## Waddle Notes

Codex speaks MCP too: add `waddle mcp` as a server in Codex's MCP settings. See [MCP tools](https://docs.waddle.sh/mcp.md).

## Take it out

Preferences → Agents → Codex → **Remove** deletes Waddle's entries and nothing else.
