Overview of Entire CLI Hooks for Claude Code
mainEntire integrates with Claude Code by installing six hooks into .claude/settings.json. These hooks allow Entire to track AI-assisted development sessions by triggering at specific lifecycle events.
| Hook | Trigger | Purpose |
| :--- | :--- | :--- |
| `SessionStart` | New chat session begins | Generate and persist Entire session ID |
| `UserPromptSubmit` | User submits a prompt | Capture pre-prompt state, check for conflicts |
| `Stop` | Claude finishes responding | Create checkpoint with code + metadata |
| `PreToolUse[Agent]` | Subagent is about to start | Capture pre-task state for diff computation |
| `PostToolUse[Agent]` | Subagent finishes | Create final checkpoint for subagent work |
| `PostToolUse[TaskCreate\|TaskUpdate]` | Subagent updates its task list | Create incremental checkpoint if files changed |