> ## Documentation Index
> Fetch the complete documentation index at: https://docs.termyte.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> Capture Codex work and return relevant local context.

# Codex

Select Codex when you run:

```bash theme={null}
termyte init
```

Termyte writes managed entries to `~/.codex/hooks.json` for `SessionStart`, `UserPromptSubmit`, `PostToolUse`, and `Stop`.

The hooks capture supported events. Session and prompt hooks can also return relevant local context, with current task state placed before older memories.

Existing valid non-Termyte hook groups are kept. Running setup again refreshes the Termyte entries.

Codex can form memories when setup confirms that `codex exec` can complete an authenticated, non-interactive request.

## Verify

Restart Codex, complete a small task, then run:

```bash theme={null}
termyte doctor
termyte viewer
```
