Codex is OpenAI’s CLI coding agent. Entire integrates with Codex through Codex’s native hook system, automatically capturing sessions and checkpoints. The Codex integration is in preview and may contain bugs.Documentation Index
Fetch the complete documentation index at: https://docs.entire.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Entire CLI installed
- Codex installed and authenticated
- A Git repository with Entire enabled
Enable
entire agent add codex installs hooks into .codex/hooks.json and enables Codex’s required codex_hooks = true feature flag in .codex/config.toml automatically — no manual config needed.
How it works
How it works
Entire integrates with Codex through project-level hook configuration in
.codex/hooks.json. The hooks track the session lifecycle:- Session Start —
SessionStartcreates a new Entire session. - Prompt Tracking —
UserPromptSubmitcaptures each user prompt. - Turn Completion —
Stopfinalizes each turn and advances checkpoint state. - Transcript Capture — Entire reads Codex’s JSONL rollout transcript from
~/.codex/orCODEX_HOME. - Session Storage — data is saved to the
entire/checkpoints/v1branch.
What gets captured
What gets captured
| Data | Description |
|---|---|
| Conversation | Full transcript of prompts and responses |
| File changes | Files modified via apply_patch in Codex rollouts |
| Token usage | Input, cached-input, output, and reasoning tokens |
| Timestamps | Session, turn, and checkpoint timing |
Features
Features
Rewind during sessions. Use
entire checkpoint rewind to restore to a previous checkpoint during or after a Codex session. When you rewind, Entire restores the checkpointed transcript state and shows the command to continue the Codex session. See the rewind command reference for full flag documentation.Resume previous sessions. Switch to a session’s branch with entire session resume <branch>. The CLI restores the session log if needed and prints codex resume <session-id>. See the resume command reference for full flag documentation.Explain commits. Inspect any commit or checkpoint with entire checkpoint explain. See the explain command reference for full flag documentation.Caveats and limitations
Caveats and limitations
- Subagent capture is not available. Unlike Claude Code, Codex does not currently expose subagent lifecycle hooks, so Entire captures the main Codex session but not nested subagent sessions.
- Session completion is turn-based. Codex does not emit a distinct session-end hook. Entire relies on Codex’s per-turn
Stophook and transcript data rather than a final shutdown event. - Transcript paths can be missing. In ephemeral Codex runs, the transcript path may be null. Entire can still process hook events, but full transcript capture is limited in that mode.
PreToolUseis currently shell-only and is not used for lifecycle tracking.- Transcript capture depends on Codex writing rollout JSONL files.
Best practices
Best practices
Enable Codex through Entire. Use
entire agent add codex instead of manually editing .codex/hooks.json. Entire preserves existing Codex hook config and also writes the required .codex/config.toml feature flag.Commit at logical points. Create checkpoints at natural stopping points: after implementing a feature, before risky refactors, or when you’d want to rewind later.Example workflow
Example workflow
Troubleshooting
Session not being captured
Session not being captured
- Verify Entire is enabled:
entire status - Check that
.codex/hooks.jsonexists in the repository - Ensure
.codex/config.tomlcontainscodex_hooks = true - Ensure Codex is running from within the repository
No checkpoints created
No checkpoints created
- Checkpoints require file changes — ensure Codex is modifying files
- Commit or stage work as part of your normal Git flow
- Check your settings in
.entire/settings.json - Verify Codex hooks were installed with
entire agent add codex
Transcript not captured
Transcript not captured
- Ensure Codex is writing rollout files in
~/.codex/or yourCODEX_HOME - Verify the hook payload includes a transcript path
- Avoid ephemeral mode if you want full transcript capture
- Look for errors in Entire hook output with
entire doctor