---
title: "Entire"
description: "Record Autohand Code CLI sessions as Entire checkpoints so you can review session history and rewind to earlier states."
seo:
  title: "Entire Integration"
  description: "Connect Autohand Code CLI to Entire with lifecycle hooks to capture session checkpoints, review history, and rewind files and transcripts."
---

## What is the Autohand Entire integration? [#quick-answer]

[Entire](https://entire.io) is a CLI that captures session checkpoints for coding agents. When you enable it for Autohand Code CLI, Entire records each session's prompts, tool usage, file changes, and token consumption, so you can review session history, rewind to an earlier state, and keep agent context alongside your commits.

|  |  |
| --- | --- |
| Status | Available |
| Requires | Autohand Code CLI, a git repository, and the Entire CLI on your `PATH`. |
| Configure with | Run `entire enable --agent autohand-code` inside the repository. Entire writes lifecycle hooks to `.autohand/config.json`. |
| Best for | Keeping an auditable, rewindable history of agent sessions next to your git history. |

:::warning
**Know before you start:** The `entire` commands and checkpoint storage are provided and maintained by Entire. Check the [Entire docs](https://entire.io/docs) for the current CLI behaviour before relying on it in shared repositories.
:::

## How it works [#how-it-works]

Entire plugs into Autohand through the [hooks system](/working-with-autohand-code/hooks). Enabling Entire registers hooks in the project's `.autohand/config.json` that run on session lifecycle events. Each time the agent completes a turn, Entire saves a checkpoint containing the session transcript and a snapshot of the changed files.

1. You start an Autohand session, and the `session-start` hook initialises checkpoint tracking.
2. Before each prompt, the `pre-prompt` hook captures your instruction.
3. After each agent response, the `stop` hook saves a full checkpoint (transcript and file state).
4. When a subagent finishes, the `subagent-stop` hook saves a checkpoint for that task.
5. When the session ends, the `session-end` hook finalises the session state.

Checkpoints are stored on git shadow branches (`entire/<hash>`) and condensed to a permanent `entire/checkpoints/v1` branch when you commit. Entire never creates commits on your working branch.

## Setup

1. **Install the prerequisites**

    Make sure Autohand Code CLI works in the repository and that the repository is a git repository. Install the Entire CLI, for example with Homebrew:

    ```bash
    brew install entireio/tap/entire
    ```

    See the [Entire docs](https://entire.io/docs) for other installation methods.

2. **Enable Entire for Autohand**

    From the root of your git repository, run:

    ```bash
    entire enable --agent autohand-code
    ```

    This command creates `.autohand/config.json` if it does not exist, registers the lifecycle hooks listed below, and adds a permission rule that stops Autohand from reading Entire's internal metadata.

3. **Verify the installation**

    ```bash
    entire status
    ```

    `autohand-code` should be listed as an active agent with hooks installed. You can also run `/hooks` in an Autohand session to see the Entire hooks.

## Installed hooks [#hooks]

`entire enable --agent autohand-code` registers these hooks in `.autohand/config.json`:

| Hook event | Entire command | Purpose |
| --- | --- | --- |
| `session-start` | `entire hooks autohand-code session-start` | Initialise session tracking |
| `pre-prompt` | `entire hooks autohand-code pre-prompt` | Capture the prompt before the agent processes it |
| `stop` | `entire hooks autohand-code stop` | Save a checkpoint after the agent completes a turn |
| `session-end` | `entire hooks autohand-code session-end` | Finalise session state |
| `subagent-stop` | `entire hooks autohand-code subagent-stop` | Save a checkpoint when a subagent task completes |

Each hook is enabled with a 10-second timeout. Entire also handles the `notification` event, but it takes no checkpoint action for it.

After enabling, `.autohand/config.json` contains entries like these:

```json title=".autohand/config.json"
{
  "hooks": {
    "hooks": [
      {
        "event": "session-start",
        "command": "entire hooks autohand-code session-start",
        "description": "Entire: session start checkpoint",
        "enabled": true,
        "timeout": 10000
      },
      {
        "event": "stop",
        "command": "entire hooks autohand-code stop",
        "description": "Entire: save checkpoint on agent stop",
        "enabled": true,
        "timeout": 10000
      }
    ]
  },
  "permissions": {
    "rules": [
      {
        "tool": "read_file",
        "pattern": ".entire/metadata/**",
        "action": "deny"
      }
    ]
  }
}
```

The permission rule keeps Autohand from reading Entire's session metadata files, which are not relevant to coding tasks.

## Checkpoints and rewind [#checkpoints]

Once Entire is enabled, it runs in the background. Your Autohand workflow does not change.

```bash
# View session history
entire log

# Rewind to a previous checkpoint
entire rewind

# Show the current session state, checkpoint count, and active agent
entire status
```

`entire rewind` lets you pick a checkpoint and restores both the working tree files and the session transcript to that point.

## Uninstall [#uninstall]

To remove the Entire hooks from a repository:

```bash
entire disable --agent autohand-code
```

This removes the Entire hook entries and permission rules from `.autohand/config.json`. Checkpoints already saved on `entire/checkpoints/v1` are kept.

## Troubleshooting

| Issue | Fix |
| --- | --- |
| Hooks are not firing | Run `entire status`, check that `.autohand/config.json` contains `entire hooks` commands, and run `which entire` to confirm Entire is on your `PATH`. |
| `entire: command not found` in hooks | Some environments, such as certain IDE terminals, do not inherit your shell `PATH`. Use the full path to the Entire binary in the hook commands, or export the correct `PATH` in your shell profile. |
| Checkpoints missing after commits | Entire condenses checkpoints to the permanent branch when you commit. If `entire status` shows checkpoints but `entire log` does not, make a commit. |
| Hooks slow Autohand down | Each hook has a 10-second timeout. Check `.entire/logs/` for timeout errors, or temporarily set `"enabled": false` on individual hooks. |
| Hooks out of sync | Run `entire disable --agent autohand-code` and then `entire enable --agent autohand-code` to reinstall them. |

**How do I configure the Autohand Entire integration?**

Install the Entire CLI, then run `entire enable --agent autohand-code` from the root of your git repository. Entire adds the hooks to `.autohand/config.json` for you.

**Does Entire create commits on my branch?**

No. Checkpoints live on `entire/<hash>` shadow branches and are condensed to `entire/checkpoints/v1` when you commit. Your working branch stays clean.

**Can I pause Entire without uninstalling it?**

Yes. Set `"enabled": false` on the Entire hooks in `.autohand/config.json`, or toggle them with `/hooks manage`. Set them back to `true` to resume checkpointing.

**What limitations should I know about?**

Entire only works inside a git repository, and each hook must finish within its 10-second timeout. The Entire commands are maintained by Entire, so their behaviour can change independently of Autohand.
