Prerequisites
- Entire CLI installed
- Codex installed and authenticated
- A Git repository with Entire enabled
How It Works
Entire integrates with Codex through project-level hook configuration in.codex/hooks.json. When you enable Entire with the Codex agent, the hooks are installed automatically:
codex_hooks = true to .codex/config.toml, so you do not need to configure that manually.
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
Captured Data
| 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
Rewind Support
Rewind to previous checkpoints during or after a Codex session:| Flag | Description |
|---|---|
--to <commit> | Rewind to specific commit ID (non-interactive) |
--list | List available rewind points (JSON output) |
--logs-only | Only restore logs, don’t modify working directory |
--reset | Reset branch to commit (destructive) |
Resume Previous Sessions
Resume a previous Codex session by switching to its branch:- Checks out the specified branch
- Finds the session ID from commits unique to this branch
- Restores the session log if it does not exist locally
- Shows the command to resume the session (for Codex,
codex resume <session-id>)
| Flag | Description |
|---|---|
-f, --force | Resume from older checkpoint without confirmation |
Explain Commits
View or generate explanations of how code was written:| Flag | Description |
|---|---|
-c, --checkpoint <id> | Explain a specific checkpoint (ID or prefix) |
--commit <sha> | Explain a specific commit (SHA or ref) |
--full | Show full parsed transcript (all prompts/responses) |
-s, --short | Show summary only (omit prompts and files) |
Important Caveats
- 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.
Best Practices
Enable Codex Through Entire
Useentire enable --agent 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
- When you’d want to rewind later
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 enable --agent 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
Limitations
- The integration is in preview and may have rough edges
- Subagent capture is not available
PreToolUseis currently shell-only and is not used for lifecycle tracking- Transcript capture depends on Codex writing rollout JSONL files